File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/kerberos.cpython-310.pyc
Back
o ;j] � @ sv d Z ddlZddlZe�e�Zdd� Zdd� Zdd� Z d d � Z dd� Zd d� Zdd� Z ddd�Zdd� Zddd�ZdS )a� Manage Kerberos KDC :configuration: In order to manage your KDC you will need to generate a keytab that can authenticate without requiring a password. .. code-block:: bash # ktadd -k /root/secure.keytab kadmin/admin kadmin/changepw On the KDC minion you will need to add the following to the minion configuration file so Salt knows what keytab to use and what principal to authenticate as. .. code-block:: yaml auth_keytab: /root/auth.keytab auth_principal: kadmin/admin � Nc C s t jj�d�r dS dS )NZkadminT)Fz<The kerberos execution module not loaded: kadmin not in path)�salt�utils�path�which� r r �I/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/kerberos.py�__virtual__ s r c C sj i }t �dd�}t �dd�}td |�r&|r&td d|� d|� d| � d ��S t�d � d|d<