nizarhandal
Programmer
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?
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?