Add password while creating user with curl.
This commit is contained in:
parent
89ce3ab05b
commit
a23f71c751
|
@ -34,7 +34,7 @@ curl -X POST -i -b cookie.txt -d "cn=ABC Inc."a=20480" https://<server>/ired
|
|||
#
|
||||
# cn=Zhang Huangbin (display name: "Zhang Huangbin")
|
||||
# mailQuota=1024 (mailbox quota: 1 GB)
|
||||
curl -X POST -i -b cookie.txt -d "cn=Zhang Huangbin&mailQuota=1024" https://<server>/iredadmin/api/user/<mail>
|
||||
curl -X POST -i -b cookie.txt -d "password=A@StrongPassword2&cn=Zhang Huangbin&mailQuota=1024" https://<server>/iredadmin/api/user/<mail>
|
||||
|
||||
#
|
||||
# Delete mail user (DELETE)
|
||||
|
|
|
@ -42,7 +42,7 @@ requests.post(url + '/domain/test.com',
|
|||
requests.post(url + '/user/zhb@test.com',
|
||||
cookies=cookies,
|
||||
data={'cn': 'My Name',
|
||||
'password': '1@Password',
|
||||
'password': 'A@StrongPassword2',
|
||||
'preferredLanguage': 'zh_CN',
|
||||
'mailQuota': 2048})
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ curl -X POST -i -b cookie.txt -d "cn=ABC Inc.&quota=20480" https:/
|
|||
#
|
||||
# cn=Zhang Huangbin (display name: "Zhang Huangbin")
|
||||
# mailQuota=1024 (mailbox quota: 1 GB)
|
||||
curl -X POST -i -b cookie.txt -d "cn=Zhang Huangbin&mailQuota=1024" https://<server>/iredadmin/api/user/<mail>
|
||||
curl -X POST -i -b cookie.txt -d "password=A@StrongPassword2&cn=Zhang Huangbin&mailQuota=1024" https://<server>/iredadmin/api/user/<mail>
|
||||
|
||||
#
|
||||
# Delete mail user (DELETE)
|
||||
|
|
|
@ -58,7 +58,7 @@ requests.post(url + '/domain/test.com',
|
|||
requests.post(url + '/user/zhb@test.com',
|
||||
cookies=cookies,
|
||||
data={'cn': 'My Name',
|
||||
'password': '1@Password',
|
||||
'password': 'A@StrongPassword2',
|
||||
'preferredLanguage': 'zh_CN',
|
||||
'mailQuota': 2048})
|
||||
|
||||
|
|
Loading…
Reference in New Issue