NTLMSIG
NTLMSIG
NTLM constants
NTLM Auth class
authenticate(\Pop\Mail\Transport\Smtp\AgentInterface $agent, string $username, string $password) : boolean
Try to authenticate the user with $username and $password
| \Pop\Mail\Transport\Smtp\AgentInterface | $agent | |
| string | $username | |
| string | $password |
sendMessage1(\Pop\Mail\Transport\Smtp\AgentInterface $agent) : string
Send our auth message and returns the response
| \Pop\Mail\Transport\Smtp\AgentInterface | $agent |
SMTP Response
sendMessage3(string $response, string $username, string $password, string $timestamp, string $client, \Pop\Mail\Transport\Smtp\AgentInterface $agent, boolean $v2 = true) : string
Send our final message with all our data
| string | $response | Message 1 response (message 2) |
| string | $username | |
| string | $password | |
| string | $timestamp | |
| string | $client | |
| \Pop\Mail\Transport\Smtp\AgentInterface | $agent | |
| boolean | $v2 | Use version2 of the protocol |
createNTLMv2Hash(string $password, string $username, string $domain, string $challenge, string $targetInfo, string $timestamp, string $client) : string
Create NTLMv2 response
| string | $password | |
| string | $username | |
| string | $domain | |
| string | $challenge | Hex values |
| string | $targetInfo | Hex values |
| string | $timestamp | |
| string | $client | Random bytes |
createSecurityBuffer(string $value, integer $offset, boolean $is16 = false) : string
Create our security buffer depending on length and offset
| string | $value | Value we want to put in |
| integer | $offset | start of value |
| boolean | $is16 | Do we 16bit string or not? |