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

slapadd problem



Openldap 2.4.21, patched with openldap-ntlm.diff from evolution
./configure --prefix=/usr --enable-static
Db 4.7.25
./configure --prefix=/usr --enable-compat185 --disable-static

Problem with smbldap-populate:
# smbldap-populate
Populating LDAP directory for domain WORKGROUP
(S-1-5-21-686817777-1585854605-660948164)
(using builtin directory structure)

adding new entry: dc=example,dc=org
adding new entry: ou=People,dc=example,dc=org
adding new entry: ou=Groups,dc=example,dc=org
entry ou=People,dc=example,dc=org already exist. 
adding new entry: ou=Idmap,dc=example,dc=org
^C
(hangs)

test1.ldif:
dn: dc=example,dc=org
objectclass: dcObject
objectclass: organization
dc: example
o: Quenya Org Network
description: The Samba-3 Network LDAP Example

test2.ldif:
dn: sambaDomainName=WORKGROUP,dc=example,dc=org
objectclass: top
objectClass: sambaDomain
objectClass: sambaUnixIdPool
sambaDomainName: WORKGROUP
sambaSID: S-1-5-21-686817777-1585854605-660948164
uidNumber: 1000
gidNumber: 1000
sambaNextRid: 1000

# /etc/rc.d/init.d/ldap stop
/var/openldap-data # rm __db.00* alock *.bdb log.0000000001
# slapadd -v -l test1.ldif
added: "dc=example,dc=org" (00000001)
_#################### 100.00% eta   none elapsed            none
fast!         
Closing DB...
# slapadd -v -l test2.ldif 
^C
(hangs)

But:
/var/openldap-data # rm __db.00* alock *.bdb log.0000000001
# slapadd -v -l test2.ldif 
added: "sambaDomainName=WORKGROUP,dc=example,dc=org" (00000002)
_#################### 100.00% eta   none elapsed            none
fast!         
Closing DB...Error, entries missing!
  entry 1: dc=example,dc=org

# slapadd -v -l test1.ldif 
added: "dc=example,dc=org" (00000001)
_#################### 100.00% eta   none elapsed            none
fast!         
Closing DB...

Why first test1 then test2 doesn't work? Deadlock?

slapd.conf:
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/samba.schema
pidfile         /var/run/slapd.pid
argsfile        /var/run/slapd.args
loglevel        256
idletimeout     30
access to dn.base=""
                by self write
                by * auth
access to attrs=userPassword
                by self write
                by * auth
access to attrs=shadowLastChange
                by self write
                by * read
access to *     by * read
                by anonymous auth

backend         bdb

database        bdb
cachesize       10000
suffix          "dc=example,dc=org"
checkpoint      1024 5
rootdn          "cn=Manager,dc=example,dc=org"
# /usr/sbin/slappasswd -s secret
rootpw          {SSHA}Z6Ton189xuv6t+OeUYxcGoLR+nZnh0Z6
directory       /var/openldap-data
# Indices to maintain
index objectClass           eq
index cn                    pres,sub,eq
index sn                    pres,sub,eq
index uid                   pres,sub,eq
index displayName           pres,sub,eq
index uidNumber             eq
index gidNumber             eq
index memberUid             eq
index sambaSID              eq
index sambaPrimaryGroupSID  eq
index sambaDomainName       eq
index default               sub

database monitor
access to *
        by dn.exact="cn=Manager,dc=example,dc=org
        by * none