%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //usr/lib/python2.7/site-packages/salt/states/mssql_user.pyc

�
���^c@@sedZddlmZmZmZddlZd�Zd�Zdddddd�Z	d�Z
dS(u�
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
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_user.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_user.pyRs/51c	K@s@i|d6id6td6dd6}|rG|rGt|d<d|d<|Std|d|d	||�r}d
j|�|d<|Stdr�d|d<dj|�|d<|Std
|d|d|d	|d|dt|�|�}|tk	rt|d<|dcdj||�7<|S|dcdj|�7<d|d|<|S(u%
    Checks existance 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
    unameuchangesuresultuucommentu"domain cannot be set without loginumssql.user_existstdomaintdatabaseuJUser {0} is already present (Not going to try to set its roles or options)utestuUser {0} is set to be addedumssql.user_createtlogintrolesRu User {0} failed to be added: {1}uUser {0} has been addeduPresentN(tTruetFalseRR
t__opts__tNoneR(	tnameRRRRRtkwargstrettuser_created((s:/usr/lib/python2.7/site-packages/salt/states/mssql_user.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(uc
    Ensure that the named user is absent

    name
        The username of the user to remove
    unameuchangesuresultuucommentumssql.user_existsuUser {0} is not presentutestuUser {0} is set to be removedumssql.user_removeuUser {0} has been removeduAbsentuUser {0} failed to be removedN(RRR
RRR(RRR((s:/usr/lib/python2.7/site-packages/salt/states/mssql_user.pytabsentXs$




(t__doc__t
__future__RRRRRRRR R!(((s:/usr/lib/python2.7/site-packages/salt/states/mssql_user.pyt<module>s		3

Zerion Mini Shell 1.0