public class LdapSessionUtils extends Object
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 and Description |
---|
LdapSessionUtils() |
Modifier and Type | Method and Description |
---|---|
static LdapSession |
ldapSession() |
static StringBuilder |
logCurrent()
get the current log
log start
|
static String |
logEnd()
stop a debug log in a finally block
|
static void |
logStart()
start a static debug log
log start
|
static void |
main(String[] args) |
public static void main(String[] args)
public static LdapSession ldapSession()
public static void logStart()
public static StringBuilder logCurrent()
public static String logEnd()
Copyright © 2016 Internet2. All rights reserved.