You did not specify what your exact difficulties are, so I will just
respond with a general message regarding LDAP and groups.

I am more experienced with Active Directory, but it appears that you are
using Sun's LDAP server.  (I assumed this by your example's LDAP
attributes and your password.)  Even if my suggestions don't work,
verbatim, you should still be able to use the concept.

Normally, you have two options for getting a group's members.

1. Query the group and return the members.
2. Query all users who are a member of the group.

I prefer the second method because I can also return other attributes,
such as the user's name, email and telephone number.

The filter, for my second suggestion, would be something like:

"(&(objectClass=user)(memberOf=CN=MyGroup, DC=domain, DC=com))"

This filter will return all user accounts who are a member of the
"MyGroup" domain group.  (Edit the attributes as needed for your LDAP
server.)

If you post your exact issue, I can try to help more.

m!ke


-----Original Message-----
From: Den Made [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 11:03 AM
To: CF-Talk
Subject: CFLDAP groups

I have run into a big problem setting and searching dynamic groups and
was told static groups are the most supported and most understood. I
created a static group and added some members; now I am trying to search
for members of this group and am facing difficulties.

This is the code I am using and its on Windows 2003 Will appreciate your
help as always.

<cfldap action="QUERY"
     name="GetLDAP3"
     attributes="uid"
     start="ou=new group, ou=groups,dc=example,dc=com"
     Scope="subtree"
     filter="(&(objectclass=groupOfUniqueNames)(cn=New
Group)(uniqueMember=*))"
     server="xxx.xxx.x.xxx"
     Port="1389"  
     username="cn=ldapforwindows"
     password="sunforwindows"> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:306921
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