munki / mwa2

Version 2 of MunkiWebAdmin
Other
157 stars 37 forks source link

"manifest | manifest file | Can add manifest file" permission not working #24

Open zakes-it opened 8 years ago

zakes-it commented 8 years ago

User accounts that have only the "Can add manifest file" permission granted cannot create new manifest files from the API:

2016-06-15 11:42:08,924 - requests.packages.urllib3.connectionpool - DEBUG - "POST /api/manifests/clients/test-client.plist HTTP/1.1" 401 None 2016-06-15 11:42:08,929 - root - ERROR - Server returned HTTP 401 unauthorized. 2016-06-15 11:42:08,929 - root - ERROR - Server request unauthorized. Check username and password.

User accounts with only the "Can change manifest file" can create and modify new manifest files from the API:

2016-06-15 11:47:42,361 - requests.packages.urllib3.connectionpool - DEBUG - "POST /api/manifests/clients/test-client.plist HTTP/1.1" 201 None 2016-06-15 11:47:42,365 - root - DEBUG - Server post successful: {u'managed_installs': [], u'catalogs': [u'production'], u'managed_updates': [], u'included_manifests': [u'roles/single-user-system.plist'], u'optional_installs': [], u'managed_uninstalls': []}