Class LdaptiveSambaTemplate

java.lang.Object
org.bremersee.ldaptive.LdaptiveTemplate
org.bremersee.ldaptive.LdaptiveSambaTemplate
All Implemented Interfaces:
LdaptiveOperations

public class LdaptiveSambaTemplate extends LdaptiveTemplate
The ldaptive samba template.
Author:
Christian Bremer
  • Constructor Details

    • LdaptiveSambaTemplate

      public LdaptiveSambaTemplate(org.ldaptive.ConnectionFactory connectionFactory)
      Instantiates a new ldaptive samba template.
      Parameters:
      connectionFactory - the connection factory
  • Method Details

    • setPasswordGenerator

      public void setPasswordGenerator(Supplier<String> passwordGenerator)
      Sets password generator.
      Parameters:
      passwordGenerator - the password generator
    • copy

      public LdaptiveSambaTemplate copy(LdaptiveErrorHandler errorHandler)
      Description copied from interface: LdaptiveOperations
      Returns a new instance of this ldap operations with the same connection factory and the given error handler.
      Specified by:
      copy in interface LdaptiveOperations
      Overrides:
      copy in class LdaptiveTemplate
      Parameters:
      errorHandler - the new error handler
      Returns:
      the new instance of this ldap operations
    • generateUserPassword

      public String generateUserPassword(String dn)
      Description copied from interface: LdaptiveOperations
      Generate user password.
      Parameters:
      dn - the dn
      Returns:
      the generated user password
    • modifyUserPassword

      public void modifyUserPassword(String dn, String oldPass, String newPass)
      Description copied from interface: LdaptiveOperations
      Modifies user password.
      Parameters:
      dn - the dn
      oldPass - the old pass
      newPass - the new pass