public interface LDAPConnection
| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(DirContext ctx,
String argRDN,
String oldPassword,
String newPassword) |
boolean |
checkPassword(String searchbase,
String login,
char[] plainPassword) |
void |
close()
Close the connection to the directory.
|
Attributes |
read(String distinguishedName)
Reads all the attribute type and values for the given entry.
|
Collection |
searchBaseEntry(String searchbase,
String filter,
int limit,
int timeout)
Performs a base object search (i.e.
|
Collection |
searchBaseEntry(String searchbase,
String filter,
int limit,
int timeout,
String[] returnAttributes)
Performs a base object search (i.e.
|
Collection |
searchSubTree(String searchbase,
String filter,
int limit,
int timeout)
Performs a directory sub tree search (i.e.
|
Collection<LDAPGenericObject> |
searchSubTree(String searchbase,
String filter,
int limit,
int timeout,
String[] returnAttributes)
Performs a directory sub tree search (i.e.
|
void close()
Collection searchBaseEntry(String searchbase, String filter, int limit, int timeout) throws LDAPOperationException, LDAPUnavailableException, NamingException
searchbase - the domain name (relative to initial context in ldap) to seach from.filter - the non-null filter to use for the searchlimit - the maximum number of results to returntimeout - the maximum time to wait before abandoning the searchLDAPOperationExceptionLDAPUnavailableExceptionNamingExceptionCollection searchBaseEntry(String searchbase, String filter, int limit, int timeout, String[] returnAttributes) throws LDAPOperationException, LDAPUnavailableException, NamingException
searchbase - the domain name (relative to initial context in ldap) to seach from.filter - the non-null filter to use for the searchlimit - the maximum number of results to returntimeout - the maximum time to wait before abandoning the searchreturnAttributes - an array of strings containing the names of attributes to search. (null = all, empty array = none)LDAPOperationExceptionLDAPUnavailableExceptionNamingExceptionCollection searchSubTree(String searchbase, String filter, int limit, int timeout) throws LDAPOperationException, LDAPUnavailableException, NamingException
searchbase - the domain name (relative to initial context in ldap) to seach from.filter - the non-null filter to use for the searchlimit - the maximum number of results to returntimeout - the maximum time to wait before abandoning the searchLDAPOperationExceptionLDAPUnavailableExceptionNamingExceptionCollection<LDAPGenericObject> searchSubTree(String searchbase, String filter, int limit, int timeout, String[] returnAttributes) throws LDAPOperationException, LDAPUnavailableException, NamingException
searchbase - the domain name (relative to initial context in ldap) to seach from.filter - the non-null filter to use for the searchlimit - the maximum number of results to returntimeout - the maximum time to wait before abandoning the searchreturnAttributes - an array of strings containing the names of attributes to search. (null = all, empty array = none)LDAPOperationExceptionLDAPUnavailableExceptionNamingExceptionAttributes read(String distinguishedName) throws LDAPOperationException, LDAPUnavailableException, NamingException
distinguishedName - the ldap string distinguished name of entry to be readLDAPOperationExceptionLDAPUnavailableExceptionNamingExceptionvoid changePassword(DirContext ctx, String argRDN, String oldPassword, String newPassword) throws NamingException
NamingExceptionCopyright © 2017 SAP SE. All Rights Reserved.