]> Frank Brehm's Git Trees - pixelpark/pp-admin-tools.git/commitdiff
Better initialisation of the LdapPasswordHandler class.
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 22 Aug 2023 11:55:40 +0000 (13:55 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 22 Aug 2023 11:55:40 +0000 (13:55 +0200)
lib/pp_admintools/app/check_ldap_pwd_schemes.py
lib/pp_admintools/app/mk_ldap_passwd.py
lib/pp_admintools/app/set_ldap_password.py
lib/pp_admintools/handler/ldap_password.py

index 3c6d5bec9d64b768142040d00d82fa579ff23c46..166f326ce3e6555f9b31a7f7834419d7d8be5ea6 100644 (file)
@@ -32,7 +32,7 @@ from ..config.ldap import LdapConfiguration
 from ..handler.ldap_password import LdapPasswordHandler
 from ..xlate import XLATOR
 
-__version__ = '0.2.1'
+__version__ = '0.2.2'
 LOG = logging.getLogger(__name__)
 
 _ = XLATOR.gettext
@@ -63,7 +63,6 @@ class CheckLdapPwdSchemesApplication(BaseLdapApplication):
     # -------------------------------------------------------------------------
     def __init__(self, appname=None, base_dir=None):
         """Initialize the CheckLdapPwdSchemesApplication object."""
-        LdapPasswordHandler.init_pass_schemes()
         self.ldap = None
         self.instance = None
         self.connect_info = None
index 57a968d02c72a3efa27b7810320942a31956ae49..c98a59d7a31d33df65b11c4cfa44c563f49e5c9f 100644 (file)
@@ -24,7 +24,7 @@ from ..handler.ldap_password import WrongRoundsError
 from ..handler.ldap_password import WrongSaltError
 from ..xlate import XLATOR
 
-__version__ = '0.1.3'
+__version__ = '0.1.4'
 LOG = logging.getLogger(__name__)
 
 _ = XLATOR.gettext
@@ -47,8 +47,6 @@ class MkLdapPasswdApplication(BaseApplication):
     # -------------------------------------------------------------------------
     def __init__(self, appname=None, base_dir=None):
         """Initialize this application object."""
-        LdapPasswordHandler.init_pass_schemes()
-
         self.password = None
         self.no_cracklib = False
 
index fc3019981d968304b61319735e33d9b6728621a1..6a9c5b4c38c37d1200b488d63c1a4aa294116ff9 100644 (file)
@@ -35,7 +35,7 @@ from ..handler.ldap_password import WrongRoundsError
 from ..handler.ldap_password import WrongSaltError
 from ..xlate import XLATOR
 
-__version__ = '0.8.2'
+__version__ = '0.8.3'
 LOG = logging.getLogger(__name__)
 
 _ = XLATOR.gettext
@@ -70,8 +70,6 @@ class SetLdapPasswordApplication(BaseLdapApplication):
     # -------------------------------------------------------------------------
     def __init__(self, appname=None, base_dir=None):
         """Initialize the SetLdapPasswordApplication object."""
-        LdapPasswordHandler.init_pass_schemes()
-
         self.current_password = None
         self.need_current_password = False
         self.current_password_hash = None
index a59686243949e8a0c7cd549d25c3a2f5f8e9cf00..d1ca61458f8287e4392056b14d41438e6ad05b56 100644 (file)
@@ -36,7 +36,7 @@ LOG = logging.getLogger(__name__)
 _ = XLATOR.gettext
 ngettext = XLATOR.ngettext
 
-__version__ = '0.4.0'
+__version__ = '0.4.1'
 
 
 # =============================================================================
@@ -490,6 +490,10 @@ class LdapPasswordHandler(HandlingObject):
         return 'CRYPT (unknown {!r})'.format(crypt_id)
 
 
+# =============================================================================
+# Init of failing class data
+LdapPasswordHandler.init_pass_schemes()
+
 # =============================================================================
 if __name__ == '__main__':