openldap 2.4.9
Suse 11.0

The following entries has been added successfully:

dn: o=my-org,dc=my-domain,dc=com
dn: ou=People,o=my-org,dc=my-domain,dc=com
dn: uid=rvg,ou=People,o=my-org,dc=my-domain,dc=com
dn: ou=Servers,o=my-org,dc=my-domain,dc=com

Working with he basic configuration, only adding the overlay unique which is working fine. A same uid cannot be added to the branch People and Servers.

overlay unique
unique_uri ldap:///?uid?sub

But, in adding the following entry:

dn: uid=1, ou=People, o=my-org, dc=my-domain, dc=com
userPassword: secret
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
cn: xxxxxxxxxxxxx
sn: xxxxxxxxxxx
uid: 1

openldap dies

ldapmodify -a -x -D "cn=Manager,o=my-org,dc=my-domain,dc=com" -w secret
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

The last logs are:

Aug 28 09:28:32 localhost slapd[3423]: conn=1 op=1 ADD dn="uid=1,ou=Servers,o=my-org, dc=my-domain, dc=com"
Aug 28 09:28:32 localhost slapd[3423]: bdb_dn2entry("uid=1,ou=servers,o=my-org, dc=my-domain, dc=com")
Aug 28 09:28:32 localhost slapd[3423]: => bdb_dn2id("o=my-org, dc=my-domain, dc=com")
Aug 28 09:28:32 localhost slapd[3423]: <= bdb_dn2id: got id=0x1 Aug 28 09:28:32 localhost slapd[3423]: => bdb_dn2id("ou=servers,o=my-org, dc=my-domain, dc=com")
Aug 28 09:28:32 localhost slapd[3423]: <= bdb_dn2id: got id=0x4 Aug 28 09:28:32 localhost slapd[3423]: => bdb_dn2id("uid=1,ou=servers,o=my-org, dc=my-domain, dc=com")
Aug 28 09:28:32 localhost slapd[3423]: <= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30989) Aug 28 09:28:32 localhost slapd[3423]: entry_decode: "ou=Servers,o=my-org,dc=my-domain,dc=com" Aug 28 09:28:32 localhost slapd[3423]: <= entry_decode(ou=Servers,o=my-org,dc=my-domain,dc=com) Aug 28 09:28:32 localhost slapd[3423]: bdb_referrals: tag=104 target="uid=1,ou=Servers,o=my-org,dc=my-domain,dc=com" matched="ou=Servers,o=my-org,dc=my-domain,dc=com" Aug 28 09:28:32 localhost slapd[3423]: ==> unique_add