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

Re: LDAP Auth

On Thursday 14 February 2008 13:02:12 Nuno Manuel Martins wrote:
> Hello everyone again,
> I didn't have any help that would lead me to fix this, so I have spent some
> hours trying to understand things better but still haven't got there.
> I changed my ldif.file and now looks like this:
> dn: uid=myuser,dc=example,dc=com
> uid: myuser
> cn: myuser
> sn: Doe
> uidnumber: 10001
> gidnumber: 10001
> homedirectory: /home/ldap/john
> loginshell: /bin/bash
> userPassword: password
> objectclass: person
> objectclass: posixaccount
> I am trying to add this entry with the following command: ldapadd -D
> "cn=manager,dc=example,dc=com" -W -f /root/tmp/tstuser.ldif

> <= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found
> (-30989) bdb_add: parent does not exist

You haven't created dc=example,dc=com.

What documentation are you following ? For example, this is step 10 in the 
OpenLDAP quick start guide: 
http://www.openldap.org/doc/admin24/quickstart.html .