%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/salt/states/mssql_login.pyo

�
���^c@@sbdZddlmZmZmZddlZd�Zd�Zddddd�Z	d�Z
dS(u�
Management of Microsoft SQLServer Logins
========================================

The mssql_login module is used to create
and manage SQL Server Logins

.. code-block:: yaml

    frank:
      mssql_login.present
        - domain: mydomain
i(tabsolute_importtprint_functiontunicode_literalsNcC@s
dtkS(u2
    Only load if the mssql module is present
    u
mssql.version(t__salt__(((s;/usr/lib/python2.7/site-packages/salt/states/mssql_login.pyt__virtual__scC@s�t|�ttjgkrJg|j�D]\}}dj||�^q(St|�tkr�t|�st|d�tkr�|St|�tk	s�t|d�ttjgkr�gSg|D]}t	|�D]}|^q�q�S(Nu{0}={1}i(
ttypetdicttcollectionstOrderedDicttitemstformattlisttlentstrt_normalize_options(toptionstktvtdto((s;/usr/lib/python2.7/site-packages/salt/states/mssql_login.pyRs/51cK@s3i|d6id6td6dd6}t|�t|�krRt|d<d|d<|Std|d||�r�d	j|�|d<|Std
r�d|d<dj|�|d<|Std|d
|d|d|dt|�|�}|tk	rt|d<dj||�|d<|Sdj|�|d<d|d|<|S(u�
    Checks existance of the named login.
    If not present, creates the login with the specified roles and options.

    name
        The name of the login to manage
    password
        Creates a SQL Server authentication login
        Since hashed passwords are varbinary values, if the
        new_login_password is 'long', it will be considered
        to be HASHED.
    domain
        Creates a Windows authentication login.
        Needs to be NetBIOS domain or hostname
    server_roles
        Add this login to all the server roles in the list
    options
        Can be a list of strings, a dictionary, or a list of dictionaries
    unameuchangesuresultuucommentu;One and only one of password and domain should be specifiesumssql.login_existstdomainuCLogin {0} is already present (Not going to try to set its password)utestuLogin {0} is set to be addedumssql.login_createtnew_login_passwordtnew_login_domaintnew_login_rolestnew_login_optionsu!Login {0} failed to be added: {1}uLogin {0} has been added. uPresentN(tTruetbooltFalseRR
t__opts__tNoneR(tnametpasswordRtserver_rolesRtkwargstrett
login_created((s;/usr/lib/python2.7/site-packages/salt/states/mssql_login.pytpresent%s8






		
cK@s�i|d6id6td6dd6}td|�sIdj|�|d<|Stdrtd|d<d	j|�|d<|Std
||�r�dj|�|d<d|d|<|St|d<d
j|�|d<|S(ua
    Ensure that the named login is absent

    name
        The name of the login to remove
    unameuchangesuresultuucommentumssql.login_existsuLogin {0} is not presentutestuLogin {0} is set to be removedumssql.login_removeuLogin {0} has been removeduAbsentuLogin {0} failed to be removedN(RRR
RRR(RR!R"((s;/usr/lib/python2.7/site-packages/salt/states/mssql_login.pytabsentZs$




(t__doc__t
__future__RRRRRRRR$R%(((s;/usr/lib/python2.7/site-packages/salt/states/mssql_login.pyt<module>s		5

Zerion Mini Shell 1.0