|
@@ 463-468 (lines=6) @@
|
| 460 |
|
$this->pool->markConnFree($this, $this->url); |
| 461 |
|
} |
| 462 |
|
} // @todo move to constant values |
| 463 |
|
elseif ($authType === 2) { |
| 464 |
|
// KerberosV5 |
| 465 |
|
Daemon::log(self::class . ': Unsupported authentication method: KerberosV5.'); |
| 466 |
|
$this->state = self::STATE_AUTH_ERROR; // Auth. error |
| 467 |
|
$this->finish(); // Unsupported, finish |
| 468 |
|
} elseif ($authType === 3) { |
| 469 |
|
// Cleartext |
| 470 |
|
$this->sendPacket('p', $this->password); // Password Message |
| 471 |
|
$this->state = self::STATE_AUTH_PACKET_SENT; |
|
@@ 482-487 (lines=6) @@
|
| 479 |
|
$salt = mb_orig_substr($packet, 4, 4); |
| 480 |
|
$this->sendPacket('p', 'md5' . md5(md5($this->password . $this->user) . $salt)); // Password Message |
| 481 |
|
$this->state = self::STATE_AUTH_PACKET_SENT; |
| 482 |
|
} elseif ($authType === 6) { |
| 483 |
|
// SCM |
| 484 |
|
Daemon::log(self::class . ': Unsupported authentication method: SCM.'); |
| 485 |
|
$this->state = self::STATE_AUTH_ERROR; // Auth. error |
| 486 |
|
$this->finish(); // Unsupported, finish |
| 487 |
|
} elseif ($authType === 9) { |
| 488 |
|
// GSS |
| 489 |
|
Daemon::log(self::class . ': Unsupported authentication method: GSS.'); |
| 490 |
|
$this->state = self::STATE_AUTH_ERROR; // Auth. error |