开发者

how to bind to an openldap server

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