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

Re: problems adding to DB





--On Tuesday, August 09, 2005 10:27 AM -0700 Bryan Irvine <sparctacus@gmail.com> wrote:

Hello, I'm new to LDAP, but I think I'm starting to get the hang of it.

I'm trying to follow the tutorial found here:
http://www.linuxjournal.com/article/5917

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


The above isn't a valid LDIF input file. Each entry must be separated by a space:

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


In addition:

The first entry is missing a "dc" attribute (dc: somesite)

--Quanah

--
Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin