Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to move objects #8

Open
troyready opened this issue Jan 15, 2016 · 0 comments
Open

Ability to move objects #8

troyready opened this issue Jan 15, 2016 · 0 comments

Comments

@troyready
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant