Overview

Packages

  • akismet
  • None
  • PHP
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • plugins
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Signatures
    • Signed
    • Transport
  • wa-apps
    • blog
      • actions
        • backend
        • blog
        • comment
        • cron
        • design
        • frontend
        • page
        • plugin
        • post
      • api
        • v1
      • cli
      • layout
      • model
      • plugin
        • aksimet
        • category
        • emailsubscription
        • favorite
        • gravatar
        • import
        • markdown
        • myposts
        • tag
        • troll
      • settings
    • checklists
      • backend
      • json
    • contacts
      • backend
    • developer
    • dummy
    • guestbook
    • guestbook2
    • photos
      • album
      • api
        • v1
      • backend
      • design
      • dialog
      • frontend
      • page
      • photo
      • plugin
        • comment
        • imageeffects
        • import
        • publicgallery
        • watermark
      • search
      • settings
      • stack
      • tag
      • upload
    • site
      • backend
      • blocks
      • config
      • design
      • domains
      • files
      • frontend
      • helper
      • layout
      • pages
      • routing
      • setting
    • stickies
      • api
        • v1
      • sheet
      • stiky
  • wa-plugin
    • payment
    • shipping
    • sms
  • wa-plugins
    • shipping
      • usps
  • wa-system
    • API
    • Auth
      • Adapters
    • Autoload
    • Cache
      • Adapter
    • Captcha
    • Config
    • Contact
    • controller
    • currency
    • database
    • datetime
    • design
    • event
    • exception
    • files
    • image
    • layout
    • locale
    • log
    • mail
    • page
      • action
      • model
    • payment
    • plugin
    • request
    • response
    • routing
    • shipping
    • sms
    • storage
    • user
    • util
    • validator
    • view
    • webasyst
      • api
      • backend
      • cli
      • config
      • layout
      • login
      • model
      • password
      • payment
      • profile
      • settings
      • shipment
    • widget
    • workflow
  • waPlugins
    • Payment
  • webasyst
    • wa-system
      • helper

Classes

  • Swift_FailoverTransport
  • Swift_LoadBalancedTransport
  • Swift_MailTransport
  • Swift_Plugins_Loggers_ArrayLogger
  • Swift_Plugins_Loggers_EchoLogger
  • Swift_SendmailTransport
  • Swift_SmtpTransport
  • Swift_Transport_AbstractSmtpTransport
  • Swift_Transport_Esmtp_Auth_CramMd5Authenticator
  • Swift_Transport_Esmtp_Auth_LoginAuthenticator
  • Swift_Transport_Esmtp_Auth_NTLMAuthenticator
  • Swift_Transport_Esmtp_Auth_PlainAuthenticator
  • Swift_Transport_Esmtp_Auth_XOAuth2Authenticator
  • Swift_Transport_Esmtp_AuthHandler
  • Swift_Transport_EsmtpTransport
  • Swift_Transport_FailoverTransport
  • Swift_Transport_LoadBalancedTransport
  • Swift_Transport_MailTransport
  • Swift_Transport_SendmailTransport
  • Swift_Transport_SimpleMailInvoker
  • Swift_Transport_StreamBuffer

Interfaces

  • Swift_Plugins_Logger
  • Swift_Transport
  • Swift_Transport_Esmtp_Authenticator
  • Swift_Transport_EsmtpHandler
  • Swift_Transport_IoBuffer
  • Swift_Transport_MailInvoker
  • Swift_Transport_SmtpAgent

Exceptions

  • Swift_Plugins_Pop_Pop3Exception
  • Swift_TransportException
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class Swift_Transport_Esmtp_Auth_NTLMAuthenticator

Handles NTLM authentication.

Swift_Transport_Esmtp_Auth_NTLMAuthenticator implements Swift_Transport_Esmtp_Authenticator
Package: Swift\Transport
Author: Ward Peeters <ward@coding-tech.com>
Located at wa-system/vendors/swift/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
Methods summary
public string
# getAuthKeyword( )

Get the name of the AUTH mechanism this Authenticator handles.

Get the name of the AUTH mechanism this Authenticator handles.

Returns

string

Implementation of

Swift_Transport_Esmtp_Authenticator::getAuthKeyword()
public boolean
# authenticate( Swift_Transport_SmtpAgent $agent, string $username, string $password )

Try to authenticate the user with $username and $password.

Try to authenticate the user with $username and $password.

Parameters

$agent
Swift_Transport_SmtpAgent
$agent
$username
string
$username
$password
string
$password

Returns

boolean

Implementation of

Swift_Transport_Esmtp_Authenticator::authenticate()
protected
# si2bin( mixed $si, mixed $bits = 32 )
protected string
# sendMessage1( Swift_Transport_SmtpAgent $agent )

Send our auth message and returns the response

Send our auth message and returns the response

Parameters

$agent
Swift_Transport_SmtpAgent
$agent

Returns

string
SMTP Response
protected array
# parseMessage2( string $response )

Fetch all details of our response (message 2)

Fetch all details of our response (message 2)

Parameters

$response
string
$response

Returns

array
our response parsed
protected array
# readSubBlock( mixed $block )

Read the blob information in from message2

Read the blob information in from message2

Parameters

$block
mixed
$block

Returns

array
protected string
# sendMessage3( string $response, string $username, string $password, string $timestamp, string $client, Swift_Transport_SmtpAgent $agent, boolean $v2 = true )

