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

Re: search on a DN typed attribute



On Wed, 10 Oct 2001 18:41:59 +0200
Pierangelo Masarati <masarati@aero.polimi.it> wrote:

> "Michaël Parienti" wrote:
> > 
> > I would like to perform a search on an attribute which is a
> > 'DN attribute'. Here is a subset of my schema:
> > 
> > attributetype ( 1.3.6.1.4.1.10650.2.10.0.0.27.2.1.3 NAME (
> 'eeadminattach' )
> >         SYNTAX 1.3.6.1.4.1.1466.115.121.1.12
> >         SINGLE-VALUE )
> > 
> > objectclass ( 1.3.6.1.4.1.10650.2.10.0.0.27.2.2.1 NAME 'eeperson' SUP
> person STRUCTURAL
> >         MAY ( gn $ mail $ title $ eeadminattach ) )
> > 
> > The attribute 'eeadminattach' is the DN of another entry in
> > my directory.
> > 
> > Now, I want to get all the people whose 'eeadminattach' has
> > the following DN: 'cn=Ouest,dc=easter-eggs,dc=com'. How do I
> > write the filter to perform this search ?
> > 
> > I tried:
> > p5adminattach=cn=Ouest,dc=easter-eggs,dc=com
> > p5adminattach=cn=Ouest\,dc=easter-eggs\,dc=com
> 
> According to your mail, you are using a wrong attribute type;
> you should filter for
> 
> '(eeadminattach=cn=Ouest,dc=easter-eggs,dc=com)'


Of course I made a typing mistake. What I tried was:
eeadminattach=cn=Ouest,dc=easter-eggs,dc=com
eeadminattach=cn=Ouest\,dc=easter-eggs\,dc=com

It didn't work, and I don't know why.

I escaped the commas, because I didn't know what to do.

I wonder if there is a special syntax to make search with
attribute which are 'DN typed'. So I ask the question to this
mailing list, hoping to have an answer.


Michaël P.