Class LdapSessionUtils
java.lang.Object
edu.internet2.middleware.grouper.ldap.LdapSessionUtils
Use this class to establish ldap session
Sample call
LdapSessionUtils.ldapSession().list("personLdap", "ou=Groups,dc=example,dc=edu", LdapSearchScope.SUBTREE_SCOPE, "(objectClass=groupOfNames)", new String[] {"objectClass", "cn", "member", "businessCategory"}, null);
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic LdapSession
static StringBuilder
get the current log log startstatic String
logEnd()
stop a debug log in a finally blockstatic boolean
logStart()
start a static debug log log startstatic void
-
Constructor Details
-
LdapSessionUtils
public LdapSessionUtils()
-
-
Method Details
-
main
-
ldapSession
- Returns:
- the external subject storable
-
logStart
public static boolean logStart()start a static debug log log start- Returns:
- false if already started, or true if just started
-
logCurrent
get the current log log start -
logEnd
stop a debug log in a finally block- Returns:
- the log message
-