From c5c204b42ef294ecaf5ff7b048d26e117ddb8c57 Mon Sep 17 00:00:00 2001 From: Nils Schwabe Date: Tue, 8 Apr 2014 12:23:58 +0200 Subject: LDAP functionallity - added apache ldap client api to pom.xml - added the LDAP user which authenticates to the LDAP server - added testAuthentication to AppTest - users get inserted into db after authenticating - added log4j properties to filter unuseful debug messages --- src/main/java/org/openslx/imagemaster/server/ApiServer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java/org/openslx/imagemaster/server') diff --git a/src/main/java/org/openslx/imagemaster/server/ApiServer.java b/src/main/java/org/openslx/imagemaster/server/ApiServer.java index e62b61b..dd0ec9e 100644 --- a/src/main/java/org/openslx/imagemaster/server/ApiServer.java +++ b/src/main/java/org/openslx/imagemaster/server/ApiServer.java @@ -36,8 +36,7 @@ public class ApiServer * @throws AuthenticationException if login not successful */ public static SessionData authenticate( String login, String password ) - throws AuthenticationException - { + throws AuthenticationException { if ( login == null || password == null ) { throw new AuthenticationException( AuthenticationError.INVALID_CREDENTIALS, "Empty username or password!" ); } -- cgit v1.2.3-55-g7522