Hey guys, I have a little pet project which has become a real pain in the neck. Basically, I want to be able to change active directory passwords from CF. The basic steps to do this are:
1) Load the appropriate certificate into the keystore 2) Allow the CF server to communicate with the AD DC using LDAPS. 3) Use cfldap with modify to set the attribute unicodePwd to the new password in UTF16-LE format. As per this document: http://msdn.microsoft.com/en-us/library/cc200469.aspx Now, after much frustration and messing around, 1 and 2 are done and working. However, I can't for the life of me figure out how to get CF to pass the password through the LDAPS connection as UTF-16LE, and with double quotes around it. Does anyone have any clue what to do? I've tried the following (from a CF doc) to test, with no success: <cfset charData = """passwordhere"""> <!------ Create a Base64 representation of this string. ----> <cfset data64 = toBase64(#charData#)> <p> The following string is the Base64 representation of the string.<br> <cfoutput>#data64#</cfoutput></p> <!---- Create a binary representation of Base64 data. ---> <cfset dataBinary = toBinary(data64)> <!---- Create the string representation of the binary data. -----> <cfset dataString = ToString(dataBinary,"UTF-16")> <p>The following is the string representation of the binary data.<br> <cfoutput>#dataString#</cfoutput></p> Does anyone have any idea how to go about this? I'm baffled. There are other ways I can do this, but after going this far and only having this in my way, I'd really like to get it figured out. Thanks in advance for the help. Dan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314403 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

