>Hi,
>
>I want to see if a user exist or not in group AI. here is my LDAP query-
>___________________________________________
><cfldap 
>action="query" 
>attributes="member" 
>start="OU=Endgroups,DC=uad,DC=su,DC=du" 
>server="someserver" 
>username="someuser"
>filter="cn=ai"
>password="somepasswd"
>name="getLdapUser">    
>___________________________________________
>
>And Here is the what i am getting(cfdumping getLdapUser)-
>___________________________________________
>
>CN=xyz,OU=EndUsers,DC=uad,DC=su,DC=du, 
>CN=mnop,OU=EndUsers,DC=uad,DC=su,DC=du, 
>CN=pqr,CN=Users,DC=uad,DC=su,DC=du, 
>CN=stuv,CN=Users,DC=uad,DC=su,DC=du, 
>CN=wxyz,OU=EndUsers,DC=uad,DC=su,DC=du,
>___________________________________________
>
>Please tell what should be correct LDAP query.
>
>Thanks

You need to specify a filter attribute, in the CFLDAP tag.

... filter = "cn=xyz" ...

You can also use "name" or "sAMAccountName" as the filter criteria (as long as 
they match the CN value).

The query will return 1 or 0 records, depending if it finds a match.

mike 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332125
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to