@@ 468-473 (lines=6) @@ | ||
465 | $this->pool->markConnFree($this, $this->url); |
|
466 | } |
|
467 | } // @todo move to constant values |
|
468 | elseif ($authType === 2) { |
|
469 | // KerberosV5 |
|
470 | Daemon::log(self::class . ': Unsupported authentication method: KerberosV5.'); |
|
471 | $this->state = self::STATE_AUTH_ERROR; // Auth. error |
|
472 | $this->finish(); // Unsupported, finish |
|
473 | } elseif ($authType === 3) { |
|
474 | // Cleartext |
|
475 | $this->sendPacket('p', $this->password); // Password Message |
|
476 | $this->state = self::STATE_AUTH_PACKET_SENT; |
|
@@ 487-492 (lines=6) @@ | ||
484 | $salt = mb_orig_substr($packet, 4, 4); |
|
485 | $this->sendPacket('p', 'md5' . md5(md5($this->password . $this->user) . $salt) . "\x00"); // Password Message |
|
486 | $this->state = self::STATE_AUTH_PACKET_SENT; |
|
487 | } elseif ($authType === 6) { |
|
488 | // SCM |
|
489 | Daemon::log(self::class . ': Unsupported authentication method: SCM.'); |
|
490 | $this->state = self::STATE_AUTH_ERROR; // Auth. error |
|
491 | $this->finish(); // Unsupported, finish |
|
492 | } elseif ($authType === 9) { |
|
493 | // GSS |
|
494 | Daemon::log(self::class . ': Unsupported authentication method: GSS.'); |
|
495 | $this->state = self::STATE_AUTH_ERROR; // Auth. error |