Hello, I had a working openldap installation that I was developing some PHP to manage. I'm using the ldap_bind PHP call without username & password, so it is an anonymous bond.
I decided to have a clean install to verify everything was ok, so copied my ldap config files, and reinstall on a clean system.
the problem is that now the anonymous bind will not work. I turned on all debugging, and found the entry:
... do_bind: v3 anonymous bind
in the log. I'm guessing this means that anonymous bind is enabled, but still my PHP code will not bind. I'm not sure where to start to look for the problem. Could someone please point me in the right direction. I can supply logs and configs once I know where to look and what to send.
Many thanks,
Stuart
On Wed, Feb 16, 2011 at 08:10:28PM +0000, Stuart Bailey wrote:
the problem is that now the anonymous bind will not work. I turned on all debugging, and found the entry:
... do_bind: v3 anonymous bind
in the log. I'm guessing this means that anonymous bind is enabled, but still my PHP code will not bind.
To start with, set the log level to 776 (conns + stats + stats2) and restart slapd. Try to connect using your PHP code and send whatever appears in the log (probably /var/log/messages) Send also a copy of the slapd config with passwords removed, and let us know what errors the PHP code reported.
Andrew
openldap-technical@openldap.org