[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: ldap_bind: Can't contact LDAP server (-1)

Ok, now I typed in ldapdelete -x -W -D "cn=admin,dc=example,dc=com" then it asked for password (Enter LDAP Password:) and I entered it. I entered rootpw, which is in my /etc/ldap/slapd.conf is that right? Anyways, it seems not as the answer was same old ldap_bind: Can't contact LDAP server (-1)

Villem Alari

mobiil: +37253939163

On 23.08.2007, at 10:45, Buchan Milne wrote:

On Wednesday 22 August 2007 15:28:11 Villem Alari wrote:
When I write ldapdelete I get answer like that from my terminal:
ldap_bind: Can't contact LDAP server (-1) What should I do to connect
to LDAP server?

If "ldapdelete" was your full command, most likely:
1)Your configuration files (e.g. /etc/openldap/ldap.conf, .ldaprc etc.) are 
not configured
2)You should provide the hostname/IP of the LDAP server, or a URI on the 
command line

Read the man page for ldapdelete, or if you want assistance, provide the full 
command line you are using.