From: Frank Brehm Date: Thu, 10 Nov 2022 16:29:05 +0000 (+0100) Subject: Adding module pp_admintools.handler.ldap_password for class LdapPasswordHandler X-Git-Tag: 0.7.2^2^2~16 X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=bffe7de86a392af36fa93004cb89ad57c4587b16;p=pixelpark%2Fpp-admin-tools.git Adding module pp_admintools.handler.ldap_password for class LdapPasswordHandler --- 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