[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_bind: Can't contact LDAP server (-1)
- To: openldap-software@OpenLDAP.org
- Subject: ldap_bind: Can't contact LDAP server (-1)
- From: Elijah Alcantara <elijah.alcantara@gmail.com>
- Date: Tue, 4 Oct 2005 13:55:46 +0800
- Content-disposition: inline
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=jCzLsHDt2J5ouekKctFGzs8t4pyeLjg5AlEYQLWkAVg9OGU+AKdQSTrx9dY3S1HXRfir4AtKPQjkP+6/0wx3Gtzr8OFBOrGe69wbPReWP22rSqI28tWo7rAEdhGN1yGAgfukpU+46SytelfVBi4A0LIvmbhKdzv3RQz6hfZzmO4=
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.