开发者

how to bind to an openldap server

开发者 https://www.devze.com 2022-12-21 16:29 出处:网络
I am using the PHP extension. The username is admin password is 111111 I try to bind using ldap_bind($rs,\'admin\',\'111111\')开发者_StackOverflow中文版

I am using the PHP extension.

The username is admin password is 111111

I try to bind using ldap_bind($rs,'admin','111111')

开发者_StackOverflow中文版 It gives me an error:

Unable to bind to server: Invalid DN syntax in [line of the ldap_bind]

I can bind anonymously, what is the correct syntax?


OK - my bad, I should have used the entire record name instead of just admin: "cn=admin,dc=example,dc=com" which describes the top node in the server.

0

精彩评论

暂无评论...
验证码 换一张
取 消