You don't need a query around the first CFLDAP tag.  You only need to
loop around the second CFLDAP tag using the query results from the first
CFLDAP tag.

I think your first CFLDAP tag is fine, as long as it returns the correct
results for you.  Your second CFLDAP tag was just updating the "same" AD
object since you were only setting the DN, one time, "outside" of the
loop when you should have been using it "within" the loop.

This is the basic layout:

<cfldap name="adresult"...>

<cfloop query="adresult">
  <cfldap [modify stuff here]...>
</cfloop>

That structure should do it for you.  Just remember that CFLDAP will let
you return many records, but CFLDAP will "only" let you modify a
"single" record.  Hence, the need for a loop.

M!ke

-----Original Message-----
From: Ian Vaughan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006 5:02 AM
To: CF-Talk
Subject: RE: CFLDAP Question ?

2.)  What loop would I need around the first cfldap query below ?  I
thought a query would search through all records without the need of a
cfloop ? 

<cfldap action="query"
name="adresult"
attributes = "cn,dn, mailNickname, proxyAddresses"
START="ou=Test,DC=domain,dc=gov,dc=uk"
filter="(&(objectClass=User)(mail=*))"
server="server"
port="389"
username="username"
password="password"
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237077
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to