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?
Villem Alari
e-post: villem@ekool.ee mobiil: +37253939163
----- "Villem Alari" villem@ekool.ee 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?
Read the man page and use the correct -h or -H flag to the ldapdelete command so it knows what server to talk to?
--Quanah
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.
Regards, Buchan
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
e-post: villem@ekool.ee 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.
Regards, Buchan
----- "Villem Alari" villem@ekool.ee wrote:
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)
As suggested multiple times now -- *Read* the man page. *Use* the -H or -h option to specify the host.
--Quanah
Villem Alari wrote:
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)
See http://www.openldap.org/faq/data/cache/1421.html.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it --------------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it ---------------------------------------
openldap-software@openldap.org