Package org.bremersee.ldaptive
Class LdaptiveSambaTemplate
java.lang.Object
org.bremersee.ldaptive.LdaptiveTemplate
org.bremersee.ldaptive.LdaptiveSambaTemplate
- All Implemented Interfaces:
LdaptiveOperations
The ldaptive samba template.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorsConstructorDescriptionLdaptiveSambaTemplate(org.ldaptive.ConnectionFactory connectionFactory) Instantiates a new ldaptive samba template. -
Method Summary
Modifier and TypeMethodDescriptioncopy(LdaptiveErrorHandler errorHandler) Returns a new instance of this ldap operations with the same connection factory and the given error handler.Generate user password.voidmodifyUserPassword(String dn, String oldPass, String newPass) Modifies user password.voidsetPasswordGenerator(Supplier<String> passwordGenerator) Sets password generator.Methods inherited from class org.bremersee.ldaptive.LdaptiveTemplate
add, bind, compare, copy, delete, executeExtension, exists, getConnectionFactory, modify, modifyDn, save, search, setErrorHandler
-
Constructor Details
-
LdaptiveSambaTemplate
public LdaptiveSambaTemplate(org.ldaptive.ConnectionFactory connectionFactory) Instantiates a new ldaptive samba template.- Parameters:
connectionFactory- the connection factory
-
-
Method Details
-
setPasswordGenerator
Sets password generator.- Parameters:
passwordGenerator- the password generator
-
copy
Description copied from interface:LdaptiveOperationsReturns a new instance of this ldap operations with the same connection factory and the given error handler.- Specified by:
copyin interfaceLdaptiveOperations- Overrides:
copyin classLdaptiveTemplate- Parameters:
errorHandler- the new error handler- Returns:
- the new instance of this ldap operations
-
generateUserPassword
Description copied from interface:LdaptiveOperationsGenerate user password.- Parameters:
dn- the dn- Returns:
- the generated user password
-
modifyUserPassword
Description copied from interface:LdaptiveOperationsModifies user password.- Parameters:
dn- the dnoldPass- the old passnewPass- the new pass
-