@@ 456-461 (lines=6) @@ | ||
453 | $cb($this, true); |
|
454 | } |
|
455 | } // @todo move to constant values |
|
456 | elseif ($authType === 2) { |
|
457 | // KerberosV5 |
|
458 | Daemon::log(self::class . ': Unsupported authentication method: KerberosV5.'); |
|
459 | $this->state = self::STATE_AUTH_ERROR; // Auth. error |
|
460 | $this->finish(); // Unsupported, finish |
|
461 | } elseif ($authType === 3) { |
|
462 | // Cleartext |
|
463 | $this->sendPacket('p', $this->password); // Password Message |
|
464 | $this->state = self::STATE_AUTH_PACKET_SENT; |
|
@@ 475-480 (lines=6) @@ | ||
472 | $salt = mb_orig_substr($packet, 4, 4); |
|
473 | $this->sendPacket('p', 'md5' . md5(md5($this->password . $this->user) . $salt)); // Password Message |
|
474 | $this->state = self::STATE_AUTH_PACKET_SENT; |
|
475 | } elseif ($authType === 6) { |
|
476 | // SCM |
|
477 | Daemon::log(self::class . ': Unsupported authentication method: SCM.'); |
|
478 | $this->state = self::STATE_AUTH_ERROR; // Auth. error |
|
479 | $this->finish(); // Unsupported, finish |
|
480 | } elseif ($authType === 9) { |
|
481 | // GSS |
|
482 | Daemon::log(self::class . ': Unsupported authentication method: GSS.'); |
|
483 | $this->state = self::STATE_AUTH_ERROR; // Auth. error |