Method: Net::LDAP#rename
- Defined in:
- lib/net/ldap.rb
permalink #rename(args) ⇒ Object
Rename an entry on the remote DIS by changing the last RDN of its DN. Documentation stub
959 960 961 962 963 964 965 966 967 968 969 970 971 |
# File 'lib/net/ldap.rb', line 959 def rename args if @open_connection @result = @open_connection.rename( args ) else @result = 0 conn = Connection.new( :host => @host, :port => @port, :encryption => @encryption ) if (@result = conn.bind( args[:auth] || @auth )) == 0 @result = conn.rename( args ) end conn.close end @result == 0 end |