[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Attribute Inheritance
Hi-
I have defined my own schema to use with OpenLDAP. With it, I am trying to
do the following..
dc=getsite
objectclass: top
diid=DI1234,dc=getsite
objectclass: top
objectclass: site
longname: Some Long Name
dinumber: 1234
prodcode=IB,diid=DI1234,dc=getsite
objectclass: top
objectclass: ib
fihost: server
fiport: 12345
dir: /usr/local/site
Using the following query in an ldapsearch: ldapsearch -xLLLb
"diid=di1234,dc=getsite" '(objectclass=ib)' fihost
This, obviously, gives the me the fihost.
My question is:
Is there a way I reference the 'longname' and 'dinumber' from the above
query?
I know I can set objectclass=* and it will give me those values but I would
prefer not to do it this way. Can I alias in or inherit the attr=values
from "diid=DI1234,dc=getsite" into "prodcode=ib,diid=DI1234,dc=getsite"?
So when I perform the following command: ldapsearch -xLLLb
"diid=di1234,dc=getsite" '(objectclass=ib)' fihost longname
I would get output back such as:
dn: prodcode=ib,diid=DI1234,dc=getsite
fihost: server
longname: Some Long Name
Thanks,
-james