Package org.cdlib.mrt.security
Class LDAPUtil
java.lang.Object
org.cdlib.mrt.security.LDAPUtil
- Author:
- dloy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LinkedHashList<String, String> attributes2LinkedHash(Attributes attributes) static LinkedHashList<String, String> attributes2LinkedHash(LinkedHashList<String, String> list, Attributes attributes) static Stringdump(String header, LinkedHashList<String, String> list) extractProfiles(String host, String uid, String password, String searchId) getClassNames(String host, String uid, String password, String searchId) static StringgetProfile(String host, String uid, String password, String className) static StringgetProfileName(String dirList) static LinkedHashList<String, String> getUserProperties(String host, String uid, String password) static booleanisAuthorized(String host, String uid, String password, String className) static booleanstatic LinkedHashList<String, String> search(String uid, String password, String host, String[] returnedAtts, String searchBase, String filter)
-
Constructor Details
-
LDAPUtil
public LDAPUtil()
-
-
Method Details
-
getUserProperties
public static LinkedHashList<String,String> getUserProperties(String host, String uid, String password) throws TException - Throws:
TException
-
isAuthorized
-
isAuthorized
-
getProfile
public static String getProfile(String host, String uid, String password, String className) throws TException - Throws:
TException
-
extractProfiles
public static List<String> extractProfiles(String host, String uid, String password, String searchId) throws TException - Throws:
TException
-
getClassNames
public static List<String> getClassNames(String host, String uid, String password, String searchId) throws TException - Throws:
TException
-
search
public static LinkedHashList<String,String> search(String uid, String password, String host, String[] returnedAtts, String searchBase, String filter) throws TException - Throws:
TException
-
contains
public static ArrayList<String> contains(String uid, String password, String host, String searchBase, String filter) throws TException - Throws:
TException
-
dump
-
attributes2LinkedHash
-
attributes2LinkedHash
public static LinkedHashList<String,String> attributes2LinkedHash(LinkedHashList<String, String> list, Attributes attributes) -
getProfileName
-