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

Re: openldap search filter attribut equal to another



Am 05.03.2014 09:52, schrieb Lanfeust troy:
> hi list,
>
> is it possible to write a filter like:
>
> (&(objectClass=inetOrgPerson)(mail=cn))
>
> to retrieve all entry that attribute mail equal to attribute cn.
>
> thanks
No, RFC 4515 does not define such. On the right side of the operator
("filtertype") an attribute value ("assertionvalue") is expected and not
an attribute type ("attr" which is "attributedescription"). "attr" is
only is expected on the left side of the operator:
> simple         = attr filtertype assertionvalue

You will need a little scripting to achieve what you want.

Cheers,

Peter

-- 

Peter Gietz, CEO

DAASI International GmbH        
Europaplatz 3                   
D-72072 Tübingen                
Germany                    

phone: +49 7071 407109-0
fax:   +49 7071 407109-9  
email: peter.gietz@daasi.de
web:   www.daasi.de

Sitz der Gesellschaft: Tübingen
Registergericht: Amtsgericht Stuttgart, HRB 382175
Geschäftsleitung: Peter Gietz



Attachment: smime.p7s
Description: S/MIME Cryptographic Signature