Univention Bugzilla – Attachment 4204 Details for
Bug 25709
Performance Gruppensynchronisation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Script zum Anlegen der Gruppen/Benutzer
udm-users-groups.py (text/x-python), 1.21 KB, created by
Felix Botner
on 2012-02-21 17:20 CET
(
hide
)
Description:
Script zum Anlegen der Gruppen/Benutzer
Filename:
MIME Type:
Creator:
Felix Botner
Created:
2012-02-21 17:20 CET
Size:
1.21 KB
patch
obsolete
>import univention.admin >import univention.admin.modules >import univention.admin.objects >import univention.admin.config >import univention.admin.uldap > >co = univention.admin.config.config() >lo, position = univention.admin.uldap.getAdminConnection() >univention.admin.modules.update() >uu = univention.admin.modules.get("users/user") >gg = univention.admin.modules.get("groups/group") >groups = [] > > >for i in range(1, 16): > > filter = "cn=testgroup%s" % i > dn = filter + "," + position.getDn() > groups.append(dn) > if not lo.search(base=position.getDn(), scope='sub', filter=filter): > object = gg.object(co, lo, position) > object.open() > object["name"] = "testgroup%s" % i > print object.create() > >for i in range(1, 501): > > filter = "uid=testuser%s" % i > if not lo.search(base=position.getDn(), scope='sub', filter=filter): > object = uu.object(co, lo, position) > object.open() > object["username"] = "testuser%s" % i > object["lastname"] = "user %s" % i > object["password"] = "univention" > object["groups"] = groups > print object.create()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
Attachments on
bug 25709
:
4202
|
4203
| 4204 |
4210
|
4211