class ActiveLdap::Adapter::JndiConnection
def modify_rdn(dn, new_rdn, delete_old_rdn)
def modify_rdn(dn, new_rdn, delete_old_rdn) # should use mutex delete_rdn_key = "java.naming.ldap.deleteRDN" @context.set_request_controls([]) begin @context.add_to_environment(delete_rdn_key, delete_old_rdn.to_s) @context.rename(escape_dn(dn), escape_dn(new_rdn)) ensure @context.remove_from_environment(delete_rdn_key) end end