# File lib/net/ldap.rb, line 959
959:     def rename args
960:       if @open_connection
961:           @result = @open_connection.rename( args )
962:       else
963:         @result = 0
964:         conn = Connection.new( :host => @host, :port => @port, :encryption => @encryption )
965:         if (@result = conn.bind( args[:auth] || @auth )) == 0
966:           @result = conn.rename( args )
967:         end
968:         conn.close
969:       end
970:       @result == 0
971:     end