File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/useradd.cpython-310.pyc
o
�N�gkZ � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddl Zddl
ZddlZddlm
Z
zddlZdZW n eyC dZY nw e�e�ZdZdd� Zd d
� ZdEdd�Zd
d� Zdd� ZdEdd�Z dFdd�ZdGdd�ZdHdd�ZdHdd�ZdEdd�ZdEdd�Z dEd d!�Z!dHd"d#�Z"dHd$d%�Z#dEd&d'�Z$dEd(d)�Z%dEd*d+�Z&dEd,d-�Z'dEd.d/�Z(dEd0d1�Z)dEd2d3�Z*d4d5� Z+d6d7� Z,ej-j.j/�0d8�d9d:� �Z1d;d<� Z2dEd=d>�Z3dEd?d@�Z4dEdAdB�Z5dEdCdD�Z6dS )Ia$
Manage users with the useradd command
.. important::
If you feel that Salt should be using this module to manage users on a
minion, and it is using a different module (or gives an error similar to
*'user.info' is not available*), see :ref:`here
<module-provider-override>`.
� N)�CommandExecutionErrorTF�userc C s t r
td dv r
tS dS )zL
Set the user module if the kernel is Linux, OpenBSD, NetBSD or AIX
�kernel)�Linux�OpenBSD�NetBSD�AIX)Fzuseradd execution module not loaded: either pwd python library not available or system not one of Linux, OpenBSD, NetBSD or AIX)�HAS_PWD�
__grains__�__virtualname__� r r �H/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/useradd.py�__virtual__&