Univention Bugzilla – Attachment 6774 Details for
Bug 37447
UMC-server crashes when extendedAttributes are not known
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
37447.py
37447.py (text/x-python), 1.00 KB, created by
Florian Best
on 2015-03-20 12:05:37 CET
(
hide
)
Description:
37447.py
Filename:
MIME Type:
Creator:
Florian Best
Created:
2015-03-20 12:05:37 CET
Size:
1.00 KB
patch
obsolete
>#!/usr/bin/python >import subprocess >import random >import univention.config_registry >ucr = univention.config_registry.ConfigRegistry() >ucr.load() >base = ucr['ldap/base'] >administrator_dn = 'uid=Administrator,cn=users,%s' % (base,) > >subprocess.call('udm settings/extended_attribute remove --dn "cn=ownCloudUserEnabled,cn=owncloud,cn=custom attributes,cn=univention,%s"' % (base,), shell=True) > >import univention.admin.modules >import univention.admin.objects >univention.admin.modules.update() >users_module = univention.admin.modules.get('users/user') > >lo,po=univention.admin.uldap.getAdminConnection() >univention.admin.modules.init(lo, po, users_module) > >univention.admin.objects.get(users_module, None, lo, po, administrator_dn) > >subprocess.call('univention-run-join-scripts --run-scripts --force 80owncloud', shell=True) >lo,po=univention.admin.uldap.getAdminConnection() > >A = univention.admin.objects.get(users_module, None, lo, po, administrator_dn) >A.open() >A.info['umcProperty'] = [['random', str(random.random())]] >A.modify()
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 Raw
Actions:
View
Attachments on
bug 37447
: 6774