C# Класс SharpCifs.Smb.SmbSession

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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