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

Re: a small problem.



Hi,

As you can notice, i think you get this error because you are using -h instead of -H parameter :

man ldapadd
<.../>
      -H ldapuri
             Specify URI(s) referring to the ldap server(s).

-h ldaphost
Specify an alternate host on which the ldap server is running.
Deprecated in favor of -H.
<.../>


Regards,

Sebastien.

Ivan.Garcia@leroymerlin.es wrote:

Hi all again.
i have a openldap with 2 instances up, one in port 389 and another in 399
with slapd.conf different. But when i want to load a ldif and i put the
password i get an error like:

ldapadd -h ldap://0.0.0.0:399 -f /etc/openldap/slapd-2.conf -v -x -D
"cn=Manager,o=corp.guers.com" -W < /root/DIT.ldif
ldap_init( ldap://0.0.0.0:399, 0 )
Enter LDAP Password:
ldap_bind: Can't contact LDAP server (81)

the passwd is written in slapd.conf of the second instance. I put it and
get the above error.

Any idea?

best regards





-- Sébastien BAHLOUL Chef de projet / Expert Annuaires LDAP LINAGORA SA - http://www.linagora.com Tél.: +33(0)1 58 18 68 28 - Fax : +33(0)1 58 18 68 29 Portable : +33 (0) 6 64 86 43 01