I have a question concerning the interaction between php and a ldap server.
supposing my server has the following configuration:
The server is in my own machine so the server is localhost.
Here is my actual php code:
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Protocol error in... (line where ldap_bind is called)
Warning: ldap_add() [function.ldap-add]: Add: Invalid syntax in... (line where ldap_add is called)
I am on Linux, Kubuntu 7.10 Gutsy.
I have installed the following packages: slapd & ldap-utils, changed the password, make a test with a ldif file. In command line, it workds whithout any problem.
I've installed phpldapadmin which provides a graphical user interface but the result is the same: impossible to connect to the server after configuration.
Do you have any idea ?
Thank you :)
What are you using to store your users?
Active Directory? OpenLDAP? something else?
I use OpenLDAP.
I've succeed to perform researches in the ldap serv but still not to add.
has the user you binded the connection with got permissions to add things?
I had the same problem, but after talking to our network administrator the user I tried to bind with couldn't do it the 'normal' way anyway...
No, in fact, it was only a syntax error. It's good for me since a moment :-)
|All times are GMT. The time now is 03:07 AM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0