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

referral problem (subordinate information)



Hi, I have a problem with referrals:

I use openldap 2.0.11 and have two servers:
The superior server "ldap1.wlb-stuttgart.de" (suffix: 
"dc=wlb-stuttgart,dc=de") with some information in it and one referral:
------------------------------------------
dn: dc=subtree,dc=wlb-stuttgart,dc=de
objectClass: referral
objectClass: extensibleObject
dc: subtree
ref: ldap://ldap2.wlb-stuttgart.de/dc=subtree,dc=wlb-stuttgart,dc=de
------------------------------------------


The inferior server "ldap2.wlb-stuttgart.de" (suffix: 
"dc=subtree,dc=wlb-stuttgart,dc=de") holds following information:
------------------------------------------
dn: dc=subtree,dc=wlb-stuttgart,dc=de
objectclass: dcObject
dc: subtree
 
dn: ou=Users,dc=subtree,dc=wlb-stuttgart,dc=de
objectclass: organizationalUnit
ou: Users
 
dn: cn=user1,ou=Users,dc=subtree,dc=wlb-stuttgart,dc=de
objectclass: person
cn: user1
sn: user1
-------------------------------------------

When I use ldapsearch on ldap1:
ldapsearch -xC -h ldap1.wlb-stuttgart.de -b 
"ou=Users,dc=subtree,dc=wlb-stuttgart,dc=de" -s one "objectclass=*"

the result is:
dn: ou=Users,dc=subtree,dc=wlb-stuttgart,dc=de
but i think it should be:
dn: cn=user1,ou=Users,dc=wlb-stuttgart,dc=de

I just can't figure out, what I am doing wrong or what I didn't understand.
Thanks in advance.

Benny