Univention Bugzilla – Attachment 7301 Details for
Bug 39967
teacher/schooladmin can't create workgroups anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
script to reproduce
39967.py (text/x-python), 526 bytes, created by
Florian Best
on 2015-11-16 13:14:14 CET
(
hide
)
Description:
script to reproduce
Filename:
MIME Type:
Creator:
Florian Best
Created:
2015-11-16 13:14:14 CET
Size:
526 bytes
patch
obsolete
>from ucsschool.lib.models import WorkGroup >from univention.management.console.ldap import get_user_connection >from univention.management.console.config import ucr >SCHOOL = b'oldschool' > > >def bind(ldap_connection=None, ldap_position=None): > ldap_connection.bind(b'uid=d.krause1,cn=admins,cn=users,ou=%s,%s' % (SCHOOL, ucr['ldap/base'],), b'univention') > >lo, po = get_user_connection(bind=bind, write=True) > >attrs = {b'users': [], b'school': SCHOOL, b'name': b'39967', b'description': b''} >wg = WorkGroup(**attrs) >wg.create(lo)
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 39967
:
7300
| 7301