Itay Moav -Malimovka
Itay Moav -Malimovka

Reputation: 53597

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')
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?

Upvotes: 1

Views: 2622

Answers (1)

Itay Moav -Malimovka
Itay Moav -Malimovka

Reputation: 53597

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.

Upvotes: 2

Related Questions