I was continuing with Tim's example. I didn't care about his use, just responding to how to construct an 'or' ldap query.
- chris -----Original Message----- From: Howard Chu [mailto:[email protected]] Sent: Friday, January 28, 2011 12:10 PM To: Chris Jacobs Cc: '[email protected]'; '[email protected]' Subject: 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: [email protected] > > ----- Original Message ----- > From: > [email protected]<[email protected]> > To: [email protected]<[email protected]> > 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 > [email protected] > 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/ This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
