Skip to content
Snippets Groups Projects
Commit ee8784b9 authored by Daniel's avatar Daniel
Browse files

FIX: Workaround: do not check if user exists in OS.

parent 6cbf2625
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,7 @@
*/
package caosdb.server.accessControl;
import caosdb.server.caching.Cache;
import java.io.File;
import java.io.IOException;
import java.util.HashSet;
......@@ -36,7 +37,6 @@ import org.apache.logging.log4j.Logger;
import org.apache.shiro.authz.AuthorizationException;
import org.jvnet.libpam.PAMException;
import org.jvnet.libpam.UnixUser;
import caosdb.server.caching.Cache;
/**
* PAM UserSource for authenticating users via the Host's pam module.
......@@ -254,7 +254,11 @@ public class Pam implements UserSource {
*/
private boolean isUserExistingNoCache(final String username) {
logger.trace("Check UnixUser.exists", username);
return username != null && UnixUser.exists(username) && isIncorporated(username);
// TODO Decide what to do here. Checking for existence may not always be possible without
// credentials.
// return username != null && UnixUser.exists(username) && isIncorporated(username);
return username != null && isIncorporated(username);
}
/** @see {@link UserSource#isValid(String, String)}. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment