Class LDAP
java.lang.Object
javaforce.LDAP
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringCreate distinguished name from dot domain name.voidclose()String[]getAttributes(String domain_dn, String key, String[] attrs) Returns user object attributes.booleanLogins into a LDAP Server.static voidbooleanQueries user to determine if they are a member of a group.
-
Field Details
-
lastException
-
-
Constructor Details
-
LDAP
public LDAP()
-
-
Method Details
-
login
-
close
public void close() -
getAttributes
Returns user object attributes. Must login() first- Parameters:
domain_dn- = domain as dn (distinguished name) (ie: DC=example,DC=com)key- = search key (ie: SAMAccountName=bob)attrs- = list of attributes to read (ie: member)- Returns:
- attributes in order of attrs
-
memberOf
Queries user to determine if they are a member of a group. Must login() first.- Parameters:
domain_dn- = domain as dn (distinguished name) (ie: DC=example,DC=com)username- = user to check for (for computer use COMPUTERNAME plus $)group- = group name- Returns:
- user is a member
-
build_dn
-
getLastException
-
main
-