「匿名認証」の版間の差分
編集の要約なし
(→実装例) |
編集の要約なし |
||
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> | ||
*LdapAuthentication.php | *LdapAuthentication.php | ||
<code lang="php"> | <code lang="php"> | ||
$bind->$this->bindAs( $this->getSerachString( $username ), $this->getPasswordHash( $password )); | |||
</code> | </code> | ||
<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> | ||
[[IOS:Shop Floor Management]] | [[IOS:Shop Floor Management]] | ||
*classes/authenticator.class.php | *classes/authenticator.class.php | ||
< | <syntaxhighlight lang="php"> | ||
$ldap_bind_dn = "$username@apac"; | |||
$ldap_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"> | ||
'bind_dn' => '%{user}@apac', | |||
'bind_password' => ' ', | |||
'base_dn' => 'ou=a575,dc=apac,dc=corpdir,dc=net', | |||
'search_attribute' => 'sAMAccountName', | |||
</ | </syntaxhighlight> |