[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Filter on higher rdn and read lower rdn attributes
- To: masarati@aero.polimi.it
- Subject: Re: Filter on higher rdn and read lower rdn attributes
- From: "S.A." <qmt9z3@yahoo.com>
- Date: Mon, 20 Sep 2010 16:48:16 -0700 (PDT)
- Cc: openldap-technical@openldap.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1285026497; bh=rP94hEOql2ACrQS0Oo1QH3tuLml35YFNdJZLtsnTFO8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=lbU66k78WlY6+9tMUe/3fXfnirZtluPZaVYHNPB/ZZmQ7IhV3EYTMCt8vZQy1Ib9nNUfXXKjL78F+4dVbvGt8LXXsFIGeAQIj2DgTY9AQTwPNOUXmsPX3mWuo7Q3JJRRzWgWRGPpdPPJak10oboMK0uveNoJAR2wDhL21FQQ7SQ=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=rNnQ6ZRyA++gFH6ErMEspR+WdOGAK/fgJE/NX+NwV2pX7V+3J8aYS09HS/UfW4ryQNWjlIPX+T93nGI8XpkzzQELkDL3182/2ag16AcDK8HRTie76Sj9LZo+dToMuMYM0453osols/5cToxUG1xg+OfycPGSXphcbbquLxeAKj8=;
- In-reply-to: <f1e6ef011737e5164012614520666fd7.squirrel@www.aero.polimi.it>
--- On Sun, 9/19/10, masarati@aero.polimi.it <masarati@aero.polimi.it> wrote:
> From: masarati@aero.polimi.it <masarati@aero.polimi.it>
> Subject: Re: Filter on higher rdn and read lower rdn attributes
> To: "S.A." <qmt9z3@yahoo.com>
> Cc: openldap-technical@openldap.org
> Date: Sunday, September 19, 2010, 3:50 PM
> > Hello,
> >
> > I have a question regarding the construction of search
> filter
> > (assuming that what I think is possible in LDAP).
> >
> > For a tree shown like below:
> >
> >
> o dc=com
> >
> |
> >
> o dc=xyz
> >
> / |
> | \
> > ou=machines o
> . . . . . o ou=people
> >
>
> / | \
> >
> uid=abby o . . o
> ou=xie
> <- OC1
> >
> /
> >
> ou=options o
>
> <- OC2
> >
> /
> >
> ou=theme1 o
>
> <- OC3
> >
> > OC1 != OC2 != OC3 (objectclasses with different set of
> attributes)
> >
> > Assume that at uid=<name> rdn, the objectclass
> (OC1) has an attribute
> > called accessFlag. Based on this accessFlag attribute
> value, is it
> > possible to construct a search filter that will give
> us the attributes
> > of the objectclass (OC3) with rdn ou=<theme
> name>?
> >
> > That is, I want to get the theme values of all users
> whose accessFlag
> > is set to some value.
>
> In short, this is not possible.
>
> As a more articulate response, I'd note this type of
> behavior is
> occasionally needed, and should be implemented at the
> application level.
> For this purpose, I have drafted in the past a formal
> specification of a
> search control that allows to specify the parameters of a
> subsearch to be
> applied to all entries returned by the primary
> search. This specification
> was never submitted for many reasons and unfortunately it
> was never
> implemented. I might try to dig out what I wrote, in
> case someone finds
> it interesting and worth reviving and implementing.
>
> p.
Thanks for your response!
Under the circumstance, I am thinking that one way to go about
getting the required attribute data is to add 'accessFlag'
attribute at the required rdn. This is going to be duplicate
piece of data and any updates to 'accessFlag', would now
result in two updates. However, I will be able to save multiple
reads. In my scenario, we do lot more reads than the updates
on the 'accessFlag' field.
Is there a better way to deal with the above case?
Thanks