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

Re: Get attribute value from another entry



as "ou" is an attribute of inetOrgPerson object you can define it in your user entry, but it only give you the name of the office and so you have to make a search on "ou=officeName,dc=ex... " to retrieve values of the attributes telephoneNumber etc in the "ou=officeName,dc=ex... entry".

best regards
Lise Didillon

At 10:10 20/05/03 +0200, Andrea Gabellini wrote:
Hi all,

I'm building an address book where people belong to one office. Many attribute values are the same for people that belong to the same office. So I would like to add an organizationalunit object that share telephone and fax number, and many inetOrgPerson object that get telephone and fax number from the previous object. Is it possible? Follows a sample ldif.

dn: ou=people,dc=example,dc=com
objectClass: organizationalUnit
ou: people

dn: ou=OfficeName,dc=example,dc=com
objectClass: OrganizationalUnit
ou: OfficeName
telephoneNumber: 123456789
facsimileTelephoneNumber: 123456789

dn: uid=john.doe,ou=people,dc=example,dc=com
objectClass: inetOrgPerson
objectClass: posixAccount
cn: John Doe
sn: Doe
givenName: John
ou: OfficeName
mail: john.doe@example.com
uid: john.doe
userPassword:: e1NTSEF9bWJhYnI1bUh2UFNGek94bU9ZcUhjSjVOVEUwL09hZTg=
loginShell: /bin/false
uidNumber: 30000
gidNumber: 1
homeDirectory: /tmp





---------------------------------------
Computers can never replace human stupidity.
---------------------------------------
Ing. Andrea Gabellini
Email: agabellini@intelcom.sm
Tel: 0549 886111 (Italy)
Tel. +378 0549 886111 (International)

Intelcom San Marino S.p.A.
Strada degli Angariari, 3
47891 Rovereta
Repubblic of San Marino

http://www.omniway.sm http://www.intelcom.sm