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

Re: Simple LDAP db help



Hi,

Thanks again for your help. I tried adding what you gave me and now I get:

[root@test openldap]# ldapadd -x -D "cn=John
Doe,dc=appliedtheory,dc=com" -W -f test3.ldif
Enter LDAP Password: 
adding new entry "dc=appliedtheory,dc=com"
ldap_add: Object class violation

ldif_record() = 65

I have also included test3.ldif.

Thanks Again!

+-------------------------+
|Keith Conger
|Unix Engineer
|AppliedTheory
|(315)453-2912 x5813
|kconger@appliedtheory.com
+-------------------------+
+------+System Info+------+
SunOS metroid 5.8 sun4u
  2:40pm  up 12 day(s),  6:25,  1 user,  load average: 0.41, 0.47, 0.52

On Tue, 28 Aug 2001, Bob Wilkinson wrote:

> On Tue, Aug 28, 2001 at 11:57:31AM -0400, Keith Conger wrote:
> > Hi,
> > 
> > Would this be a second *.ldif file? Or appended to the current one?
> > 
> 
> I think that it should work either way, providing the data is
> imported first. If it were in the same ldif file, I'd put it
> contextually before your current data, i.e. prepend, rather than
> append. A separate ldif file should be imported first, too.
> 
> > Thanks for your help!
> 
> Let us know if these suggestions worked for you... I *think* that is
> what I had to do.
> 
> > 
> > +-------------------------+
> > |Keith Conger
> > |Unix Engineer
> > |AppliedTheory
> > |(315)453-2912 x5813
> > |kconger@appliedtheory.com
> > +-------------------------+
> > +------+System Info+------+
> > SunOS metroid 5.8 sun4u
> >  11:50am  up 12 day(s),  3:35,  1 user,  load average: 0.59, 0.53, 0.47
> > 
> > On Tue, 28 Aug 2001, Bob Wilkinson wrote:
> > 
> > > 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
> > > 
> 
> If all of these objectclasses are relevant. Probably need at least 
> objectclass: top - I doubt the others are necessary.
> 
> Bob
> 
dn: 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