views:

118

answers:

1

I am using the PHP extension.
The username is admin password is 111111
I try to bind using ldap_bind($rs,'admin','111111')
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?

+1  A: 

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.

Itay Moav