Ńň
Ă#xPc @ sŕ d d k l Z l Z l Z d d k l Z d d k l Z l Z d d k l Z d d k l Z d d k l
Z
l Z l Z d d k
l Z d d k l Z e d Z d
Z d Z d e f d
YZ e i e d S( i˙˙˙˙( t apit errorst util( t Command( t Strt Password( t _( t output( t split_principalt validate_principalt normalize_principal( t context( t DNsô
Set a user's password
If someone other than a user changes that user's password (e.g., Helpdesk
resets it) then the password will need to be changed the first time it
is used. This is so the end-user is the only one who knows the password.
The IPA password policy controls how often a password may be changed,
what strength requirements exist, and the length of the password history.
EXAMPLES:
To reset your own password:
ipa passwd
To change another user's password:
ipa passwd tuser1
u" CHANGING_PASSWORD_FOR_ANOTHER_USERc C s, t i } | t | j o d St Sd S( sŞ
If the user is changing their own password then return None so the
current password is prompted for, otherwise return a fixed value to
be ignored later.
N( R t get_current_principalR
t Nonet MAGIC_VALUE( t principalt current_principal( ( s9 /usr/lib/python2.6/site-packages/ipalib/plugins/passwd.pyt get_current_password4 s t passwdc B sš e Z e d Z e d e d d d e d d e d e d d d
d e d d e d
e d d e d d e d d d e d d f Z e
i Z e d Z
d Z RS( s Set a user's password.R t cli_namet usert labels User namet primary_keyt autofillt default_fromc C s
t i S( ( R R
( ( ( s9 /usr/lib/python2.6/site-packages/ipalib/plugins/passwd.pyt