0 Replies Latest reply: Apr 2, 2014 7:23 AM by WolfShade RSS

    CFLDAP modify example?

    WolfShade Community Member

      Hello, everyone,

       

      I'm kind of getting the hang of querying LDAP.  Now, I'm trying to learn how to MODIFY an LDAP entry.  I'm attempting to set department to "WebShop" for any entry that has a non-NULL mail attribute.

       

      The following code:

       

      <cfldap action="modify" attributes="department=WebShop" dn="mail=*" server="first.second.tld" username="#request.cfldapun#" password="#request.cfldappw#">
      

       

      .. is returning an error message:

       

      LDAP: error code 1 - 000020D6: SvcErr: DSID-031006CC, problem 5012 (DIR_ERROR), data 0
      

       

      The user account that is accessing the AD LDAP has admin privileges for the domain.  What am I doing incorrectly?

       

      V/r,

       

      ^_^