Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP拡張機能を使用しています。 ユーザー名はadminです。パスワードは111111です。 を使用してバインドしようとしldap_bind($rs,'admin','111111') ています。エラーが発生します。
ldap_bind($rs,'admin','111111')
サーバーにバインドできません:[ldap_bindの行]のDN構文が無効です
匿名でバインドできますが、正しい構文は何ですか?
"cn=admin,dc=example,dc=com"OK - 残念ながら、サーバーの最上位ノードを表すadmin: ではなく、レコード名全体を使用する必要がありました。
"cn=admin,dc=example,dc=com"