| @@ 414-423 (lines=10) @@ | ||
| 411 | * |
|
| 412 | * @return An AUTODISCOVERED_VIA_* constant or FALSE on failure. |
|
| 413 | */ |
|
| 414 | public function tryTLD() |
|
| 415 | { |
|
| 416 | $url = 'https://www.'.$this->tld . self::AUTODISCOVER_PATH; |
|
| 417 | $result = $this->doNTLMPost($url, 5); |
|
| 418 | if ($result) { |
|
| 419 | return self::AUTODISCOVERED_VIA_TLD; |
|
| 420 | } |
|
| 421 | ||
| 422 | return false; |
|
| 423 | } |
|
| 424 | ||
| 425 | /** |
|
| 426 | * Perform an NTLM authenticated HTTPS POST to the 'autodiscover' |
|
| @@ 431-440 (lines=10) @@ | ||
| 428 | * |
|
| 429 | * @return An AUTODISCOVERED_VIA_* constant or FALSE on failure. |
|
| 430 | */ |
|
| 431 | public function trySubdomain() |
|
| 432 | { |
|
| 433 | $url = 'https://autodiscover.'.$this->tld . self::AUTODISCOVER_PATH; |
|
| 434 | $result = $this->doNTLMPost($url, 5); |
|
| 435 | if ($result) { |
|
| 436 | return self::AUTODISCOVERED_VIA_SUBDOMAIN; |
|
| 437 | } |
|
| 438 | ||
| 439 | return false; |
|
| 440 | } |
|
| 441 | ||
| 442 | /** |
|
| 443 | * Perform an unauthenticated HTTP GET in an attempt to get redirected |
|