Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LDAP+naming attribute

Status
Not open for further replies.

nizarhandal

Programmer
Aug 3, 2006
6
PS
Hi,

I am trying to configure simias server with openldap, but it fails when trying to add a user called 'admin' and gives the following error:

LdapException: (64) Naming Violation
LdapException: Server Message: value of naming attribute 'cn' is not present in entry

My slapd.conf:

#######################################################################
# BDB database definitions
#######################################################################

database bdb
suffix "dc=malafat,dc=ps"
rootdn "cn=manager,dc=malafat,dc=ps"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw {SSHA}4FetTDGJy4EzgB3sHZl6pUNHpxb/Wg5z
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory /usr/local/var/openldap-data
# Indices to maintain
#index objectClass eq
index cn,sn,st eq,pres,sub

I have these entries already:

dn: dc=malafat,dc=ps
objectclass: dcObject
objectclass: organization
o: Hadara
dc: malafat

dn: cn=manager,dc=malafat,dc=ps
objectclass: organizationalRole
cn: manager

dn: ou=members,dc=malafat,dc=ps
objectClass: top
objectClass: organizationalUnit
ou: members

Any help?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top