From 8adb5a5d78531081ae721008b673ad61d93ac913 Mon Sep 17 00:00:00 2001 From: Mathieu Baudier Date: Fri, 26 Jul 2019 23:15:39 +0200 Subject: [PATCH] Test of ident client (commented out for the time being) --- .../src/org/argeo/cms/auth/HttpSessionLoginModule.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/org.argeo.cms/src/org/argeo/cms/auth/HttpSessionLoginModule.java b/org.argeo.cms/src/org/argeo/cms/auth/HttpSessionLoginModule.java index f42e79c98..91a01574e 100644 --- a/org.argeo.cms/src/org/argeo/cms/auth/HttpSessionLoginModule.java +++ b/org.argeo.cms/src/org/argeo/cms/auth/HttpSessionLoginModule.java @@ -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 -- 2.30.2