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

Phpldapadmin + openldap - is not registering new users



Good morning.
I have OpenLdap 2.4.12 and phpldapadmin 1.0.1.. My problem is occuring when i try register a new user. Follow error:
O servidor LDAP respondeu: Object class violation
Erro número: 0x41 (LDAP_OBJECT_CLASS_VIOLATION)
Descrição: You tried to perform an operation that would cause an undefined attribute to exist or that would remove a required attribute, given the current list of ObjectClasses. This can also occur if you do not specify a structural objectClass when creating an entry, or if you specify more than one structural objectClass.


And /var/log/messages:

Aug 10 07:58:11 webs slapd[3426]: Entry (cn=cyrusadmin cyrusadmin,ou=People,dc=novohamburgo,dc=rs,dc=gov,dc=br): object class 'posixAccount' requires attribute 'gidNumber'

This is stranger. In the PhpLdapAdmin, the fill gidNumber is blank, don't have option for change. What's happening ?
My sladp.conf:
include         /etc/openldap/schema/core.schema
include         /etc/openldap/schema/cosine.schema
include         /etc/openldap/schema/inetorgperson.schema
include         /etc/openldap/schema/rfc2307bis.schema
include         /etc/openldap/schema/yast.schema
pidfile         /var/run/slapd/slapd.pid
argsfile        /var/run/slapd/slapd.args
modulepath      /usr/lib/openldap/modules

moduleload      back_hdb
moduleload      autoPosixIds

sizelimit 500

tool-threads 1
backend         hdb

access to dn.base=""
        by * read

access to dn.base="cn=Subschema"
        by * read

access to attrs=userPassword,userPKCS12
        by self write
        by * auth

access to attrs=shadowLastChange
        by self write
        by * read

access to *
        by * read
loglevel -1
database        bdb
suffix          "dc=novohamburgo,dc=rs,dc=gov,dc=br"
checkpoint      1024    5
cachesize       30000
sizelimit        -1
rootdn          "cn=Manager,dc=novohamburgo,dc=rs,dc=gov,dc=br"
rootpw          {SSHA}GS89uCsqQaeBuBQ+RoxgDuY6hkg2946U

directory       /var/lib/ldap


overlay         autoPosixIds


index   objectClass     eq
index   uid             eq

index   memberUid       eq
index   member          eq
dbconfig set_cachesize 0 2097152 0

# Sven Hartge reported that he had to set this value incredibly high
# to get slapd running at all. See http://bugs.debian.org/303057 for more
# information.

# Number of objects that can be locked at the same time.
dbconfig set_lk_max_objects 1500
# Number of locks (both requested and granted)
dbconfig set_lk_max_locks 1500
# Number of lockers
dbconfig set_lk_max_lockers 1500
# Save the time that the entry gets modified, for database #1
lastmod         on

# Checkpoint the BerkeleyDB database periodically in case of system
# failure and to speed slapd shutdown.
checkpoint      512 30


Thanks!