# rom ..config.ldap import DEFAULT_PORT_LDAP, DEFAULT_PORT_LDAPS
from ..config.ldap import DEFAULT_TIMEOUT
-__version__ = '0.4.6'
+__version__ = '0.4.7'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
from .ldap import LdapAppError
from .ldap import BaseLdapApplication
-__version__ = '0.4.4'
+__version__ = '0.4.5'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
old_pwd_hash = attributes['userPassword'][0]
changes['carLicense'] = [(MODIFY_ADD, old_pwd_hash)]
changes['userPassword'] = [(MODIFY_REPLACE, self.raw_empty_passwd)]
- changes['shadowExpire'] = [(MODIFY_REPLACE, self.shadow_expire)]
- changes['loginShell'] = [(MODIFY_REPLACE, self.nologin_shell)]
+ if 'shadowAccount' in attributes['objectClass']:
+ changes['shadowExpire'] = [(MODIFY_REPLACE, self.shadow_expire)]
+ if 'posixAccount' in attributes['objectClass']:
+ changes['loginShell'] = [(MODIFY_REPLACE, self.nologin_shell)]
LOG.info(_("Updating user info for {dn!r} on {inst} ...").format(
dn=dn, inst=connect_info.url))
#: lib/pp_admintools/app/ldap.py:946
msgid "Deleting LDAP entry {dn!r} on {uri} ..."
-msgstr "Lösche LDAP-Eintrag {dn!r} in {inst} …"
+msgstr "Lösche LDAP-Eintrag {dn!r} in {uri} …"
#: lib/pp_admintools/app/ldap.py:951
msgid "Simulation mode - deletion will not be executed."