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 String
dump
(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 String
getProfile
(String host, String uid, String password, String className) static String
getProfileName
(String dirList) static LinkedHashList<String,
String> getUserProperties
(String host, String uid, String password) static boolean
isAuthorized
(String host, String uid, String password, String className) static boolean
static 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
-