From bffe7de86a392af36fa93004cb89ad57c4587b16 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Thu, 10 Nov 2022 17:29:05 +0100 Subject: [PATCH] Adding module pp_admintools.handler.ldap_password for class LdapPasswordHandler --- lib/pp_admintools/handler/ldap_password.py | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 lib/pp_admintools/handler/ldap_password.py diff --git a/lib/pp_admintools/handler/ldap_password.py b/lib/pp_admintools/handler/ldap_password.py new file mode 100644 index 0000000..5591c53 --- /dev/null +++ b/lib/pp_admintools/handler/ldap_password.py @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +""" +@author: Frank Brehm +@contact: frank.brehm@pixelpark.com +@copyright: © 2022 by Frank Brehm, Berlin +@summary: A handler module handling with LDAP passwords. +""" +from __future__ import absolute_import + +# Standard modules +import logging + +# Third party modules +from fb_tools.handling_obj import HandlingObject +from fb_tools.errors import FbHandlerError + +# Own modules +from ..xlate import XLATOR + +LOG = logging.getLogger(__name__) + +_ = XLATOR.gettext +ngettext = XLATOR.ngettext + +__version__ = '0.1.0' + + +# ============================================================================= +class LdapPwdHandlerError(FbHandlerError): + """Exception class for all exceptions in this handler module.""" + pass + + +# ============================================================================= +class LdapPasswordHandler(HandlingObject): + """Handler class for handling LDAP passwords.""" + + # ------------------------------------------------------------------------- + def __init__( + self, appname=None, verbose=0, version=__version__, base_dir=None, + simulate=None, force=None, assumed_answer=None, + terminal_has_colors=False, initialized=False): + + super(LdapPasswordHandler, self).__init__( + appname=appname, verbose=verbose, version=version, base_dir=base_dir, + simulate=simulate, force=force, assumed_answer=assumed_answer, + terminal_has_colors=terminal_has_colors, initialized=False, + ) + + +# vim: ts=4 et list -- 2.39.5