%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/modules/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/modules/win_shadow.pyc

�
���^c@@sndZddlmZmZmZddlZdZd�Zd�Z	d�Z
d�Zd	�Zd
�Z
dS(u
Manage the shadow file

.. important::
    If you feel that Salt should be using this module to manage passwords on a
    minion, and it is using a different module (or gives an error similar to
    *'shadow.info' is not available*), see :ref:`here
    <module-provider-override>`.
i(tabsolute_importtunicode_literalstprint_functionNushadowcC@s tjjj�rtStdfS(u'
    Only works on Windows systems
    u8Module win_shadow: module only works on Windows systems.(tsalttutilstplatformt
is_windowst__virtualname__tFalse(((s;/usr/lib/python2.7/site-packages/salt/modules/win_shadow.pyt__virtual__scC@s�tdd|�}i|d6dd6dd6dd6dd6dd	6dd
6dd6}|r�i|dd6dd6|d
d6dd6dd6dd	6dd
6|dd6}n|S(u
    Return information for the specified user
    This is just returns dummy data so that salt states can work.

    :param str name: The name of the user account to show.

    CLI Example:

    .. code-block:: bash

        salt '*' shadow.info root
    u	user.infotnameunameuupasswdulstchguminumaxuwarnuinactuexpireuUnavailableupassword_changeduexpiration_date(t__salt__(R
tinfotret((s;/usr/lib/python2.7/site-packages/salt/modules/win_shadow.pyRs&


cC@std|d|�S(uQ
    Set the expiration date for a user account.

    :param name: The name of the user account to edit.

    :param expire: The date the account will expire.

    :return: True if successful. False if unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' shadow.set_expire <username> 2016/7/1
    uuser.updatetexpiration_date(R(R
texpire((s;/usr/lib/python2.7/site-packages/salt/modules/win_shadow.pyt
set_expireCscC@std|dt�S(uM
    Require the user to change their password the next time they log in.

    :param name: The name of the user account to require a password change.

    :return: True if successful. False if unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' shadow.require_password_change <username>
    uuser.updatetexpired(RtTrue(R
((s;/usr/lib/python2.7/site-packages/salt/modules/win_shadow.pytrequire_password_changeWscC@std|dt�S(u
    Unlocks a user account.

    :param name: The name of the user account to unlock.

    :return: True if successful. False if unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' shadow.unlock_account <username>
    uuser.updatetunlock_account(RR(R
((s;/usr/lib/python2.7/site-packages/salt/modules/win_shadow.pyRiscC@stdd|d|�S(u<
    Set the password for a named user.

    :param str name: The name of the user account

    :param str password: The new password

    :return: True if successful. False if unsuccessful.
    :rtype: bool

    CLI Example:

    .. code-block:: bash

        salt '*' shadow.set_password root mysecretpassword
    uuser.updateR
tpassword(R(R
R((s;/usr/lib/python2.7/site-packages/salt/modules/win_shadow.pytset_password{s(t__doc__t
__future__RRRtsalt.utils.platformRRR	RRRRR(((s;/usr/lib/python2.7/site-packages/salt/modules/win_shadow.pyt<module>
s			%			

Zerion Mini Shell 1.0