Revision 728
Added by bojilova about 23 years ago
AuthSession.java | ||
---|---|---|
41 | 41 |
private String authClass = null; |
42 | 42 |
private HttpSession session = null; |
43 | 43 |
private AuthInterface authService = null; |
44 |
private String ldapUrl; |
|
45 |
private String ldapBase; |
|
44 | 46 |
private String statusMessage = null; |
45 | 47 |
|
46 | 48 |
/** |
... | ... | |
51 | 53 |
// Determine our session authentication method and |
52 | 54 |
// create an instance of the auth class |
53 | 55 |
MetaCatUtil util = new MetaCatUtil(); |
54 |
authClass = util.getOption("authclass"); |
|
55 |
authService = (AuthInterface)createObject(authClass); |
|
56 |
this.authClass = util.getOption("authclass"); |
|
57 |
this.authService = (AuthInterface)createObject(authClass); |
|
58 |
this.ldapUrl = util.getOption("ldapurl"); |
|
59 |
this.ldapBase = util.getOption("ldapbase"); |
|
56 | 60 |
|
57 | 61 |
} |
58 | 62 |
|
... | ... | |
138 | 142 |
String[] groups = authService.getGroups(user, password); |
139 | 143 |
|
140 | 144 |
out.append("<?xml version=\"1.0\"?>\n"); |
141 |
out.append("<principals>\n"); |
|
145 |
out.append("<principals authSystemURI=\"" + ldapUrl + ldapBase + "\">\n");
|
|
142 | 146 |
|
143 | 147 |
// for the groups and users that belong to them |
144 | 148 |
if ( groups.length > 0 ) { |
Also available in: Unified diff
fixes on getting information from LDAP services