「匿名認証」の版間の差分
細
→実装例
(→実装例) |
細 (→実装例) |
||
(同じ利用者による、間の1版が非表示) | |||
8行目: | 8行目: | ||
$wgLDAPEncriptionType = array( 'APAC' => 'Clear' ); | $wgLDAPEncriptionType = array( 'APAC' => 'Clear' ); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* | *LdapAuthenticationPlugin.php | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
// This is an anonymous bind | |||
$this->printDebug( "Doing an anonymous bind", NONSENSITIVE ); | |||
// | // $bind = $this->bindAs(); 下のように書き換える | ||
$bind=$this->bindAs( $this->getSerachString( $username ), $this->getPasswordHash( $password ) ); | $bind=$this->bindAs( $this->getSerachString( $username ), $this->getPasswordHash( $password ) ); | ||
</syntaxhighlight> | </syntaxhighlight> |