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

Re: attribute inheritance



At 11:27 AM 2/16/00 -0500, Maximilian Ott wrote:
>
>
>Assume I have the following entries:
>
>dn: app=foo
>attr1: red
>attr2: big
>
>dn: os=linux, app=foo
>attr1: blue
>
>I now want to make a query including os=linux and app=foo and want to get
>back attr1=blue, attr2=big.
>
>Can I do that? I hope it is obvious why I want to do it.

OpenLDAP 1.x does not support attribute subtyping.  You need
to request each subtype explicitly:

ldapsearch -b "app=foo" '(|(attr1=*)(attr2=*))' attr1 attr2

would return attr1 and attr2 attributes of any entry in the app=foo
subtree which contained either attr1 or attr2.