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

Re: Search Filter for Second Value



Chris Jacobs wrote:
(|(userPassword[0]=foo)(userPassword[1]=foo))

Google: ldap filter syntax - the zytrax result is pretty handy.

uh.... No. "blahblah[X]" is not a valid LDAP construct. Did you get that from zytrax?

- chris

Sorry for double send Tim; forgot to reply-all to list.

Chris Jacobs, Systems Administrator
Apollo Group  |  Apollo Marketing | Aptimus
2001 6th Ave Ste 3200 | Seattle, WA 98121
phone: 206.839-8245 | cell: 206.601.3256 | Fax: 208.441.9661
email:  chris.jacobs@apollogrp.edu

----- Original Message -----
From: openldap-technical-bounces@OpenLDAP.org<openldap-technical-bounces@OpenLDAP.org>
To: openldap-technical@openldap.org<openldap-technical@openldap.org>
Sent: Fri Jan 28 12:38:38 2011
Subject: Search Filter for Second Value

Is there any way to craft a search filter that checks for an attribute with two or more values?

For example, how could I construct a query to search for users with two passwords?

Something like:

userPassword[1]=*

(where userPassword[0] would be the user's first password attribute)

Tim Gustafson
Baskin School of Engineering
UC Santa Cruz
tjg@soe.ucsc.edu
831-459-5354




This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.





--
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/