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 OpenStack Keystone :depends: - keystoneclient Python module """ try: from keystoneclient.v2_0 import client from keystoneclient.exceptions import AuthorizationFailure, Unauthorized except ImportError: pass def get_auth_url(): """ Try and get the URL from the config, else return localhost """ try: return __opts__["keystone.auth_url"] except KeyError: return "http://localhost:35357/v2.0" def auth(username, password): """ Try and authenticate """ try: keystone = client.Client( username=username, password=password, auth_url=get_auth_url() ) return keystone.authenticate() except (AuthorizationFailure, Unauthorized): return False if __name__ == "__main__": __opts__ = {} if auth("test", "test"): print("Authenticated") else: print("Failed to authenticate")