File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88use Exception ;
99use SimpleSAML \Configuration ;
1010use SimpleSAML \Error ;
11+ use SimpleSAML \Logger ;
1112use SimpleSAML \Module \core \Auth \UserPassBase ;
1213use SimpleSAML \Utils ;
1314
@@ -174,6 +175,7 @@ protected function login(
174175 $ errorCode = $ radius ->getErrorCode ();
175176 switch ($ errorCode ) {
176177 case $ radius ::TYPE_ACCESS_REJECT :
178+ Logger::warning ('ldapRadius: Radius authentication failed. ' );
177179 throw new Error \Error ('WRONGUSERPASS ' );
178180 case $ radius ::TYPE_ACCESS_CHALLENGE :
179181 throw new Exception ('Radius authentication error: Challenge requested, but not supported. ' );
@@ -186,8 +188,9 @@ protected function login(
186188 }
187189 }
188190
189- // If we get this far, we have a valid login
191+ Logger:: info ( ' ldapRadius: Radius authentication succeeded. ' );
190192
193+ // If we get this far, we have a valid login
191194 $ attributes = [];
192195 if ($ this ->usernameAttribute !== null ) {
193196 $ attributes [$ this ->usernameAttribute ] = [$ username ];
You can’t perform that action at this time.
0 commit comments