Skip to content

Commit b2c3ffc

Browse files
committed
Fix channel binding
1 parent 2eea81f commit b2c3ffc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Auth/Source/Negotiate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function authenticate(array &$state): void
178178
}
179179
}
180180

181-
if ($reply === null) {
181+
if (!$auth->isChannelBound()) {
182182
throw new Error\Exception(
183183
'Negotiate - authenticate(): Failed to perform channel binding using '
184184
. 'any of the configured certificate hashes.',
@@ -248,7 +248,7 @@ public function authenticate(array &$state): void
248248

249249
private function doAuthentication(KRB5NegotiateAuth $auth, string $hash = null): bool
250250
{
251-
if ($this->enforceChannelBinding === true && (($hash === null) || ($auth->isChannelBound() === false))) {
251+
if ($this->enforceChannelBinding === true && ($hash === null)) {
252252
throw new Error\Exception(
253253
'Negotiate - doAuthenticate(): Channel binding is required, but the client '
254254
. 'did not provide binding info.',

0 commit comments

Comments
 (0)