[olug] Ldap error on ldapadd

Eric Penne epenne at olug.org
Wed Dec 10 02:35:16 UTC 2003


I'm trying to run this command:

ldapadd -x -D "cn=admin,dc=thepennes,dc=net" -W -f /var/www/rolodap/extras/
sample.ldif

I get this output:

adding new entry "dc=thepennes, dc=net"
ldapadd: update failed: dc=thepennes, dc=net
ldap_add: Object class violation (65)
        additional info: object class 'organization' requires attribute 'o'

I've attached the sample.ldif file below.  I thought since I was using the 
dc=thepennes,dc=net that I didn't need an "o" value.  If I do need "o" where 
do I define it?  

Thanks
Eric


sample.ldif
*********************************
dn: dc=thepennes, dc=net
objectclass: top
objectclass: organization
dc: thepennes

dn: dc=thepennes, dc=net
objectclass: top
objectclass: organization
dc: thepennes.net

dn: ou=contacts,dc=thepennes,dc=net
objectclass: top
objectclass: organizationalunit
ou: contact

dn: ou=books,dc=thepennes,dc=net
objectclass: top
objectclass: organizationalunit
ou: books

dn: ou=users,dc=thepennes,dc=net
objectclass: top
objectclass: organizationalunit
ou: users

dn: cn=roloaplastuid,dc=thepennes,dc=net
objectclass: top
objectclass: rolodapadmin
cn: rolodaplastuid
rolodaplastuid : 0

dn: cn=firmwide,dc=thepennes,dc=net
objectclass: top
objectclass: rolodapbook
cn: firmwide

dn: cn=manager,dc=thepennes,dc=net
objectclass: top
objectclass: organizationalrole
cn: manager

dn: cn=rolodapadmins,dc=thepennes,dc=net
objectclass: top
objectclass: groupofnames
cn: admins
member: uid=johndoe,ou=users,dc=thepennes,dc=net

dn: cn=rolodapconflict,dc=thepennes,dc=net
objectclass: top
objectclass: groupofnames
cn: rolodap conflict checkers
member: uid=johndoe,ou=users,dc=thepennes,dc=net

dn: cn=rolodap,dc=thepennes,dc=net
objectclass: top
objectclass: organizationalrole
objectclass: person
cn: rolodap
sn: rolodap
userpassword : secret

dn: uid=epenne,ou=users,dc=thepennes,dc=net
objectclass : top
objectclass : person
objectclass : inetorgperson
objectclass : rolodapuser
objectclass : rolodapcontact
uid : epenne
userpassword : secret
cn : Eric Penne
sn : Penne
givenname : Eric
rolodapadmin : yes



More information about the OLUG mailing list