Ironically, I tried using the samaccountname and things work great! The only 
issue I have now is sorting by groups. I did use the separator attribute and 
tried to match up find do a separate query for users within a certain group. 
Using the memberof just does the samething, I get blank output. Is there 
something wrong with my code?

<cfldap action="query"
name="getGroups"
attributes="cn, dn, title, mail, telephonenumber, samaccountname, memberof"
start="dc=domain,dc=name,dc=net"
filter="(&(objectclass=group)(sAMAccountName=#usrName#)(memberof=GROUPNAME))"
server="domain.name.net"
sort="cn ASC"
username="domain\#usrName#"
password="#adminPass#"
separator=";">

<cfdump var="#getGroups#" label="Groups">

I even tried to use a cfif statement combined with a REFind and a regular Find, 
and setting a variable if that specific string was found in the memberof field. 
I'm still confused on how to use the cfldap, but it's getting better. Thanks 
for your patience and help. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293707
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to