]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Adding module pp_admintools.handler.ldap_password for class LdapPasswordHandler
authorFrank Brehm <frank@brehm-online.com>
Thu, 10 Nov 2022 16:29:05 +0000 (17:29 +0100)
committerFrank Brehm <frank@brehm-online.com>
Thu, 10 Nov 2022 16:29:05 +0000 (17:29 +0100)
lib/pp_admintools/handler/ldap_password.py [new file with mode: 0644]

diff --git a/lib/pp_admintools/handler/ldap_password.py b/lib/pp_admintools/handler/ldap_password.py
new file mode 100644 (file)
index 0000000..5591c53
--- /dev/null
@@ -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