Univention Bugzilla – Attachment 9425 Details for
Bug 45842
Simplify user options (posix, samba, kerberos)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
check if OC already exists, before adding it
45842_check_before_add_oc.patch (text/plain), 985 bytes, created by
Daniel Tröder
on 2018-03-01 12:18:24 CET
(
hide
)
Description:
check if OC already exists, before adding it
Filename:
MIME Type:
Creator:
Daniel Tröder
Created:
2018-03-01 12:18:24 CET
Size:
985 bytes
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 f438f52430..d5a9052325 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 >@@ -2270,7 +2270,7 @@ class object(univention.admin.handlers.simpleLdap): > > def _modlist_univention_person(self, ml): > # make sure that univentionPerson is set as objectClass when needed >- if any(self.hasChanged(ikey) and self[ikey] for ikey in ('umcProperty', 'birthday')): >+ if any(self.hasChanged(ikey) and self[ikey] for ikey in ('umcProperty', 'birthday')) and 'univentionPerson' not in self.oldattr.get('objectClass', []): > ml.append(('objectClass', '', 'univentionPerson')) # TODO: check if exists already > return ml >
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 45842
:
9314
|
9320
|
9322
|
9323
|
9376
|
9397
| 9425