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

Re: referrals to foreign directory tree?



Kiyoshi Watanabe wrote:

> I am struggling to to find a way to use a referral to foreign
> directory. My directory in my server starts with something like
>
>           c=JP
>            |
>          -----
>         |     |
>        o=A   o=B
>         |     |
>        ...    ...
>
> Also, I have a complete different directory tree in a server
> in differnt location something like,
>
>          c=US
>           |
>         -----
>        |     |
>     o=A_us   o=B_us
>        |     |
>       ...   ...
>
> So I want to use these existing trees and hopefully search the right
> person by setting the referrals.  But I do not know how.
>

1) Add new naming contexts (suffixes) to each of your servers: suffix
"c=US" to the first one, suffix "c=JP" to the second one;
2) Create new entries of the referral objectClass in each server: again,
in the first:
dn: c=US
objectclass: top
objectclass: country
objectclass: referral
c: US
ref: ldap://<server_for_US:port>/c=US

and in the second:
dn: c=JP
objectclass: top
objectclass: country
objectclass: referral
c: JP
ref: ldap://<server_for_JP:port>/c=JP

And try to issue LDAPv3 requests for c=JP and c=US to both servers with
and without the option of chasing referrals...
Mind the -M[M] option of the ldapmodify and ldapsearch utilities: you
will need it while creating referral entries and looking at them in your
server as at ordinary entries. Without the option, you will get an
LDAPv3 referral.

Regards,
    Konstantin.

--
          * *        Konstantin Chuguev - Application Engineer
       *      *              Francis House, 112 Hills Road
     *                       Cambridge CB2 1PQ, United Kingdom
 D  A  N  T  E       WWW:    http://www.dante.net