# File lib/net/ldap.rb, line 792
792:     def add args
793:       if @open_connection
794:           @result = @open_connection.add( args )
795:       else
796:         @result = 0
797:         conn = Connection.new( :host => @host, :port => @port, :encryption => @encryption)
798:         if (@result = conn.bind( args[:auth] || @auth )) == 0
799:           @result = conn.add( args )
800:         end
801:         conn.close
802:       end
803:       @result == 0
804:     end