You only need half of your filter.

You are requesting LDAP to return objects of class = groupOfUniqueNames
that is also a member of that group.

The only way this will return any records is if you have a group nested
within that other group.

Get rid of the first part of the filter and only search on the
"memberOf" attribute.

filter="memberOf=CN=New Group, dc=example, dc=com"

If you want to tidy it up and return only users, then change your
current filter from "groupOfUniqueNames" to "user" or whatever the Sun
attribute is for a user.

m!ke

-----Original Message-----
From: Den Made [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 1:30 PM
To: CF-Talk
Subject: Re: CFLDAP groups

Thanks Michael,
I am using Sun Directory Server 6.0 on Windows 2003. I created a static
group and Added users from different Organizational Units (Group Member
(uniqueMember)........

Now I want to Query the group to find all Members of this group: i.e.
"cn=New Group,ou=Groups,dc=example,dc=comin"
using the CFLDAP tag below but I am not finding the members, what am I
doing wrong?

<cfldap action="QUERY"
name="GetLDAP3"
attributes="uid"
start="dc=example,dc=com"
Scope="subtree"
filter="(&(objectClass=groupOfUniqueNames)(memberOf=cn=New Group,
dc=example, dc=com))"
server="xxx.xxx.x.xxx"
Port="1389"  
username="cn=ldapwindowsmanager"
password="windows2008">

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306933
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