title: Is it possible to change the password via cfldap?
body: <p>For some time I have been trying to change a password via <code>cfldap</code>. The connection is made over SSL and port 636 (<code>cfssl_basic</code>), tested within logins. I tried the following version of code:</p>
  
  <pre><code>&lt;cfset password_new_retyp=charsetEncode(charsetDecode('"'&amp;password_new_retyp&amp;'"','UTF-16LE'),'UTF-8'))&gt;
  &lt;!---encoded, decoded password ---&gt;
  &lt;cfldap action="modify"
      dn="#session.dn_addres#" --- i query this on login
      modifyType="replace"
      attributes="unicodePwd=#password_new_retyp#"
      server="xxxx.xxxx.xxx.xx" --- name of server thet i use on login
      secure = "cfssl_basic" 
      port=636
      username="#session.username#" ---username thet is used on login
      password="#password_old#"&gt;  ---- pass before changing
  </code></pre>
  
  <p>and error is somthing like this :</p>
  
  <blockquote>
    <p>An error has occured while trying to execute query :[LDAP: error code 49 - 80090308: LdapErr: DSID-0C0903C5, comment: AcceptSecurityContext error, data 52e, v23f0 ]. </p>
  </blockquote>
  
  <p>I also tried this method without encoding password:</p>
  
  <pre><code>&lt;cfldap action="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#" &gt;
  </code></pre>
  
  <p>and eror is the same:</p>
  
  <blockquote>
    <p>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. </p>
  </blockquote>
  
  <p>Any idea?</p>