Revision 4547
Added by daigle almost 16 years ago
AuthLdap.java | ||
---|---|---|
901 | 901 |
* @param foruser the user for which the attribute list is requested |
902 | 902 |
* @returns HashMap a map of attribute name to a Vector of values |
903 | 903 |
*/ |
904 |
public HashMap getAttributes(String foruser) throws ConnectException { |
|
904 |
public HashMap<String,Vector<String>> getAttributes(String foruser) throws ConnectException {
|
|
905 | 905 |
return getAttributes(null, null, foruser); |
906 | 906 |
} |
907 | 907 |
|
... | ... | |
913 | 913 |
* @param foruser the user whose attributes should be returned |
914 | 914 |
* @returns HashMap a map of attribute name to a Vector of values |
915 | 915 |
*/ |
916 |
public HashMap getAttributes(String user, String password, |
|
916 |
public HashMap<String,Vector<String>> getAttributes(String user, String password,
|
|
917 | 917 |
String foruser) throws ConnectException { |
918 |
HashMap attributes = new HashMap();
|
|
918 |
HashMap<String,Vector<String>> attributes = new HashMap<String,Vector<String>>();
|
|
919 | 919 |
String ldapUrl = this.ldapUrl; |
920 | 920 |
String ldapBase = this.ldapBase; |
921 | 921 |
String userident = foruser; |
... | ... | |
940 | 940 |
NamingEnumeration en = attrs.getAll(); |
941 | 941 |
while (en.hasMore()) { |
942 | 942 |
Attribute att = (Attribute) en.next(); |
943 |
Vector values = new Vector(); |
|
943 |
Vector<String> values = new Vector();
|
|
944 | 944 |
String attName = att.getID(); |
945 | 945 |
NamingEnumeration attvalues = att.getAll(); |
946 | 946 |
while (attvalues.hasMore()) { |
Also available in: Unified diff
Added validation that configured ldap admins actually exist in ldap