[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
additional info: value of naming attribute 'dc' is not present in entry
I used the following this time to get things running:
suffix "dc=itarchitect,dc=ca"
rootdn "cn=Manager,dc=itarchitect,dc=ca"
I ran ldappasswd to generate a new password. Once I had that password, I ran
ldappasswd -A -S and pasted the password that ldappasswd gave me when I ran it
the first time to get pass the old password. When ldappasswd prompted me for the
new password, I pasted the SHA hash of my new password. The same SHA hash
appears in my slapd.conf file. Now, I am able to authenticate when running ldapadd.
The problem I have now is that when I run the following command:
ldapadd -x -D "cn=Manager,dc=itarchitect,dc=ca" -W -f itarchitect.ca.ldif
I get the following error:
root@linux:/usr/local/etc/openldap# ./ldifadd
Adding LDIF entries to LDAP directory...
Enter LDAP Password:
adding new entry "dc=itarchitect,dc=ca"
ldapadd: update failed: dc=itarchitect,dc=ca
ldap_add: No such attribute (16)
additional info: value of naming attribute 'dc' is not present in entry
Here is what it looks like in /var/log/debug:
Mar 4 12:45:08 linux slapd[1279]: conn=3 fd=7 closed
Mar 4 12:46:29 linux slapd[1264]: conn=4 fd=7 ACCEPT from IP=192.168.0.1:32821
(IP=:: 389)
Mar 4 12:46:29 linux slapd[1280]: conn=4 op=0 BIND
dn="cn=Manager,dc=itarchitect,dc=ca" method=128
Mar 4 12:46:29 linux slapd[1280]: conn=4 op=0 BIND
dn="cn=Manager,dc=itarchitect,dc=ca" mech=simple ssf=0
Mar 4 12:46:29 linux slapd[1280]: conn=4 op=0 RESULT tag=97 err=0 text=
Mar 4 12:46:29 linux slapd[1279]: conn=4 op=1 ADD dn="dc=itarchitect,dc=ca"
Mar 4 12:46:29 linux slapd[1279]: conn=4 op=1 RESULT tag=105 err=16 text=value
of naming attribute 'dc' is not present in entry
Mar 4 12:46:29 linux slapd[1280]: conn=4 op=2 UNBIND
Mar 4 12:46:29 linux slapd[1280]: conn=4 fd=7 closed
Here is my LDIF:
# File: ldif00.ldif
# Root node
dn: dc=itarchitect,dc=ca
objectClass: top
objectClass: organization
objectClass: dcObject
o: itarchitect.ca
dc: itarchitect.ca
# The R&D branch node
dn: ou=R&D,dc=itarchitect,dc=ca
objectClass: organizationalUnit
ou: R&D
# The Super-User's node
dn: cn=Manager,dc=itarchitect,dc=ca
objectClass: organizationalRole
cn: Manager
After that I have an entry for a person that would be a member of the above OU.
What is the problem with my LDIF? Again, apologies but I am a newbie and yes I
have read a lot of documentation including the documentation on the web site.