From: Mathieu Baudier Date: Fri, 26 Jul 2019 21:15:39 +0000 (+0200) Subject: Test of ident client (commented out for the time being) X-Git-Tag: argeo-commons-2.1.78~15 X-Git-Url: http://git.argeo.org/?p=lgpl%2Fargeo-commons.git;a=commitdiff_plain;h=8adb5a5d78531081ae721008b673ad61d93ac913 Test of ident client (commented out for the time being) --- 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