The syntax you need is:

filter="(&(cn=jegan)(userpassword=bixby))"

Reference RFC 2254 for the full syntax of LDAP filters. It can be found
here: 

        http://www.cis.ohio-state.edu/htbin/rfc/rfc2254.html

Kevin

>>> [EMAIL PROTECTED] 12/13/00 11:23AM >>>
I'm using LDAP for a login process.  like a query where I can restrict
with
a where clause, I would like to do the same thing with LDAP.  so that
only
one record is returned where the un and pw match exactly.

I've tried using the filter attribute, but I either get one or the
other, or
both.

filter="(cn=jegan)(userpassword=bixby)"

this gives me both.

to test I have two users with the same user name but different
passwords.

Any suggestions?  I'm sure there has to be a query language of some
sort we
can use with cf's LDAP code... like the search language with verity?

thank you,
Jason Egan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to