0 Replies Latest reply on May 11, 2006 1:11 PM by aagrawal

    Coyping Attributed from a user

    aagrawal
      I am using CFLDAP to extract all attributes from a exisiting user(mr bear). Here is my code

      <cfldap action="QUERY"
      name="GetUserInfo"
      attributes="*"
      start="cn=mr bear, ou=OUsers,dc=companyname,dc=com"
      scope="subtree"
      server="127.0.01"
      username="companynameAdministrator"
      password="xxx"
      >

      Now I get a list of attributes when I do a <cfoutput> on the Query. Now I want to add a new user with the same attributes but diffitent username and email address to our Active Directory. I cant seem to get it? Anyone know what to do next.

      To ADD I do this

      <cfldap action="add"
      dn="cn=Dummy, ou=O Users, dc=companyname, dc=com"
      attributes="objectClass=top,person,organizationalPerson,user;cn=Dummy;
      sn=Dummy;givenName=Test;sAMAccountName=tdummy;mail=tdummy@sargeway.com"
      delimiter=";"
      separator=","
      server="127.0.0.1"
      port="389"
      username="companynameAdministrator"
      password="xxx">

      But instead of the above attributes I want to make and exact copy of mr bears profile on AD except the usernames and emails. How is it possible?