Hopefully, your CSV file will have one line for each employee.  If so,
then each line should contain that employee's telephone number.  When
you loop over the CSV recordset, everything should be "aligned"
correctly.

When you modify a directory object, the ATTRIBUTES attribute, of the
CFLDAP tag, contains the object's attributes that you want to update.
So, that line should be correct as long as you are setting
"newAttributes" earlier in your code.

m!ek 

-----Original Message-----
From: Ian Vaughan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2008 10:26 AM
To: CF-Talk
Subject: RE: Coldfusion and Active Directory

Hi Mike

Thanks for that, and the point you made about the object class!

Before I run the script against active directory, I would just like to
check one or two points.


In the second CFLDAP I currently have

.....
<cfldap
action="modify"
modifyType="replace"
attributes="#newAttributes#"
DN="#ldapResults.distinguishedName#"
server="server"
port="389"
username="username"
password="password">
</cfif>

</cfloop>


Is this line correct ? attributes="#newAttributes#"


and how would this CFLDAP statement know to update the phone number of
employee A with the phone number listed for employee A in the CSV file ?
the same for Employee B etc


Regards,

Ian

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

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