003 File Manager
Current Path:
/usr/local/lib/python3.8/site-packages/salt/auth
usr
/
local
/
lib
/
python3.8
/
site-packages
/
salt
/
auth
/
📁
..
📄
__init__.py
(20.98 KB)
📁
__pycache__
📄
auto.py
(211 B)
📄
django.py
(6.47 KB)
📄
file.py
(8.37 KB)
📄
keystone.py
(943 B)
📄
ldap.py
(22.42 KB)
📄
mysql.py
(3.05 KB)
📄
pam.py
(5.76 KB)
📄
pki.py
(4.06 KB)
📄
rest.py
(1.56 KB)
📄
sharedsecret.py
(1.02 KB)
📄
yubico.py
(1.95 KB)
Editing: sharedsecret.py
"""Provide authentication using configured shared secret .. code-block:: yaml external_auth: sharedsecret: fred: - .* - '@jobs' The shared secret should be added to the master configuration, for example in /etc/salt/master.d/sharedsecret.conf (make sure that file is only readable by the user running the master): .. code-block:: yaml sharedsecret: OIUHF_CHANGE_THIS_12h88 This auth module should be used with caution. It was initially designed to work with a frontal that takes care of authentication (for example kerberos) and places the shared secret in the HTTP headers to the salt-api call. This salt-api call should really be done on localhost to avoid someone eavesdropping on the shared secret. See the documentation for cherrypy to setup the headers in your frontal. .. versionadded:: 2015.8.0 """ import logging log = logging.getLogger(__name__) def auth(username, password): """ Shared secret authentication """ return password == __opts__.get("sharedsecret")
Upload File
Create Folder