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

Re: Simple LDAP db help



On Tue, Aug 28, 2001 at 11:27:05AM -0400, Keith Conger wrote:
> Hi,
> 
> Ihave included my slapd.conf and my test.ldif file I'm using. Can anyone
> take a quick glance and see if something stands out. 
> 
> I can start openldap but when I add the test.ldif it says:
> [root@test openldap]# ldapadd -x -D "cn=John
> Doe,dc=appliedtheory,dc=com" -W -f test.ldif
> Enter LDAP Password: 
> adding new entry "uid=jdoe, dc=appliedtheory, dc=com"
> ldap_add: No such object
> 
> ldif_record() = 32
> 
> Thanks in Advance,
> 

I think that you need to explicitly add a record for
"dc=appliedtheory, dc=com" before you add one for 
"uid=jdoe, dc=appliedtheory, dc=com"

Bob

e.g.

dn:  dc=appliedtheory, dc=com
dc:  appliedtheory
dc:  com
objectclass: top
objectclass: account
objectclass: posixAccount

> dn: uid=jdoe, dc=appliedtheory,dc=com
> objectclass: top
> objectclass: account
> objectclass: posixAccount
> uid: jdoe
> cn: John Doe
> userPassword: doink
> gecos: John
> loginShell: /bin/csh
> uidNumber: 1000
> gidNumber: 1000
> homeDirectory: /home/jdoe