細
→実装例
(→実装例) |
細 (→実装例) |
||
(2人の利用者による、間の9版が非表示) | |||
4行目: | 4行目: | ||
[[Tsubopedia:Tsubopedia|Tsubopedia]] | [[Tsubopedia:Tsubopedia|Tsubopedia]] | ||
*LocalSettings.php | *LocalSettings.php | ||
<syntaxhighlight lang="php"> | |||
$wgLDAPSearchStrings = array( 'APAC' => "USER-NAME@apac" ); | |||
$wgLDAPEncriptionType = array( 'APAC' => 'Clear' ); | |||
* | </syntaxhighlight> | ||
*LdapAuthenticationPlugin.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 ) ); | |||
</syntaxhighlight> | |||
<BR> | <BR> | ||
[[Tsubo'tcher]] | [[Tsubo'tcher]] | ||
*ldap_auth/start.php | *ldap_auth/start.php | ||
<syntaxhighlight lang="php"> | |||
$bind_dn = "$username@apac"; | |||
$bind_pw = $password; | |||
</syntaxhighlight> | |||
<BR> | <BR> | ||
[[Zabbix]] | [[Zabbix]] | ||
*include/classes/ldap/CLdap.php (Version 2.4.1の場合) | *include/classes/ldap/CLdap.php (Version 2.4.1の場合) | ||
: | <syntaxhighlight lang="php"> | ||
'host' => 'ldap://192.168.38.128', //実際のサーバーアドレスを入力する。 | |||
'bind_dn' => '%{user}@apac', //@以降に実際のドメイン名を入力する。 | |||
'bind_password' => ' ', //空白 | |||
'base_dn' => 'ou=xxx,dc=apac,dc=corpdir,dc=net', //実際のdnを入力する。 | |||
'search_attribute' => 'sAMAccountName', //ADの場合 | |||
46行目の以下のコードをコメントアウトする。設定画面で入力した値で上書きされるのを防ぐため。 | |||
// $this->cnf = zbx_array_merge($this->cnf, $arg); | |||
</syntaxhighlight> | |||
<br> | |||
dotProject | |||
*classes/authenticator.class.php | |||
<syntaxhighlight lang="php"> | |||
$ldap_bind_dn = "$username@apac"; | |||
$ldap_bind_pw = $password; | |||
</syntaxhighlight> |