File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 ];
You can’t perform that action at this time.
0 commit comments