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

Re: Adding an LDIF entry to openldap



Craig Marchant wrote:
I'm trying to an an LDIF entry to openldap and I get this error:

[root@osiris root]# ldapadd -D
"cn=Administrator,dc=acenet,dc=com,dc=au" -x -W -f users.ldif
Enter LDAP Password:
adding new entry "dc=acenet,dc=com,dc=au"
ldapadd: update failed: dc=acenet,dc=com,dc=au
ldap_add: No such attribute (16)
        additional info: value of naming attribute 'dc' is not present
in entry

------users.ldif----------

dn: dc=acenet,dc=com,dc=au
objectClass: dcObject
objectClass: organization
o: Ace Internet Services Pty Ltd
dc: acenet.com.au

dn: cn=Administrator,dc=acenet,dc=com,dc=au
objectClass: organizationalRole
cn: Administrator

I'm not sure why this would work in 2.1.12, but you might instead try something more like like:


dn: dc=au
objectClass: dcObject
dc: au

dn: dc=com,dc=au
objectClass: dcObject
dc: com

dn: dc=acenet,dc=com,dc=au
objectClass: dcObject
objectClass: organization
o: Ace Internet Services Pty Ltd
dc: acenet

dn: cn=Administrator,dc=acenet,dc=com,dc=au
objectClass: organizationalRole
cn: Administrator

Jon Roberts
www.mentata.com