Send our final message with all our data

Send our final message with all our data

Parameters

$response
string
$response Message 1 response (message 2)
$username
string
$username
$password
string
$password
$timestamp
string
$timestamp
$client
string
$client
$agent
Swift_Transport_SmtpAgent
$agent
$v2
boolean
$v2 Use version2 of the protocol

Returns

string
protected string
# createMessage1( )

Create our message 1

Create our message 1

Returns

string
protected string
# createMessage3( string $domain, string $username, string $workstation, string $lmResponse, string $ntlmResponse )

Create our message 3

Create our message 3

Parameters

$domain
string
$domain
$username
string
$username
$workstation
string
$workstation
$lmResponse
string
$lmResponse
$ntlmResponse
string
$ntlmResponse

Returns

string
protected string
# createBlob( string $timestamp, string $client, string $targetInfo )

Parameters

$timestamp
string
$timestamp Epoch timestamp in microseconds
$client
string
$client Random bytes
$targetInfo
string
$targetInfo

Returns

string
protected array
# getDomainAndUsername( string $name )

Get domain and username from our username

Get domain and username from our username

Parameters

$name
string
$name

Returns

array

Example

DOMAIN\username
protected string
# createLMPassword( string $password, string $challenge )

Create LMv1 response

Create LMv1 response

Parameters

$password
string
$password
$challenge
string
$challenge

Returns

string
protected string
# createNTLMPassword( string $password, string $challenge )

Create NTLMv1 response

Create NTLMv1 response

Parameters

$password
string
$password
$challenge
string
$challenge

Returns

string
protected string
# getCorrectTimestamp( string $time )

Convert a normal timestamp to a tenth of a microtime epoch time

Convert a normal timestamp to a tenth of a microtime epoch time

Parameters

$time
string
$time

Returns

string
protected string
# createLMv2Password( string $password, string $username, string $domain, string $challenge, string $client )

Create LMv2 response

Create LMv2 response

Parameters

$password
string
$password
$username
string
$username
$domain
string
$domain
$challenge
string
$challenge NTLM Challenge
$client
string
$client Random string

Returns

string
protected string
# createNTLMv2Hash( string $password, string $username, string $domain, string $challenge, string $targetInfo, string $timestamp, string $client )

Create NTLMv2 response

Create NTLMv2 response

Parameters

$password
string
$password
$username
string
$username
$domain
string
$domain
$challenge
string
$challenge Hex values
$targetInfo
string
$targetInfo Hex values
$timestamp
string
$timestamp
$client
string
$client Random bytes

Returns

string

See

http://davenport.sourceforge.net/ntlm.html#theNtlmResponse
protected
# createDesKey( mixed $key )
protected string
# createSecurityBuffer( string $value, integer $offset, boolean $is16 = false )

Create our security buffer depending on length and offset

Create our security buffer depending on length and offset

Parameters

$value
string
$value Value we want to put in
$offset
integer
$offset start of value
$is16
boolean
$is16 Do we 16bit string or not?

Returns

string
protected array
# readSecurityBuffer( string $value )

Read our security buffer to fetch length and offset of our value

Read our security buffer to fetch length and offset of our value

Parameters

$value
string
$value Securitybuffer in hex

Returns

array
array with length and offset
protected integer
# castToByte( integer $v )

Cast to byte java equivalent to (byte)

Cast to byte java equivalent to (byte)

Parameters

$v
integer
$v

Returns

integer
protected integer
# uRShift( integer $a, integer $b )

Java unsigned right bitwise $a >>> $b

Java unsigned right bitwise $a >>> $b

Parameters

$a
integer
$a
$b
integer
$b

Returns

integer
protected string
# createByte( string $input, integer $bytes = 4, boolean $isHex = true )

Right padding with 0 to certain length

Right padding with 0 to certain length

Parameters

$input
string
$input
$bytes
integer
$bytes Length of bytes
$isHex
boolean
$isHex Did we provided hex value

Returns

string
protected string
# getRandomBytes( mixed $length )

Create random bytes

Create random bytes

Parameters

$length
mixed
$length

Returns

string
protected string
# desEncrypt( string $value, string $key )

DES Encryption

DES Encryption

Parameters

$value
string
$value
$key
string
$key

Returns

string
protected string
# md5Encrypt( string $key, string $msg )

MD5 Encryption

MD5 Encryption

Parameters

$key
string
$key Encryption key
$msg
string
$msg Message to encrypt

Returns

string
protected string
# md4Encrypt( string $input )

MD4 Encryption

MD4 Encryption

Parameters

$input
string
$input

Returns

string

See

http://php.net/manual/en/ref.hash.php
protected string
# convertTo16bit( string $input )

Convert UTF-8 to UTF-16

Convert UTF-8 to UTF-16

Parameters

$input
string
$input

Returns

string
protected string
# hex2bin( string $hex )

Hex2bin replacement for < PHP 5.4

Hex2bin replacement for < PHP 5.4

Parameters

$hex
string
$hex

Returns

string
Binary
protected
# debug( string $message )

Parameters

$message
string
$message
Constants summary
string NTLMSIG "NTLMSSP\x00"
#
string DESCONST "KGS!@#$%"
#
My fork of Webasyst Framework API documentation generated by ApiGen 2.8.0