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

Re: problems adding to DB



Bryan Irvine wrote:
I'm at the part where it talks about adding base.ldif and I'm getting
these errors.

adding new entry "dc=horvitznewspapers, dc=net"
ldap_add: Type or value exists (20)
       additional info: objectClass: value #0 provided more than once

and here's my base.ldif file

dn: dc=somesite, dc=net
objectClass: top
dn: cn=Manager, dc=somesite, dc=net
objectClass: top
objectClass: organizationalRole
cn: Manager
dn: o=hosting, dc=somesite, dc=net
objectClass: top
objectClass: organization
o: hosting

This base.ldif file is way wrong. Try instead:

dn: dc=net
objectClass: top
objectClass: dcObject
dc: net

dn: dc=somesite, dc=net
objectClass: top
objectClass: dcObject
dc: somesite

dn: cn=Manager, dc=somesite, dc=net
objectClass: top
objectClass: organizationalRole
cn: Manager

dn: o=hosting, dc=somesite, dc=net
objectClass: top
objectClass: organization
o: hosting

See RFC 2849 for details.

Jon Roberts
www.mentata.com