Skip to content

Commit 6d801bd

Browse files
committed
Add more logging
1 parent 2426d71 commit 6d801bd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Auth/Source/Radius.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ protected function login(string $username, string $password): array
174174
$errorCode = $radius->getErrorCode();
175175
switch ($errorCode) {
176176
case $radius::TYPE_ACCESS_REJECT:
177+
Logger::warning('ldapRadius: Radius authentication failed.');
177178
throw new Error\Error('WRONGUSERPASS');
178179
case $radius::TYPE_ACCESS_CHALLENGE:
179180
throw new Exception('Radius authentication error: Challenge requested, but not supported.');
@@ -186,8 +187,9 @@ protected function login(string $username, string $password): array
186187
}
187188
}
188189

189-
// If we get this far, we have a valid login
190+
Logger::info('ldapRadius: Radius authentication succeeded.');
190191

192+
// If we get this far, we have a valid login
191193
$attributes = [];
192194
if ($this->usernameAttribute !== null) {
193195
$attributes[$this->usernameAttribute] = [$username];

0 commit comments

Comments
 (0)