[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: links in a LDAP database
Marc Cuypers wrote:
Adam Williams wrote:
I'm new to LDAP. I got an address book working, and it works fine.
I was wondering if it is possible from one subtree to link to another
subtree in the hierarchical database, so that the same data can be
found under more the one subtree?
Maybe you want to look at "referrals", or maybe just the "seeAlso"
attribute.
If i am right, seeAlso is just a reference to another entry in the LDAP
tree. Referrals are used to split up the ldap-tree on more than one
server, so that every server handles only the queries for a piece of the
tree.
What I'd like to do is the following. Every subtree contains a set of
entries. So a person with a search base dc=f1, dc=dm, dc=tld can see
the entries under dc=f1,dc=dm,dc=tld. A person with searchbase dc=f2,
dc=dm, dc=tld can see other entries...
I would like to put common entries under the tree dc=common,dc=dm,dc=tld
and make that every person how searches his searchbase can see all
entries under his searchbase and also those under the 'common' tree.
You can possibly use subentries with the objectclass alias
(RFC2256)
example:
your common tree is
dc=common,dc=dm,dc=tld
# subentrie of f1 that points to dc=common, dc=dm, dc=tld
dn: dc=common,dc=f1,dc=dm,dc=tld
objectclass: alias
objectclass: extensibleObject
dc: common
aliasedobjectname: dc=common, dc=dm, dc=tld
# subentrie of f2 that points to dc=common, dc=dm, dc=tld
dn: dc=common,dc=f2,dc=dm,dc=tld
objectclass: alias
objectclass: extensibleObject
dc: common
aliasedobjectname: dc=common, dc=dm, dc=tld
A ldapsearch with aliases dereferencing set to always
should resolve the subentries of f1 and f2.
So far I know aliases are only supported by the ldbm backend (not DB4).
Regards
A. Gabriel
Is this possible?
Marc
--
-- Andreas Gabriel
@AG Neurophysik ,Renthof 7, 35032 Marburg TEL/FAX +49 +6421 28-25683/27034
@HRZ, Hans-Meerwein-Str. , 35032 Marburg TEL/FAX +49 +6421 28-23560/26994
------------------ Philipps-Universitaet Marburg -------------------------