[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Entry alread exists (long)
Hi!
I'm new to ldap, but following the guides I could manage to have slapd
working and could also add, delete and search some entries (Manager cn
and People ou.
The problem begins when I start adding almost 100000 entries with
slapadd (with slapd shutdown, of course). After some entries it
complains about an entry that "alread exists".
Can someone help? Here is sladadd output using -v -d 3 for the two last
records:
=> str2entry
<= str2entry(uid=xxxx,ou=People,dc=mycompany,dc=com) -> -1 (0x80b4db0)
oc_check_required entry (uid=xxxx,ou=People,dc=mycompany,dc=com),
objectClass "account"
oc_check_required entry (uid=xxxx,ou=People,dc=mycompany,dc=com),
objectClass "posixAccount"
oc_check_required entry (uid=xxxx,ou=People,dc=mycompany,dc=com),
objectClass "top"
oc_check_allowed type "uid"
oc_check_allowed type "cn"
oc_check_allowed type "objectClass"
oc_check_allowed type "userPassword"
oc_check_allowed type "loginShell"
oc_check_allowed type "uidNumber"
oc_check_allowed type "gidNumber"
oc_check_allowed type "homeDirectory"
oc_check_allowed type "gecos"
=> ldbm_tool_entry_put( 6340, "uid=xxxx,ou=People,dc=mycompany,dc=com" )
=> dn2id( "UID=XXXX,OU=PEOPLE,DC=MYCOMPANY,DC=COM" )
=> ldbm_cache_open( "/var/lib/ldap/dn2id.gdbm", 18, 600 )
<= ldbm_cache_open (cache 2)
<= dn2id NOID
=> index_entry_add( 6340, "uid=xxxx,ou=People,dc=mycompany,dc=com" )
=> ldbm_cache_open( "/var/lib/ldap/uid.gdbm", 18, 600 )
<= ldbm_cache_open (cache 4)
=> key_change(ADD,18c4)
<= key_change 0
=> ldbm_cache_open( "/var/lib/ldap/objectClass.gdbm", 18, 600 )
<= ldbm_cache_open (cache 3)
=> key_change(ADD,18c4)
<= key_change 0
=> key_change(ADD,18c4)
<= key_change 0
=> key_change(ADD,18c4)
<= key_change 0
=> ldbm_cache_open( "/var/lib/ldap/uidNumber.gdbm", 18, 600 )
<= ldbm_cache_open (cache 5)
=> key_change(ADD,18c4)
<= key_change 0
=> ldbm_cache_open( "/var/lib/ldap/gidNumber.gdbm", 18, 600 )
<= ldbm_cache_open (cache 6)
=> key_change(ADD,18c4)
<= key_change 0
<= index_entry_add( 6340, "uid=xxxx,ou=People,dc=mycompany,dc=com" )
success
=> dn2id_add( "UID=XXXX,OU=PEOPLE,DC=MYCOMPANY,DC=COM", 6340 )
=> ldbm_cache_open( "/var/lib/ldap/dn2id.gdbm", 18, 600 )
<= ldbm_cache_open (cache 2)
<= dn2id_add 0
added: "uid=xxxx,ou=People,dc=mycompany,dc=com" (000018c4)
=> str2entry
<= str2entry(uid=xxxxa,ou=People,dc=mycompany,dc=com) -> -1 (0x8176c50)
oc_check_required entry (uid=xxxxa,ou=People,dc=mycompany,dc=com),
objectClass "account"
oc_check_required entry (uid=xxxxa,ou=People,dc=mycompany,dc=com),
objectClass "posixAccount"
oc_check_required entry (uid=xxxxa,ou=People,dc=mycompany,dc=com),
objectClass "top"
oc_check_allowed type "uid"
oc_check_allowed type "cn"
oc_check_allowed type "objectClass"
oc_check_allowed type "userPassword"
oc_check_allowed type "loginShell"
oc_check_allowed type "uidNumber"
oc_check_allowed type "gidNumber"
oc_check_allowed type "homeDirectory"
oc_check_allowed type "gecos"
=> ldbm_tool_entry_put( 6341, "uid=xxxxa,ou=People,dc=mycompany,dc=com"
)
=> dn2id( "UID=XXXXA,OU=PEOPLE,DC=MYCOMPANY,DC=COM" )
=> ldbm_cache_open( "/var/lib/ldap/dn2id.gdbm", 18, 600 )
<= ldbm_cache_open (cache 2)
<= dn2id 348
<= ldbm_tool_entry_put: "UID=XXXXA,OU=PEOPLE,DC=MYCOMPANY,DC=COM"
already exists (id=348)
slapadd: could not add entry
dn="uid=xxxxa,ou=People,dc=mycompany,dc=com" (line=82354)
=> ldbm_cache_open( "/var/lib/ldap/nextid.gdbm", 34, 600 )
<= ldbm_cache_open (opened 1)
slapadd shutdown: initiated
ldbm backend syncing
ldbm flushing db (/var/lib/ldap/id2entry.gdbm)
ldbm closing db (/var/lib/ldap/id2entry.gdbm)
ldbm flushing db (/var/lib/ldap/nextid.gdbm)
ldbm closing db (/var/lib/ldap/nextid.gdbm)
ldbm flushing db (/var/lib/ldap/dn2id.gdbm)
ldbm closing db (/var/lib/ldap/dn2id.gdbm)
ldbm flushing db (/var/lib/ldap/objectClass.gdbm)
ldbm closing db (/var/lib/ldap/objectClass.gdbm)
ldbm flushing db (/var/lib/ldap/uid.gdbm)
ldbm closing db (/var/lib/ldap/uid.gdbm)
ldbm flushing db (/var/lib/ldap/uidNumber.gdbm)
ldbm closing db (/var/lib/ldap/uidNumber.gdbm)
ldbm flushing db (/var/lib/ldap/gidNumber.gdbm)
ldbm closing db (/var/lib/ldap/gidNumber.gdbm)
ldbm backend done syncing
====> cache_release_all
slapadd shutdown: freeing system resources.
----------------------------------------------------------------------------------
My configuration (RedHat 7.2 default configuration):
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/redhat/rfc822-MailMember.schema
include /etc/openldap/schema/redhat/autofs.schema
include /etc/openldap/schema/redhat/kerberosobject.schema
database ldbm
suffix "dc=mycompany,dc=com"
rootdn "cn=Manager,dc=mycompany,dc=com"
rootpw {crypt}xxxxxxxxxx
directory /var/lib/ldap
index objectClass,uid,uidNumber,gidNumber,memberUid eq
index cn,mail,surname,givenname eq,subinitial
-------------------------------------------------------------------------------------
Thanks in advance,
Roberto
--
"Let the source be with you" - Tux