Sha256: 7fd21149038c94a27540c598dd6e7e95a17a33c01a090fd8fbf4368d075cc4db

Contents?: true

Size: 1.13 KB

Versions: 12

Compression:

Stored size: 1.13 KB

Contents

module RubySMB
  module Gss
    #
    # This module provides GSS based authentication.
    #
    module Provider
      # A special constant implying that the authenticated user is anonymous.
      IDENTITY_ANONYMOUS = :anonymous
      # The result of a processed GSS request.
      Result = Struct.new(:buffer, :nt_status, :identity)

      #
      # The base class for a GSS authentication provider. This class defines a common interface and is not usable as a
      # provider on its own.
      #
      class Base
        # Create a new, client-specific authenticator instance. This new instance is then able to track the unique state
        # of a particular client / connection.
        #
        # @param [Server::ServerClient] server_client the client instance that this the authenticator will be for
        def new_authenticator(server_client)
          raise NotImplementedError
        end

        #
        # Whether or not anonymous authentication attempts should be permitted.
        #
        attr_accessor :allow_anonymous
      end
    end
  end
end

require 'ruby_smb/gss/provider/authenticator'
require 'ruby_smb/gss/provider/ntlm'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ruby_smb-3.1.1 lib/ruby_smb/gss/provider.rb
ruby_smb-3.1.0 lib/ruby_smb/gss/provider.rb
ruby_smb-3.0.6 lib/ruby_smb/gss/provider.rb
ruby_smb-3.0.5 lib/ruby_smb/gss/provider.rb
ruby_smb-3.0.4 lib/ruby_smb/gss/provider.rb
ruby_smb-3.0.3 lib/ruby_smb/gss/provider.rb
ruby_smb-3.0.2 lib/ruby_smb/gss/provider.rb
ruby_smb-3.0.1 lib/ruby_smb/gss/provider.rb
ruby_smb-3.0.0 lib/ruby_smb/gss/provider.rb
ruby_smb-2.0.13 lib/ruby_smb/gss/provider.rb
ruby_smb-2.0.12 lib/ruby_smb/gss/provider.rb
ruby_smb-2.0.11 lib/ruby_smb/gss/provider.rb