#!/bin/env python3
# -*- coding: utf-8 -*-
-__version__ = '0.5.0'
+__version__ = '0.5.1'
MAX_PORT_NUMBER = (2 ** 16) - 1
-MAX_TIMEOUT = 3600
DEFAULT_CONFIG_DIR = 'pixelpark'
# vim: ts=4 et list
# Standard modules
import logging
-import argparse
-import signal
-import re
-import getpass
# Third party modules
-from fb_tools.common import to_bool
-from fb_tools.argparse_actions import TimeoutOptionAction
from fb_tools.cfg_app import FbConfigApplication
-from fb_tools.errors import FbAppError, IoTimeoutError, TimeoutOnPromptError
+from fb_tools.errors import FbAppError
from fb_tools.multi_config import BaseMultiConfig
# Own modules
from .. import __version__ as GLOBAL_VERSION
from .. import DEFAULT_CONFIG_DIR
-from ..config.ldap import MAX_TIMEOUT
-
from ..xlate import XLATOR
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
ngettext = XLATOR.ngettext
-__version__ = '0.4.1'
+__version__ = '0.4.2'
# =============================================================================
from ..xlate import XLATOR
-__version__ = '0.8.4'
+__version__ = '0.8.5'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
deploy_group = self.arg_parser.add_argument_group(_("Options for {}").format(
self.appname))
-
deploy_group.add_argument(
'-B', '--backup', dest="keep_backup", action='store_true',
help=_("Keep a backup file for each changed configuration file."),
# from ldap3.core.exceptions import LDAPException, LDAPBindError
from fb_tools.common import pp, is_sequence, to_bool
+from fb_tools.argparse_actions import TimeoutOptionAction
from fb_tools.mailaddress import MailAddress
from fb_tools.collections import FrozenCIStringSet, CIStringSet, CIDict
# from ..argparse_actions import PortOptionAction
-from . import DPXAppError, TimeoutOptionAction, BaseDPXApplication
+from . import DPXAppError, BaseDPXApplication
# from ..config.ldap import LdapConfigError
from ..config.ldap import LdapConnectionInfo, LdapConfiguration
# Own modules
from fb_tools.common import pp
-from fb_tools.argparse_actions import TimeoutOptionAction
from fb_tools.xlate import format_list
from fb_pdnstools.zone import PowerDNSZone
from ..xlate import XLATOR
-__version__ = '0.9.4'
+__version__ = '0.9.5'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
insts = PdnsConfiguration.valid_pdns_api_instances
inst_list = format_list(insts, do_repr=True)
- default_timeout = PdnsConfiguration.default_pdns_timeout
inst_group.add_argument(
'-I', '--inst', '--instance',
# Own modules
from fb_tools.common import to_bool, is_sequence, pp
+from fb_tools.errors import AbortAppError, TimeoutOnPromptError
from ..xlate import XLATOR
-from . import AbortAppError, TimeoutOnPromptError
-
from .ldap import LdapAppError, FatalLDAPError
from .ldap import BaseLdapApplication
from .ldap import BaseLdapApplication
from .ldap import PasswordFileOptionAction
-__version__ = '0.6.2'
+__version__ = '0.6.3'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
def_schema = schema_id
schema_list.append('list')
+ help_txt1 = _(
+ "The schema (hashing method) to use to hash the new password. It is possible to give "
+ "here the value {val_list!r}, then all possible schemes are shown and exit. "
+ "Default: {default!r}.").format(val_list='list', default=def_schema)
+
+ help_txt2 = _(
+ "If you are not using an admin account, then the password will hashed "
+ "only by the default schema.")
+
app_group.add_argument(
'-S', '--schema', metavar=_("SCHEMA"), dest="schema", choices=schema_list,
- help=_(
- "The schema (hashing method) to use to hash the new password. "
- "It is possible to give here the value {val_list!r}, then all possible schemes "
- "are shown and exit. Default: {default!r}.").format(
- val_list='list', default=def_schema) + ' ' + _("If you are not using an "
- "admin account, then the password will hashed only by the default schema.")
+ help=(help_txt1 + ' ' + help_txt2)
)
user_help = _(
changes['userPassword'] = [(MODIFY_REPLACE, hashed_passwd)]
inst = self.ldap_instances[0]
- connect_info = self.cfg.ldap_connection[inst]
+ # connect_info = self.cfg.ldap_connection[inst]
msg = _("Setting password ...")
LOG.info(msg)
import argparse
# Own modules
-from . import MAX_PORT_NUMBER, MAX_TIMEOUT
+from . import MAX_PORT_NUMBER
from .xlate import XLATOR
-__version__ = '0.2.1'
+__version__ = '0.2.2'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
# Third party modules
# Own modules
+
+from fb_tools import MAX_TIMEOUT
# from fb_tools.common import pp
from fb_tools.common import is_sequence, to_bool
-
from fb_tools.multi_config import DEFAULT_ENCODING
-
from fb_tools.obj import FbGenericBaseObject, FbBaseObject
from . import PpConfigurationError, PpBaseConfiguration
from ..xlate import XLATOR
-__version__ = '0.4.1'
+__version__ = '0.4.2'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
DEFAULT_PORT_LDAP = 389
DEFAULT_PORT_LDAPS = 636
DEFAULT_TIMEOUT = 20
-MAX_TIMEOUT = 3600
# =============================================================================
class LdapConfigError(PpConfigurationError):
# Own modules
+from fb_tools import MAX_TIMEOUT
from fb_tools.common import is_sequence, pp
-
# from .config import ConfigError, BaseConfiguration
from fb_tools.multi_config import DEFAULT_ENCODING
from .. import __version__ as GLOBAL_VERSION
-from .. import MAX_TIMEOUT, MAX_PORT_NUMBER
+from .. import MAX_PORT_NUMBER
from .mail import MailConfigError, MailConfiguration
from .mail import DEFAULT_CONFIG_DIR
LIBRARY_NAME = "pp-pdns-api-client"
-__version__ = '0.2.3'
+__version__ = '0.2.4'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
" somehow the current password of the user to change."
msgstr ""
"Wenn eine LDAP-Instanz verwendet wird, die nur Leserechte oder keinen Admin-Zugriff hat, dann "
-"mussirgendwie das neue Passwort des Nutzer zum Ändern angegeben werden."
+"muss irgendwie das neue Passwort des Nutzer zum Ändern angegeben werden."
#: lib/pp_admintools/app/set_ldap_password.py:316
msgid "Could not detect your current login name."