Skip to content

Instantly share code, notes, and snippets.

Created September 17, 2015 19:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b98f0ea150bd7d7a001a to your computer and use it in GitHub Desktop.
Save anonymous/b98f0ea150bd7d7a001a to your computer and use it in GitHub Desktop.
external_auth:
pam:
saltuser:
- .*
import requests
s=requests.Session()
print(s.post("https://servinfo-salt:8000/login",
data={
"username": "saltuser",
"password": "<secret password>",
"eauth": "pam"},
verify=False))
print(s.get("https://servinfo-salt:8000/keys",
verify=False))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment