Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117881778
purge_users.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
425 B
Referenced Files
None
Subscribers
None
purge_users.py
View Options
import
pykolab
from
pykolab
import
wap_client
from
pykolab.auth
import
Auth
from
pykolab.imap
import
IMAP
conf
=
pykolab
.
getConf
()
def
purge_users
():
wap_client
.
authenticate
(
conf
.
get
(
"ldap"
,
"bind_dn"
),
conf
.
get
(
"ldap"
,
"bind_pw"
))
users
=
wap_client
.
users_list
()
for
user
in
users
[
'list'
]:
wap_client
.
user_delete
({
'id'
:
user
})
from
tests.functional.purge_imap
import
purge_imap
purge_imap
()
File Metadata
Details
Attached
Mime Type
text/x-script.python
Expires
Mon, Apr 6, 12:08 AM (2 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3a/87/8c50e6db3772cddbdd0f43a4fef2
Default Alt Text
purge_users.py (425 B)
Attached To
Mode
rP pykolab
Attached
Detach File
Event Timeline