Merge pull request #133 from Lewiscowles1986/patch-3

speed up Auth on some servers
This commit is contained in:
Robert Hafner 2015-08-01 20:16:22 -07:00
commit 55a2756d85

View File

@ -147,11 +147,15 @@ class Server
* *
* @param string $username * @param string $username
* @param string $password * @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->username = $username;
$this->password = $password; $this->password = $password;
if ($tryFasterAuth) {
$this->setParam('DISABLE_AUTHENTICATOR', array('GSSAPI','NTLM'));
}
} }
/** /**