403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/saltstack/salt/lib/python3.10/site-packages/salt/states/__pycache__/mssql_user.cpython-310.pyc
o

;j�
�@s4dZddlZdd�Zdd�Z	ddd�Zd	d
�ZdS)z�
Management of Microsoft SQLServer Users
=======================================

The mssql_user module is used to create
and manage SQL Server Users

.. code-block:: yaml

    frank:
      mssql_user.present:
        - database: yolo
�NcCsdtvrdSdS)z2
    Only load if the mssql module is present
    z
mssql.versionT)Fz mssql module could not be loaded)�__salt__�rr�J/opt/saltstack/salt/lib/python3.10/site-packages/salt/states/mssql_user.py�__virtual__srcCs|t|�ttjfvrdd�|��D�St|�tur$|r"t|d�tur$|St|�tus5t|d�ttjfvr7gSdd�|D�S)NcSsg|]\}}|�d|���qS)�=r)�.0�k�vrrr�
<listcomp>�z&_normalize_options.<locals>.<listcomp>rcSsg|]}t|�D]}|�qqSr)�_normalize_options)r�d�orrrr
&r)�type�dict�collections�OrderedDict�items�list�str)�optionsrrrrs �rc	Ks�|iddd�}|r|sd|d<d|d<|Std|f||d	�|��r+d
�|�|d<|Stdr=d|d<d
|�d�|d<|Std|f||||t|�d�|��}|durgd|d<|dd
|�d|��7<|S|dd
|�d�7<d|d|<|S)a%
    Checks existence of the named user.
    If not present, creates the user with the specified roles and options.

    name
        The name of the user to manage
    login
        If not specified, will be created WITHOUT LOGIN
    domain
        Creates a Windows authentication user.
        Needs to be NetBIOS domain or hostname
    database
        The database of the user (not the login)
    roles
        Add this user to all the roles in the list
    options
        Can be a list of strings, a dictionary, or a list of dictionaries
    T���name�changes�result�commentFrz"domain cannot be set without loginr�mssql.user_exists)�domain�databasezIUser {} is already present (Not going to try to set its roles or options)�testN�User z is set to be addedzmssql.user_create)�loginrr�rolesrz failed to be added: z has been addedZPresentr)r�format�__opts__r)	rr"rrr#r�kwargs�retZuser_createdrrr�present)sB�����
r(cKs�|iddd�}td|�sd|�d�|d<|Stdr)d	|d
<d|�d�|d<|Std|fi|��rCd|�d
�|d<d|d|<|Sd|d
<d|�d�|d<|S)zc
    Ensure that the named user is absent

    name
        The username of the user to remove
    Trrrr!z is not presentrr Nrz is set to be removedzmssql.user_removez has been removedZAbsentrFz failed to be removed)rr%)rr&r'rrr�absentdsr))NNNNN)�__doc__rrrr(r)rrrr�<module>s	
�;

Youez - 2016 - github.com/yon3zu
LinuXploit