Hi Folks, I''m wondering if anyone has tackled something like this and might have a suggestion for me: We have a few fields on people records which are essentially "pointers" to other records, for example: dn: uid=example,ou=people,dc=example,dc=com uid: example comExampleOrgUnitDN: ou=EXAM,ou=departments,dc=example,dc=com ...which basically says that the person "example" is in the "EXAM" department. But of course when someone looks up Mr. Example, he probably would like to know that he works in "Department of Examples", rather than the DN of the department... dn: ou=EXAM,ou=departments,dc=example,dc=com cn: Department of Examples So my question is: is there any trick to create a sort of dynamic lookup on the person''s record that would "drill down" into the department record and pull up the cn? My first thought is that this would be a sort of computed/translated field... I haven''t run across anything describing this in the FDS documentation. Any ideas? Basically, I want to avoid putting "Department of Examples" on Mr. Example''s record because if the Department decided to change its name to the "Example Department", I''d have to manually adjust everyone in the department. -- Ben Steeves _ bcs@metacon.ca The ASCII ribbon campaign ( ) ben.steeves@gmail.com against HTML e-mail X GPG ID: 0xB3EBF1D9 http://www.metacon.ca/bcs / \ Yahoo Messenger: ben_steeves
jclowser@unitedmessaging.com
2005-Jun-10 15:39 UTC
Re: [Fedora-directory-users] auto dn lookups
Yep - look at the class of service plugin - it does exactly what you are asking for. - Jeff Ben Steeves wrote:>Hi Folks, > >I''m wondering if anyone has tackled something like this and might have >a suggestion for me: > >We have a few fields on people records which are essentially >"pointers" to other records, for example: > >dn: uid=example,ou=people,dc=example,dc=com >uid: example >comExampleOrgUnitDN: ou=EXAM,ou=departments,dc=example,dc=com > >...which basically says that the person "example" is in the "EXAM" >department. But of course when someone looks up Mr. Example, he >probably would like to know that he works in "Department of Examples", >rather than the DN of the department... > >dn: ou=EXAM,ou=departments,dc=example,dc=com >cn: Department of Examples > >So my question is: is there any trick to create a sort of dynamic >lookup on the person''s record that would "drill down" into the >department record and pull up the cn? My first thought is that this >would be a sort of computed/translated field... I haven''t run across >anything describing this in the FDS documentation. > >Any ideas? Basically, I want to avoid putting "Department of >Examples" on Mr. Example''s record because if the Department decided to >change its name to the "Example Department", I''d have to manually >adjust everyone in the department. > > >
Ben Steeves wrote:>We have a few fields on people records which are essentially >"pointers" to other records, for example: > > >This is what class of service was designed to do. (well, one of the things it was deisgned to do). You can configure a COS such that the department attribute is inherited in a specified subtree.