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

Re: One and the same entry in multiple posistions



Marc Schöchlin wrote:
> 
> Hi !
> 
> I have an entry in this position:
> 
> dn: uid=testuser,ou=people,dc=testAG,dc=DE
> objectClass: top
> objectClass: account
> objectClass: posixAccount
> objectClass: shadowAccount
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetOrgPerson
> cn: Fritz Meier
> uidNumber: 1000
> gidNumber: 2000
> loginShell: /bin/bash
> gecos: Marc Schoechlin
> givenName: Marc
> sn: Schoechlin
> mail: dfgdfg@testag.de
> homeDirectory: /home/import/testuser
> userPassword:: e2NyeXBsdsdd5NHBxZGZZOU14Smc=
> uid: testuser
> 
> Now i want to make this entry also available under the following
> tree-location:
> 
> dn: uid=testuser,ou=MACHINE1,dc=testAG,dc=DE
> 
> How can I do this ?
> 
> I don't want to have two identical entries - it should be one and the
> same entry :-)

Create an alias entry. See RFC 2251-6 for details.
You must add the entry

dn: uid=testuser,ou=MACHINE1,dc=testAG,dc=DE
objectClass: top
objectClass: alias
aliasedObjectName: uid=testuser,ou=people,dc=testAG,dc=DE

and seach it dereferencing aliases. man ldapsearch for details
on the options.

Pierangelo


-- 
Dr. Pierangelo Masarati               | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale                | fax:   +39 02 2399 8334
Politecnico di Milano                 | mailto:masarati@aero.polimi.it
via La Masa 34, 20156 Milano, Italy   |
http://www.aero.polimi.it/~masarati