Univention Bugzilla – Attachment 6490 Details for
Bug 35099
LDAP inconsistency/UDM traceback if network object gets removed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
dirty patch
35099.patch (text/plain), 1.34 KB, created by
Florian Best
on 2014-12-02 00:38:43 CET
(
hide
)
Description:
dirty patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2014-12-02 00:38:43 CET
Size:
1.34 KB
patch
obsolete
>diff --git a/ucs-4.0-0/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py b/ucs-4.0-0/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py >index 113da0f..dfd5da6 100644 >--- a/ucs-4.0-0/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py >+++ b/ucs-4.0-0/management/univention-directory-manager-modules/modules/univention/admin/handlers/networks/network.py >@@ -38,6 +38,8 @@ import univention.admin.filter > import univention.admin.handlers > import univention.admin.localization > >+import univention.admin.handlers.computers.computer >+ > import univention.debug > > translation=univention.admin.localization.translation('univention.admin.handlers.networks') >@@ -237,6 +239,12 @@ class object(univention.admin.handlers.simpleLdap): > raise univention.admin.uexceptions.nextFreeIp > self.modify() > >+ def _ldap_post_remove(self): >+ f = univention.admin.filter.expression('univentionNetworkLink', self.dn) >+ for computer in univention.admin.handlers.computers.computer.lookup(self.co, self.lo, filter_s=f): >+ computer.open() >+ computer['network'] = '' >+ computer.modify() > > def _ldap_pre_create(self): > self.dn='%s=%s,%s' % (mapping.mapName('name'), mapping.mapValue('name', self.info['name']), self.position.getDn())
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 35099
:
6490