--- /dev/null
+#!/usr/bin/env python3
+
+from __future__ import print_function
+
+# Standard modules
+import sys
+
+__exp_py_version_major__ = 3
+__min_py_version_minor__ = 6
+
+if sys.version_info[0] != __exp_py_version_major__:
+ print("This script is intended to use with Python {}.".format(
+ __exp_py_version_major__), file=sys.stderr)
+ print("You are using Python: {0}.{1}.{2}-{3}-{4}.".format(
+ *sys.version_info) + "\n", file=sys.stderr)
+ sys.exit(1)
+
+if sys.version_info[1] < __min_py_version_minor__:
+ print("A minimal Python version of {maj}.{min} is necessary to execute this script.".format(
+ maj=__exp_py_version_major__, min=__min_py_version_minor__), file=sys.stderr)
+ print("You are using Python: {0}.{1}.{2}-{3}-{4}.".format(
+ *sys.version_info) + "\n", file=sys.stderr)
+ sys.exit(1)
+
+# Standard modules
+import os
+import locale
+
+try:
+ from pathlib import Path
+except ImportError:
+ from pathlib2 import Path
+
+__author__ = 'Frank Brehm <frank.brehm@pixelpark.com>'
+__copyright__ = '(C) 2022 by Frank Brehm, Digitas Pixelpark GmbH, Berlin'
+
+# own modules:
+
+my_path = Path(__file__)
+my_real_path = my_path.resolve()
+bin_path = my_real_path.parent
+base_dir = bin_path.parent
+lib_dir = base_dir.joinpath('lib')
+module_dir = lib_dir.joinpath('pp_admintools')
+
+if module_dir.exists():
+ sys.path.insert(0, str(lib_dir))
+
+from pp_admintools.app.set_ldap_password import SetLdapPasswordApplication
+
+appname = os.path.basename(sys.argv[0])
+
+locale.setlocale(locale.LC_ALL, '')
+
+app = SetLdapPasswordApplication(appname=appname, base_dir=base_dir)
+app.initialized = True
+
+if app.verbose > 2:
+ print("{c}-Object:\n{a}".format(c=app.__class__.__name__, a=app))
+
+app()
+
+sys.exit(0)
+
+# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4
--- /dev/null
+# -*- coding: utf-8 -*-
+"""
+@author: Frank Brehm
+@contact: frank.brehm@pixelpark.com
+@copyright: © 2022 by Frank Brehm, Berlin
+@summary: An application module for setting a LDAP password
+"""
+from __future__ import absolute_import
+
+# Standard modules
+import logging
+import time
+import crypt
+
+# Third party modules
+from ldap3 import MODIFY_REPLACE, MODIFY_ADD, MODIFY_DELETE
+
+# Own modules
+from fb_tools.common import to_bool, is_sequence, pp
+
+from ..xlate import XLATOR
+
+from . import AbortAppError, TimeoutOnPromptError
+
+from .ldap import LdapAppError, FatalLDAPError
+from .ldap import BaseLdapApplication
+
+__version__ = '0.1.0'
+LOG = logging.getLogger(__name__)
+
+_ = XLATOR.gettext
+ngettext = XLATOR.ngettext
+
+
+# =============================================================================
+class SetLdapPasswordError(LdapAppError):
+ """Special exception class for exceptions inside this module."""
+
+ pass
+
+
+# =============================================================================
+class SetLdapPasswordApplication(BaseLdapApplication):
+ """Application class for setting a LDAP password."""
+
+
+# =============================================================================
+if __name__ == "__main__":
+
+ pass
+
+# =============================================================================
+
+# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 list