In Files

  • ruby-3.1.2/ext/win32/lib/win32/sspi.rb

Parent

Methods

Files

Class/Module Index [+]

Quicksearch

Win32::SSPI::Identity

SEC_WINNT_AUTH_IDENTITY structure

Attributes

domain[RW]
password[RW]
user[RW]

Public Class Methods

new(user = nil, domain = nil, password = nil) click to toggle source
 
               # File ruby-3.1.2/ext/win32/lib/win32/sspi.rb, line 146
def initialize(user = nil, domain = nil, password = nil)
  @user = user
  @domain = domain
  @password = password
  @flags = SEC_WINNT_AUTH_IDENTITY_ANSI
end
            

Public Instance Methods

to_p() click to toggle source
 
               # File ruby-3.1.2/ext/win32/lib/win32/sspi.rb, line 153
def to_p
  [@user, @user ? @user.length : 0,
   @domain, @domain ? @domain.length : 0,
   @password, @password ? @password.length : 0,
   @flags].pack("PLPLPLL")
end