C# 클래스 SharpCifs.Smb.SmbSession

파일 보기 프로젝트 열기: brandonprry/Potato 1 사용 예제들

공개 메소드들

메소드 설명
GetChallenge ( UniAddress dc ) : byte[]
GetChallenge ( UniAddress dc, int port ) : byte[]
GetChallengeForDomain ( ) : NtlmChallenge
Logon ( UniAddress dc, NtlmPasswordAuthentication auth ) : void

Authenticate arbitrary credentials represented by the NtlmPasswordAuthentication object against the domain controller specified by the UniAddress parameter.

Authenticate arbitrary credentials represented by the NtlmPasswordAuthentication object against the domain controller specified by the UniAddress parameter. If the credentials are not accepted, an SmbAuthException will be thrown. If an error occurs an SmbException will be thrown. If the credentials are valid, the method will return without throwing an exception. See the last FAQ question.

See also the jcifs.smb.client.logonShare property.

Logon ( UniAddress dc, int port, NtlmPasswordAuthentication auth ) : void
ToString ( ) : string

비공개 메소드들

메소드 설명
GetSmbTree ( string share, string service ) : SmbTree
Interrogate ( NbtAddress addr ) : NtlmChallenge
Logoff ( bool inError ) : void
Matches ( NtlmPasswordAuthentication auth ) : bool
Send ( ServerMessageBlock request, ServerMessageBlock response ) : void
SessionSetup ( ServerMessageBlock andx, ServerMessageBlock andxResponse ) : void
SmbSession ( UniAddress address, int port, IPAddress localAddr, int localPort, NtlmPasswordAuthentication auth ) : System
Transport ( ) : SmbTransport

메소드 상세

GetChallenge() 공개 정적인 메소드

public static GetChallenge ( UniAddress dc ) : byte[]
dc UniAddress
리턴 byte[]

GetChallenge() 공개 정적인 메소드

public static GetChallenge ( UniAddress dc, int port ) : byte[]
dc UniAddress
port int
리턴 byte[]

GetChallengeForDomain() 공개 정적인 메소드

public static GetChallengeForDomain ( ) : NtlmChallenge
리턴 NtlmChallenge

Logon() 공개 정적인 메소드

Authenticate arbitrary credentials represented by the NtlmPasswordAuthentication object against the domain controller specified by the UniAddress parameter.
Authenticate arbitrary credentials represented by the NtlmPasswordAuthentication object against the domain controller specified by the UniAddress parameter. If the credentials are not accepted, an SmbAuthException will be thrown. If an error occurs an SmbException will be thrown. If the credentials are valid, the method will return without throwing an exception. See the last FAQ question.

See also the jcifs.smb.client.logonShare property.

public static Logon ( UniAddress dc, NtlmPasswordAuthentication auth ) : void
dc UniAddress
auth NtlmPasswordAuthentication
리턴 void

Logon() 공개 정적인 메소드

public static Logon ( UniAddress dc, int port, NtlmPasswordAuthentication auth ) : void
dc UniAddress
port int
auth NtlmPasswordAuthentication
리턴 void

ToString() 공개 메소드

public ToString ( ) : string
리턴 string