@@ 447-452 (lines=6) @@ | ||
444 | $cb($this, true); |
|
445 | } |
|
446 | } // @todo move to constant values |
|
447 | elseif ($authType === 2) { |
|
448 | // KerberosV5 |
|
449 | Daemon::log(__CLASS__ . ': Unsupported authentication method: KerberosV5.'); |
|
450 | $this->state = self::STATE_AUTH_ERROR; // Auth. error |
|
451 | $this->finish(); // Unsupported, finish |
|
452 | } elseif ($authType === 3) { |
|
453 | // Cleartext |
|
454 | $this->sendPacket('p', $this->password); // Password Message |
|
455 | $this->state = self::STATE_AUTH_PACKET_SENT; |
|
@@ 466-471 (lines=6) @@ | ||
463 | $salt = mb_orig_substr($packet, 4, 4); |
|
464 | $this->sendPacket('p', 'md5' . md5(md5($this->password . $this->user) . $salt)); // Password Message |
|
465 | $this->state = self::STATE_AUTH_PACKET_SENT; |
|
466 | } elseif ($authType === 6) { |
|
467 | // SCM |
|
468 | Daemon::log(__CLASS__ . ': Unsupported authentication method: SCM.'); |
|
469 | $this->state = self::STATE_AUTH_ERROR; // Auth. error |
|
470 | $this->finish(); // Unsupported, finish |
|
471 | } elseif ($authType === 9) { |
|
472 | // GSS |
|
473 | Daemon::log(__CLASS__ . ': Unsupported authentication method: GSS.'); |
|
474 | $this->state = self::STATE_AUTH_ERROR; // Auth. error |