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

FW: Adding an LDIF entry to openldap

I think LDAP_NAMING_VIOLATION might have been a more appropriate error code
here. Dunno. Either way, we really need something more explicit to the effect
of "your RDN and entry disagree, fix it."

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Craig Marchant
Sent: Thursday, March 06, 2003 7:25 PM
To: openldap-software@OpenLDAP.org
Subject: Adding an LDIF entry to openldap


I'm experiencing a problem with openldap 2.1.14

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

If I downgrade to the last version 2.1.12 then the entry is added

I've included a snippet of my users.ldif file as well as the slapd.conf

Any help would be appreciated.


Craig Marchant


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



database        bdb
suffix          "dc=acenet,dc=com,dc=au"
rootdn          "cn=Administrator,dc=acenet,dc=com,dc=au"

rootpw          {SSHA}ykMc4BXyriIuesFJ9gzQJgE+Fcvd2PJB
directory       /usr/local/var/openldap-data