Test of ident client (commented out for the time being)
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 26 Jul 2019 21:15:39 +0000 (23:15 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 26 Jul 2019 21:15:39 +0000 (23:15 +0200)
org.argeo.cms/src/org/argeo/cms/auth/HttpSessionLoginModule.java

index f42e79c98980d185e469329aedc8810b6775aa3d..91a01574e18f499b6da627619576f88bf3a1d0ea 100644 (file)
@@ -83,6 +83,11 @@ public class HttpSessionLoginModule implements LoginModule {
                } else {
                        authorization = (Authorization) request.getAttribute(HttpContext.AUTHORIZATION);
                        if (authorization == null) {// search by session ID
+                               // TODO implement ident
+//                             IdentClient identClient = new IdentClient(request.getRemoteAddr(), "changeit");
+//                             String identUsername = identClient.getUsername(request.getLocalPort(), request.getRemotePort());
+//                             log.debug("Ident username: " + identUsername);
+
                                HttpSession httpSession = request.getSession(false);
                                if (httpSession == null) {
                                        // TODO make sure this is always safe