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

ldap_bind: Can't contact LDAP server



Hi

When I try to do a ldapadd command, i get this message :

ldap_bind: Can't contact LDAP server (81)

Here's the content of slapd.conf:

include         /usr/local/etc/openldap/schema/core.schema
pidfile         /usr/local/var/slapd.pid
argsfile        /usr/local/var/slapd.args
loglevel -1
database        bdb
suffix          "dc=coldfire"
rootdn          "cn=Manager,dc=coldfire" 
rootpw          secret
directory       /usr/local/var/openldap-data
index   objectClass     eq

I thought it was slapd which could not bind ldap port, but netstat -l says 
that:

tcp        0      0 *:ldap                  *:*                     LISTEN

So, if I understand fine, it seems ok, and it seems to really be slapd which 
listens to this port as ps aux | grep slapd says

root     16255  0.0  0.6  6940 2048 ?        S    May08   0:00 slapd -4
root     16256  0.0  0.6  6940 2048 ?        S    May08   0:00 slapd -4
root     16257  0.0  0.6  6940 2048 ?        S    May08   0:00 slapd -4

I get the " ldap_bind: Can't contact LDAP server (81) " error message when I 
try to migrate with migrate_all_online.pl from padl.com

If I try another way, with a ldif file

Here's my arbre_coldfire.ldif:

dn: dc=coldfire
objectClass: dcobject
dc: maison
dn: ou=People, dc=coldfire
objectClass: organization
ou: People

dn: uid=root,ou=People,dc=coldfire
uid: root
cn: root
objectClass: account
objectClass: posixAccount
objectClass: top
objectClass: shadowAccount
userPassword: <I hide the hashed pass>.
shadowLastChange: 12178
shadowMax: 99999
shadowWarning: 7
loginShell: /bin/bash
uidNumber: 0
gidNumber: 0
homeDirectory: /root
gecos: root

and so on...
and if I type: 
ldapadd -h localhost -p 389 -D "cn=manager,dc=exemple" -w secret -
f /tmp/arbre_coldfire.ldif
I get: ldap_sasl_interactive_bind_s: No such attribute (16)
And if I add -x arg: ldap_bind: Invalid credentials (49)

Thanks to help me

Chris