「匿名認証」の版間の差分
編集の要約なし
(→実装例) |
編集の要約なし |
||
23行目: | 23行目: | ||
*include/classes/ldap/CLdap.php (Version 2.4.1の場合) | *include/classes/ldap/CLdap.php (Version 2.4.1の場合) | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
'bind_dn' => '%{user}@apac', | 'host' => 'ldap://192.168.38.128', //実際のサーバーアドレスを入力する。 | ||
'bind_password' => ' ', | 'bind_dn' => '%{user}@apac', //@以降に実際のドメイン名を入力する。 | ||
'base_dn' => 'ou= | 'bind_password' => ' ', //空白 | ||
'search_attribute' => 'sAMAccountName', | '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> | </syntaxhighlight> | ||
<br> | <br> |