Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3.6 /
site-packages /
salt /
auth /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2022-10-11 05:09
__init__.py
20.98
KB
-rw-r--r--
2022-05-16 09:16
auto.py
211
B
-rw-r--r--
2022-05-16 09:16
django.py
6.47
KB
-rw-r--r--
2022-05-16 09:16
file.py
8.37
KB
-rw-r--r--
2022-05-16 09:16
keystone.py
943
B
-rw-r--r--
2022-05-16 09:16
ldap.py
22.42
KB
-rw-r--r--
2022-05-16 09:16
mysql.py
3.05
KB
-rw-r--r--
2022-05-16 09:16
pam.py
5.77
KB
-rw-r--r--
2022-05-16 09:16
pki.py
4.06
KB
-rw-r--r--
2022-05-16 09:16
rest.py
1.56
KB
-rw-r--r--
2022-05-16 09:16
sharedsecret.py
1.02
KB
-rw-r--r--
2022-05-16 09:16
yubico.py
1.95
KB
-rw-r--r--
2022-05-16 09:16
Save
Rename
""" Provide authentication using a REST call REST auth can be defined like any other eauth module: .. code-block:: yaml external_auth: rest: ^url: https://url/for/rest/call fred: - .* - '@runner' If there are entries underneath the ^url entry then they are merged with any responses from the REST call. In the above example, assuming the REST call does not return any additional ACLs, this will authenticate Fred via a REST call and allow him to run any execution module and all runners. The REST call should return a JSON object that maps to a regular eauth YAML structure as above. """ import logging import salt.utils.http log = logging.getLogger(__name__) __virtualname__ = "rest" def __virtual__(): return __virtualname__ def rest_auth_setup(): if "^url" in __opts__["external_auth"]["rest"]: return __opts__["external_auth"]["rest"]["^url"] else: return False def auth(username, password): """ REST authentication """ url = rest_auth_setup() data = {"username": username, "password": password} # Post to the API endpoint. If 200 is returned then the result will be the ACLs # for this user result = salt.utils.http.query( url, method="POST", data=data, status=True, decode=True ) if result["status"] == 200: log.debug("eauth REST call returned 200: %s", result) if result["dict"] is not None: return result["dict"] return True else: log.debug("eauth REST call failed: %s", result) return False