mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-25 12:36:01 +03:00
Auth speed boost
This commit is contained in:
parent
ccae718aa1
commit
cce3bbcfc1
@ -147,11 +147,15 @@ class Server
|
||||
*
|
||||
* @param string $username
|
||||
* @param string $password
|
||||
* @param bool $tryFasterAuth tries to auth faster by disabling GSSAPI & NTLM auth methods (set to false if you use either of these auth methods)
|
||||
*/
|
||||
public function setAuthentication($username, $password)
|
||||
public function setAuthentication($username, $password, $tryFasterAuth=true)
|
||||
{
|
||||
$this->username = $username;
|
||||
$this->password = $password;
|
||||
if( $tryFasterAuth ) {
|
||||
$this->setParam( 'DISABLE_AUTHENTICATOR', array( 'GSSAPI', 'NTLM' ) );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user