[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_bind: Can't contact LDAP server (-1)
Everything was just working fine with PAM & nscd yesterday but today I
could'nt login through phpldapadmin, telling me that I've got a bad
login/password. So I tried moving the database somewhere else thinking
it might have been corrupted or something:
#mv /usr/local/var/openldap-data/* ~/.Trash
I restarted slapd and when testing it I get this error message:
root@server01:/usr/local/var/openldap-data # ldapsearch -x -b
dc=server01,dc=phpdevaps,dc=net
ldap_bind: Can't contact LDAP server (-1)
This is the result from netstat:
root@server01:/usr/local/var/openldap-data # netstat -ant | grep 389
tcp 0 0 0.0.0.0:389 0.0.0.0:* LISTEN
tcp 0 0 192.168.100.2:389 192.168.100.24:46681 ESTABLISHED
tcp6 0 0 :::389 :::*
Running slapd with debugging gives this interesting line:
=> bdb_search
bdb_dn2entry("dc=server01,dc=phpdevaps,dc=net")
=> bdb_dn2id( "dc=server01,dc=phpdevaps,dc=net" )
<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30989)
I tried moving the bdb database back again to openlda-data but I've
been getting the same error again ... ldap_bind: Can't contact LDAP
server (-1) ... I've been fiddling with whatever config I could think
of but still get the same message. I tried 'make install'-ing the same
tarball and there's been no improvement. I can't even 'make uninstall'
it, it's telling me
"make: *** No rule to make target `uninstall'. Stop."
How do I recover this setup of mine? I'd like to uninstall it and do a
fresh install again but I couldn't.