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 YubiKey. .. versionadded:: 2015.5.0 :depends: yubico-client Python module To get your YubiKey API key you will need to visit the website below. https://upgrade.yubico.com/getapikey/ The resulting page will show the generated Client ID (aka AuthID or API ID) and the generated API key (Secret Key). Make a note of both and use these two values in your /etc/salt/master configuration. /etc/salt/master .. code-block:: yaml yubico_users: damian: id: 12345 key: ABCDEFGHIJKLMNOPQRSTUVWXYZ .. code-block:: yaml external_auth: yubico: damian: - test.* Please wait five to ten minutes after generating the key before testing so that the API key will be updated on all the YubiCloud servers. """ import logging log = logging.getLogger(__name__) try: from yubico_client import Yubico, yubico_exceptions HAS_YUBICO = True except ImportError: HAS_YUBICO = False def __get_yubico_users(username): """ Grab the YubiKey Client ID & Secret Key """ user = {} try: if __opts__["yubico_users"].get(username, None): (user["id"], user["key"]) = list( __opts__["yubico_users"][username].values() ) else: return None except KeyError: return None return user def auth(username, password): """ Authenticate against yubico server """ _cred = __get_yubico_users(username) client = Yubico(_cred["id"], _cred["key"]) try: return client.verify(password) except yubico_exceptions.StatusCodeError as e: log.info("Unable to verify YubiKey `%s`", e) return False def groups(username, *args, **kwargs): return False if __name__ == "__main__": __opts__ = {"yubico_users": {"damian": {"id": "12345", "key": "ABC123"}}} if auth("damian", "OPT"): print("Authenticated") else: print("Failed to authenticate")