SharpCifs.Smb.SmbSession.Logon C# (CSharp) Method

Logon() public static method

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
return void
		public static void Logon(UniAddress dc, NtlmPasswordAuthentication auth)
		{
			Logon(dc, -1, auth);
		}

Same methods

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