For some time I have been trying to change a password via cfldap. The connection is made over SSL and port 636 (cfssl_basic), tested within logins. I tried the following version of code:
<cfsetpassword_new_retyp=charsetEncode(charsetDecode('"'&password_new_retyp&'"','UTF-16LE'),'UTF-8'))><!---encoded, decoded password --->
<cfldapaction="modify"
dn="#session.dn_addres#" --- iquerythisonlogin
modifyType="replace"
attributes="unicodePwd=#password_new_retyp#"
server="xxxx.xxxx.xxx.xx" --- nameofserverthetiuseonlogin
secure="cfssl_basic"
port=636
username="#session.username#" ---usernamethetisusedonlogin
password="#password_old#"> ---- pass before changing
and error is somthing like this :
An error has occured while trying to execute query :[LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903C5, comment: AcceptSecurityContext error, data 52e, v23f0 ].
I also tried this method without encoding password:
<cfldapaction="modify"
dn="#session.dn_addres#"
modifyType="replace"
attributes="password=#password_new_retyp#"
server="xxxx.xxxx.xxx.xx"
secure="cfssl_basic"
port=636
username="#session.username#"
password="#password_old#">
and eror is the same:
An error has occured while trying to execute query :[LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903C5, comment: AcceptSecurityContext error, data 52e, v23f0 ]. One or more of the required attributes may be missing or incorrect or you do not have permissions to execute this operation on the server.
Any idea?