public interface LDAPConnection
| Modifier and Type | Method and Description |
|---|---|
void |
changePassword(javax.naming.directory.DirContext ctx,
java.lang.String argRDN,
java.lang.String oldPassword,
java.lang.String newPassword) |
boolean |
checkPassword(java.lang.String searchbase,
java.lang.String login,
char[] plainPassword) |
void |
close()
Close the connection to the directory.
|
javax.naming.directory.Attributes |
read(java.lang.String distinguishedName)
Reads all the attribute type and values for the given entry.
|
java.util.Collection |
searchBaseEntry(java.lang.String searchbase,
java.lang.String filter,
int limit,
int timeout)
Performs a base object search (i.e.
|
java.util.Collection |
searchBaseEntry(java.lang.String searchbase,
java.lang.String filter,
int limit,
int timeout,
java.lang.String[] returnAttributes)
Performs a base object search (i.e.
|
java.util.Collection |
searchSubTree(java.lang.String searchbase,
java.lang.String filter,
int limit,
int timeout)
Performs a directory sub tree search (i.e.
|
java.util.Collection<LDAPGenericObject> |
searchSubTree(java.lang.String searchbase,
java.lang.String filter,
int limit,
int timeout,
java.lang.String[] returnAttributes)
Performs a directory sub tree search (i.e.
|
void close()
java.util.Collection searchBaseEntry(java.lang.String searchbase,
java.lang.String filter,
int limit,
int timeout)
throws LDAPOperationException,
LDAPUnavailableException,
javax.naming.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 searchLDAPOperationExceptionLDAPUnavailableExceptionjavax.naming.NamingExceptionjava.util.Collection searchBaseEntry(java.lang.String searchbase,
java.lang.String filter,
int limit,
int timeout,
java.lang.String[] returnAttributes)
throws LDAPOperationException,
LDAPUnavailableException,
javax.naming.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)LDAPOperationExceptionLDAPUnavailableExceptionjavax.naming.NamingExceptionjava.util.Collection searchSubTree(java.lang.String searchbase,
java.lang.String filter,
int limit,
int timeout)
throws LDAPOperationException,
LDAPUnavailableException,
javax.naming.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 searchLDAPOperationExceptionLDAPUnavailableExceptionjavax.naming.NamingExceptionjava.util.Collection<LDAPGenericObject> searchSubTree(java.lang.String searchbase, java.lang.String filter, int limit, int timeout, java.lang.String[] returnAttributes) throws LDAPOperationException, LDAPUnavailableException, javax.naming.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)LDAPOperationExceptionLDAPUnavailableExceptionjavax.naming.NamingExceptionjavax.naming.directory.Attributes read(java.lang.String distinguishedName)
throws LDAPOperationException,
LDAPUnavailableException,
javax.naming.NamingException
distinguishedName - the ldap string distinguished name of entry to be readLDAPOperationExceptionLDAPUnavailableExceptionjavax.naming.NamingExceptionboolean checkPassword(java.lang.String searchbase,
java.lang.String login,
char[] plainPassword)
void changePassword(javax.naming.directory.DirContext ctx,
java.lang.String argRDN,
java.lang.String oldPassword,
java.lang.String newPassword)
throws javax.naming.NamingException
javax.naming.NamingExceptionCopyright © 2018 SAP SE. All Rights Reserved.