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. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

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

Reply via email to