Univention Bugzilla – Attachment 7884 Details for
Bug 42015
--set pwdChangeNextLogin=0 and --set password="foo" causes LDAP Error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
42015.patch (text/plain), 2.09 KB, created by
Florian Best
on 2016-08-16 19:09:15 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-08-16 19:09:15 CEST
Size:
2.09 KB
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/handlers/users/user.py b/management/univention-directory-manager-modules/modules/univention/admin/handlers/users/user.py >index ef32260..67b1ce5 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/handlers/users/user.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/handlers/users/user.py >@@ -2223,6 +2223,7 @@ def _ldap_modlist(self): > > old_shadowMax=self.oldattr.get('shadowMax', '') > if old_shadowMax != shadowMax: >+ ml = [x for x in ml if x[0] != 'shadowMax'] > ml.append(('shadowMax',self.oldattr.get('shadowMax', [''])[0], shadowMax)) > > if 'samba' in self.options: >@@ -2236,6 +2237,7 @@ def _ldap_modlist(self): > univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'krb5PasswordEnd: %s' % krb5PasswordEnd) > old_krb5PasswordEnd=self.oldattr.get('krb5PasswordEnd', '') > if old_krb5PasswordEnd != krb5PasswordEnd: >+ ml = [x for x in ml if x[0] != 'krb5PasswordEnd'] > ml.append(('krb5PasswordEnd',self.oldattr.get('krb5PasswordEnd', [''])[0], krb5PasswordEnd)) > elif pwd_change_next_login == 2: # pwdChangeNextLogin changed from 1 to 0 > # 1. determine expiryInterval (could be done once before "if self.modifypassword" above) >@@ -2263,6 +2265,7 @@ def _ldap_modlist(self): > univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'shadowMax: %s' % shadowMax) > old_shadowMax=self.oldattr.get('shadowMax', [''])[0] > if old_shadowMax != shadowMax: >+ ml = [x for x in ml if x[0] != 'shadowMax'] > ml.append(('shadowMax', old_shadowMax, shadowMax)) > > # 3. set samba attributes >@@ -2281,6 +2284,7 @@ def _ldap_modlist(self): > univention.debug.debug(univention.debug.ADMIN, univention.debug.INFO, 'krb5PasswordEnd: %s' % krb5PasswordEnd) > old_krb5PasswordEnd=self.oldattr.get('krb5PasswordEnd', [''])[0] > if old_krb5PasswordEnd != krb5PasswordEnd: >+ ml = [x for x in ml if x[0] != 'krb5PasswordEnd'] > ml.append(('krb5PasswordEnd',old_krb5PasswordEnd, krb5PasswordEnd)) > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42015
:
7883
| 7884