curl -sSk
https://172.17.0.6:8013/login -H 'Accept: application/x-yaml' -d username=saltdev -d password=saltdev -d eauth=pam
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<title>401 Unauthorized</title>
<style type="text/css">
#powered_by {
margin-top: 20px;
border-top: 2px solid black;
font-style: italic;
}
#traceback {
color: red;
}
</style>
</head>
<body>
<h2>401 Unauthorized</h2>
<p>Could not authenticate using provided credentials</p>
<pre id="traceback">Traceback (most recent call last):
File "/opt/saltstack/salt/lib/python3.10/site-packages/cherrypy/_cprequest.py", line 659, in respond
self._do_respond(path_info)
File "/opt/saltstack/salt/lib/python3.10/site-packages/cherrypy/_cprequest.py", line 718, in _do_respond
response.body = self.handler()
File "/opt/saltstack/salt/lib/python3.10/site-packages/cherrypy/lib/encoding.py", line 223, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/netapi/rest_cherrypy/app.py", line 860, in hypermedia_handler
ret = cherrypy.serving.request._hypermedia_inner_handler(*args, **kwargs)
File "/opt/saltstack/salt/lib/python3.10/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__
return self.callable(*self.args, **self.kwargs)
File "/opt/saltstack/salt/lib/python3.10/site-packages/salt/netapi/rest_cherrypy/app.py", line 1897, in POST
raise cherrypy.HTTPError(
cherrypy._cperror.HTTPError: (401, 'Could not authenticate using provided credentials')
</pre>
<div id="powered_by">
<span>
Powered by <a href="
http://www.cherrypy.dev">CherryPy 18.10.0</a>
</span>
</div>
</body>
</html>