|
@@ 168-174 (lines=7) @@
|
| 165 |
|
* |
| 166 |
|
* @return string The discovered settings |
| 167 |
|
*/ |
| 168 |
|
protected function tryTopLevelDomain($email, $password, $username) |
| 169 |
|
{ |
| 170 |
|
$topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
| 171 |
|
$url = 'https://www.'.$topLevelDomain.$this->autodiscoverPath; |
| 172 |
|
|
| 173 |
|
return $this->doNTLMPost($url, $email, $password, $username); |
| 174 |
|
} |
| 175 |
|
|
| 176 |
|
/** |
| 177 |
|
* Perform an NTLM authenticated HTTPS POST to the 'autodiscover' |
|
@@ 186-192 (lines=7) @@
|
| 183 |
|
* |
| 184 |
|
* @return string The discovered settings |
| 185 |
|
*/ |
| 186 |
|
protected function tryAutoDiscoverSubDomain($email, $password, $username) |
| 187 |
|
{ |
| 188 |
|
$topLevelDomain = $this->getTopLevelDomainFromEmail($email); |
| 189 |
|
$url = 'https://autodiscover.'.$topLevelDomain.$this->autodiscoverPath; |
| 190 |
|
|
| 191 |
|
return $this->doNTLMPost($url, $email, $password, $username); |
| 192 |
|
} |
| 193 |
|
|
| 194 |
|
/** |
| 195 |
|
* Perform an unauthenticated HTTP GET in an attempt to get redirected |