Problème openldap sous debian

Problème openldap sous debian - Logiciels - Linux et OS Alternatifs

Marsh Posté le 09-05-2003 à 11:11:28    

bon je copie-colle le dernier mail que j'ai envoyé à la ml openldap, la fleme de tout refaire :p
 
As i've said, i've recompiled with tcp wrappers support, and added slapd in hosts.allow
 
I have this problem:
debian:~# ldapadd -H ldap://localhost -D "cn=Manager,dc=coldfire" -w secret -f /tmp/arbre_exemple.ldif -x adding new entry "dc=coldfire"
ldapadd: update failed: dc=coldfire
ldap_add: Undefined attribute type (17)
        additional info: dn: attribute type undefined
 
You can see my config files lower
 
Note that all openldap's 'make test' was OK
 
If I use a migration tool:
 
debian:/home/cold/MigrationTools-44# ./migrate_all_online.sh Enter the X.500 naming context you wish to import into: [dc=coldfire] Enter the name of your LDAP server [ldap]: Enter the manager DN: [cn=manager,dc=coldfire]: cn=Manager,dc=coldfire Enter the credentials to bind with: Do you wish to generate a DUAConfigProfile [yes|no]? no
 
Importing into dc=coldfire...
 
Creating naming context entries...
Migrating aliases...
Migrating groups...
Migrating hosts...
Migrating networks...
Migrating users...
Migrating protocols...
Migrating rpcs...
Migrating services...
Migrating netgroups...
Migrating netgroups (by user)...
Migrating netgroups (by host)...
Importing into LDAP...
ldap_bind: Can't contact LDAP server (81)
/usr/local/bin/ldapadd: returned non-zero exit status
 
It is really slapd which listens to ldap port:
Netstat -l -p says:
 
tcp 0 0 *:ldap   *:*  LISTEN  224/slapd
 
So I really don't know what's the problem
 
-----Message d'origine-----
De : owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org] De la part de christophe@coldfire-corp.com Envoyé : jeudi 8 mai 2003 22:14 À : ldap Objet : 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=coldfire" -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
 

Reply

Marsh Posté le 09-05-2003 à 11:11:28   

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed