Package org.jivesoftware.admin
Class LdapUserTester
java.lang.Object
org.jivesoftware.admin.LdapUserTester
Class that assists during the testing of the user-ldap mapping.
- Author:
- Gaston Dombiak
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Constants to access user propertiesstatic final String
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttributes
(String username) Returns a list of attributes and their LDAP values found in LDAP for the specified username.static String
getPropertyValue
(LdapUserTester.PropertyMapping mapping, Attributes attributes) getSample
(int maxSample) Returns a list of usernames with a sample of the users found in LDAP.
-
Field Details
-
NAME
Constants to access user properties- See Also:
-
EMAIL
- See Also:
-
FULL_NAME
- See Also:
-
NICKNAME
- See Also:
-
BIRTHDAY
- See Also:
-
PHOTO
- See Also:
-
HOME_STREET
- See Also:
-
HOME_CITY
- See Also:
-
HOME_STATE
- See Also:
-
HOME_ZIP
- See Also:
-
HOME_COUNTRY
- See Also:
-
HOME_PHONE
- See Also:
-
HOME_MOBILE
- See Also:
-
HOME_FAX
- See Also:
-
HOME_PAGER
- See Also:
-
BUSINESS_STREET
- See Also:
-
BUSINESS_CITY
- See Also:
-
BUSINESS_STATE
- See Also:
-
BUSINESS_ZIP
- See Also:
-
BUSINESS_COUNTRY
- See Also:
-
BUSINESS_JOB_TITLE
- See Also:
-
BUSINESS_DEPARTMENT
- See Also:
-
BUSINESS_PHONE
- See Also:
-
BUSINESS_MOBILE
- See Also:
-
BUSINESS_FAX
- See Also:
-
BUSINESS_PAGER
- See Also:
-
-
Constructor Details
-
LdapUserTester
-
-
Method Details
-
getSample
Returns a list of usernames with a sample of the users found in LDAP.- Parameters:
maxSample
- the max size of the sample to return.- Returns:
- a list of usernames with a sample of the users found in LDAP.
- Throws:
NamingException
- if something goes wrong....
-
getAttributes
Returns a list of attributes and their LDAP values found in LDAP for the specified username.- Parameters:
username
- the username of the user to get his attributes from LDAP.- Returns:
- a list of attributes and their LDAP values found in LDAP for the specified username.
-
getPropertyValue
public static String getPropertyValue(LdapUserTester.PropertyMapping mapping, Attributes attributes) throws NamingException - Throws:
NamingException
-