I have 2 LDAP servers:  

A with suffix: o=foo.net
B with suffix: o=bar.com,c=US

B is set up with a referral of "ldap://B:389/o=foo.net";

I am trying to use the ldapsearch tool to find a dn within an
organizational unit.  When I search against A (no referral), I get the
results I expect - the dn with its uniqueMember attributes.  However,
when I search against B all I get back is "o=foo.net".

My query against A:

ldapsearch -b "cn=Contractors,ou=memberlist,ou=ourgoups,o=foo.net" -h
A -s base "(objectclass=*)" uniqueMember

produces:

cn=Contractors,ou=memberlist,ou=ourgroups,o=foo.net
uniquemember=cn=Jill Tester,ou=Testing Department,o=bar.com,c=US
uniquemember=cn=Joe Coder,ou=Development Department,o=bar.com,c=US

My query against B:

ldapsearch -b "cn=Contractors,ou=memberlist,ou=ourgoups,o=foo.net" -h
B -s base "(objectclass=*)" uniqueMember

produces:

o=foo.net


What am I missing here?  Shouldn't I get the same result?

Any help would be greatly appreciated!

Reply via email to