active_directory icon indicating copy to clipboard operation
active_directory copied to clipboard

Ability to move objects

Open troyready opened this issue 9 years ago • 0 comments

net-ldap now provides fairly easy support for moving objects, e.g.:

def self.move_object(old_dn, cn, new_ou)
  @@ldap.rename(
    olddn: old_dn,
    newrdn: "CN=#{cn}",
    delete_attributes: true,
    new_superior: "#{new_ou}"
  )
end

I'm not sure exactly where/how to best incorporate this; let me know if you'd like a pull request.

troyready avatar Jan 15 '16 02:01 troyready