Revision 867
Added by berkley over 22 years ago
AuthSession.java | ||
---|---|---|
47 | 47 |
* Construct an AuthSession |
48 | 48 |
*/ |
49 | 49 |
public AuthSession() throws Exception { |
50 |
|
|
51 | 50 |
// Determine our session authentication method and |
52 | 51 |
// create an instance of the auth class |
53 | 52 |
MetaCatUtil util = new MetaCatUtil(); |
54 | 53 |
this.authClass = util.getOption("authclass"); |
55 | 54 |
this.authService = (AuthInterface)createObject(authClass); |
56 |
|
|
57 | 55 |
} |
58 | 56 |
|
59 | 57 |
/** |
... | ... | |
65 | 63 |
* @param password the password entered when login |
66 | 64 |
*/ |
67 | 65 |
public boolean authenticate(HttpServletRequest request, |
68 |
String username, String password) { |
|
69 |
|
|
66 |
String username, String password) { |
|
70 | 67 |
String message = null; |
71 |
|
|
72 | 68 |
try { |
73 | 69 |
if ( authService.authenticate(username, password) ) { |
74 | 70 |
String[] groups = authService.getGroups(username,password,username); |
Also available in: Unified diff
fixed the error where the ldap authenticate took 15 seconds to execute