public class LdapUserTester extends Object
Modifier and Type | Field and Description |
---|---|
static String |
BIRTHDAY |
static String |
BUSINESS_CITY |
static String |
BUSINESS_COUNTRY |
static String |
BUSINESS_DEPARTMENT |
static String |
BUSINESS_FAX |
static String |
BUSINESS_JOB_TITLE |
static String |
BUSINESS_MOBILE |
static String |
BUSINESS_PAGER |
static String |
BUSINESS_PHONE |
static String |
BUSINESS_STATE |
static String |
BUSINESS_STREET |
static String |
BUSINESS_ZIP |
static String |
EMAIL |
static String |
FULL_NAME |
static String |
HOME_CITY |
static String |
HOME_COUNTRY |
static String |
HOME_FAX |
static String |
HOME_MOBILE |
static String |
HOME_PAGER |
static String |
HOME_PHONE |
static String |
HOME_STATE |
static String |
HOME_STREET |
static String |
HOME_ZIP |
static String |
NAME
Constants to access user properties
|
static String |
NICKNAME |
static String |
PHOTO |
Constructor and Description |
---|
LdapUserTester(LdapManager manager,
LdapUserProfile profile) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getAttributes(String username)
Returns a list of attributes and their LDAP values found in LDAP for the specified username.
|
List<String> |
getSample(int maxSample)
Returns a list of usernames with a sample of the users found in LDAP.
|
public static final String NAME
public static final String EMAIL
public static final String FULL_NAME
public static final String NICKNAME
public static final String BIRTHDAY
public static final String PHOTO
public static final String HOME_STREET
public static final String HOME_CITY
public static final String HOME_STATE
public static final String HOME_ZIP
public static final String HOME_COUNTRY
public static final String HOME_PHONE
public static final String HOME_MOBILE
public static final String HOME_FAX
public static final String HOME_PAGER
public static final String BUSINESS_STREET
public static final String BUSINESS_CITY
public static final String BUSINESS_STATE
public static final String BUSINESS_ZIP
public static final String BUSINESS_COUNTRY
public static final String BUSINESS_JOB_TITLE
public static final String BUSINESS_DEPARTMENT
public static final String BUSINESS_PHONE
public static final String BUSINESS_MOBILE
public static final String BUSINESS_FAX
public static final String BUSINESS_PAGER
public LdapUserTester(LdapManager manager, LdapUserProfile profile)
public List<String> getSample(int maxSample) throws NamingException
maxSample
- the max size of the sample to return.NamingException
- if something goes wrong....public Map<String,String> getAttributes(String username)
username
- the username of the user to get his attributes from LDAP.Copyright © 2003–2019 Ignite Realtime. All rights reserved.