%PDF- %PDF-
Direktori : /usr/lib/python2.7/site-packages/salt/states/ |
Current File : //usr/lib/python2.7/site-packages/salt/states/mssql_user.pyc |
� ���^c @@ se d Z d d l m Z m Z m Z d d l Z d � Z d � Z d d d d d d � Z d � Z d S( 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 ( t absolute_importt print_functiont unicode_literalsNc C@ s d t k S( 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__ s c C@ s� t | � t t j g k rJ g | j � D] \ } } d j | | � ^ q( St | � t k r� t | � s t | d � t k r� | St | � t k s� t | d � t t j g k r� g Sg | D] } t | � D] } | ^ q� q� S( Nu {0}={1}i ( t typet dictt collectionst OrderedDictt itemst formatt listt lent strt _normalize_options( t optionst kt vt dt o( ( s: /usr/lib/python2.7/site-packages/salt/states/mssql_user.pyR s /51c K@ s@ i | d 6i d 6t d 6d d 6} | rG | rG t | d <d | d <| St d | d | d | | �r} d j | � | d <| St d r� d | d <d j | � | d <| St d | d | d | d | d | d t | � | �} | t k rt | d <| d c d j | | � 7<| S| d c d j | � 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 u nameu changesu resultu u commentu"