Mike 1.) It has access to modify the AD, as I have done this before on changing/adding cn names etc.
2.) True, would I need to put a cfloop around this ? 3.) From the proxy address all I want to extract would be i.vaughn, and some users have multi proxyaddresses. 4.) The reason being is that the mailNickname is currently set to say 'user92' when it should be i.vaughn and so on... -----Original Message----- From: Dawson, Michael [mailto:[EMAIL PROTECTED] Sent: 05 April 2006 14:38 To: CF-Talk Subject: RE: CFLDAP Question ? 1. Make sure your CFLDAP username has access to modify the AD. If you put it in the Account Operators group, it will be able to modify just about any object, except a domain admin account. 2. You are setting a session variable for the DN only once. Therefore, you keep updating the same AD object with multiple mailNicknames. It is possible that AD sees that you are using another account's mailNickname and is balking at your command. 3. ProxyAddresses is a multi-value AD object. You need to treat it as a list. It is possible that one, or more, domain accounts, have multiple proxyAddresses. You should create a quick debug page that dumps all proxyAddresses for each user account. You should also set the "separator" attribute to "|" or something other than a comma. Either way, if an account has multiple addresses in the proxyAddresses attribute, you will have to choose only one of them to place in the mailNickname. Do you mind if I ask why you are specifically setting the mailNickname attribute? M!ke -----Original Message----- From: Ian Vaughan [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 05, 2006 5:07 AM To: CF-Talk Subject: RE: CFLDAP Question ? When trying to update all users mailNickname with their proxyaddresses in an OU I am getting the following CF error ------- An error has occured while trying to execute modify :[LDAP: error code 16 - 00000057: LdapErr: DSID-0C0909CC, comment: Error in attribute conversion operation, data 0, vece]. One or more of the required attributes may be missing/incorrect or you do not have permissions to execute this operation on the server -------------------- Any ideas on what it could be ? -----------CF CODE--------------- <!--- query LDAP ---> <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" > <cfset session.fixeddn="#adresult.dn#"> <!--- UPDATE USERS MAILNICKNAME ---> <cfloop query="adresult"> <cfldap action="modify" modifyType="replace" attributes="mailNickname=#adresult.proxyAddresses#" dn="#session.fixeddn#" server="server" port="389" username="username" password="password"> </cfloop> DONE! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236997 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

