123456789_123456789_123456789_123456789_123456789_

Class: Win32::SSPI::Identity

Relationships & Source Files
Inherits: Object
Defined in: ext/win32/lib/win32/sspi.rb

Overview

SEC_WINNT_AUTH_IDENTITY structure

Constant Summary

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(user = nil, domain = nil, password = nil) ⇒ Identity

[ GitHub ]

  
# File 'ext/win32/lib/win32/sspi.rb', line 138

def initialize(user = nil, domain = nil, password = nil)
	@user = user
	@domain = domain
	@password = password
	@flags = SEC_WINNT_AUTH_IDENTITY_ANSI
end

Instance Attribute Details

#domain (rw)

[ GitHub ]

  
# File 'ext/win32/lib/win32/sspi.rb', line 136

attr_accessor :user, :domain, :password

#password (rw)

[ GitHub ]

  
# File 'ext/win32/lib/win32/sspi.rb', line 136

attr_accessor :user, :domain, :password

#user (rw)

[ GitHub ]

  
# File 'ext/win32/lib/win32/sspi.rb', line 136

attr_accessor :user, :domain, :password

Instance Method Details

#to_p

[ GitHub ]

  
# File 'ext/win32/lib/win32/sspi.rb', line 145

def to_p
	[@user, @user ? @user.length : 0,
	 @domain, @domain ? @domain.length : 0,
	 @password, @password ? @password.length : 0,
	 @flags].pack("PLPLPLL")
end