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

Re: Referrals

On Thu, Mar 02, 2006 at 11:45:18AM -0500, Hor, Jimmy (Mission Systems) wrote:
> Hello,
> I'm a little unclear of how referrals are supposed to work. If I have a
> referral for "abc.com" defined in my slapd.conf file and I do a search
> for an entry that is not in my local ldap database "test.com" will it
> automatically follow the referral and connect and search "abc.com" for
> the entry? Or will it just give me the url for "abc.com"? I'm using the
> ldapsearch command: "ldapsearch -b dc=example,dc=com uid=jimmy" and I
> know that "uid=jimmy" can only be found in the ldap server with the
> namespace "dc=abc,dc=com". 

Referrals are to be followed by the client, not the server.

In the case of ldapsearch, the default is to not follow referrals and
just show them in its output. If you want ldapsearch to follow
referrals, use the -C command line option.