Package com.groiss.ldap
Class LDAPPasswdAuth
java.lang.Object
com.groiss.org.PasswdAuth
com.groiss.ldap.LDAPPasswdAuth
- All Implemented Interfaces:
HttpAuth
Authenticate against an LDAP server.
Configured via properties starting with "ep.auth.ldap"
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class com.groiss.org.PasswdAuth
sendLoginRequest, setAuthorizationCookie
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.groiss.servlet.HttpAuth
logoutRedirect
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
LDAPPasswdAuth
public LDAPPasswdAuth()
-
-
Method Details
-
checkUser
Description copied from interface:HttpAuth
This method gets the parameters necessary for checking if the user is allowed to connect to the server. If the user is not allowed to connect an exception containing the reason is thrown.- Specified by:
checkUser
in interfaceHttpAuth
- Overrides:
checkUser
in classPasswdAuth
- Parameters:
userId
- a string determining the id of the user who wants to get connectedpasswd
- the password of the userclientAddr
- the ip-address of the client from which the user wants to connect- Throws:
Exception
- See Also:
-