Author: jsuchome Date: Mon Aug 4 08:31:03 2008 New Revision: 49613 URL: http://svn.opensuse.org/viewcvs/yast?rev=49613&view=rev Log: - checkbox to force a change of password (bnc#368613) - 2.17.3 Modified: trunk/users/VERSION trunk/users/package/yast2-users.changes trunk/users/src/dialogs.ycp trunk/users/src/helps.ycp trunk/users/yast2-users.spec.in Modified: trunk/users/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/VERSION?rev=49613&r1=49612&r2=49613&view=diff ============================================================================== --- trunk/users/VERSION (original) +++ trunk/users/VERSION Mon Aug 4 08:31:03 2008 @@ -1 +1 @@ -2.17.2 +2.17.3 Modified: trunk/users/package/yast2-users.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/package/yast2-users.changes?rev=49613&r1=49612&r2=49613&view=diff ============================================================================== --- trunk/users/package/yast2-users.changes (original) +++ trunk/users/package/yast2-users.changes Mon Aug 4 08:31:03 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Jul 24 15:42:24 CEST 2008 - jsuchome@suse.cz + +- checkbox to force a change of password (bnc#368613) +- 2.17.3 + +------------------------------------------------------------------- Mon Jul 21 14:13:56 CEST 2008 - jsuchome@suse.cz - do not lowecase LDAP object names (fate#303596): Modified: trunk/users/src/dialogs.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/src/dialogs.ycp?rev=49613&r1=49612&r2=49613&view=diff ============================================================================== --- trunk/users/src/dialogs.ycp (original) +++ trunk/users/src/dialogs.ycp Mon Aug 4 08:31:03 2008 @@ -622,6 +622,7 @@ define term get_password_term () { string last_change = GetString (user["shadowLastChange"]:nil, "0"); + string last_change_label= ""; string expires = GetString (user["shadowExpire"]:nil, "0"); if (expires == "") expires = "0"; @@ -635,12 +636,12 @@ { map out = (map)SCR::Execute (.target.bash_output, sformat ("date --date='1970-01-01 00:00:01 %1 days' +\"%%x\"", last_change)); // label (date of last password change) - last_change = out["stdout"]:_("Unknown"); + last_change_label = out["stdout"]:_("Unknown"); } else { // label (date of last password change) - last_change = _("Never"); + last_change_label = _("Never"); } if (expires != "0" && expires != "-1" && expires != "") { @@ -656,7 +657,13 @@ `HSquash(`VBox( `Left (`Label (sformat ( // label - _("Last Password Change: %1"), last_change ))), + _("Last Password Change: %1"), last_change_label ))), + `VSpacing (0.2), + `Left ( + // check box label + `CheckBox (`id (`force_pw), _("Force Password Change"), + last_change == "0") + ), `VSpacing (1), `IntField (`id ("shadowWarning"), // intfield label @@ -1480,6 +1487,11 @@ } } } + if (UI::QueryWidget (`id (`force_pw), `Value) == true) + { + // force password change + user["shadowLastChange"] = "0"; + } } // inside plugins dialog @@ -1668,6 +1680,11 @@ if (ret == `passwordsettings) { UI::ReplaceWidget(`tabContents, get_password_term ()); + if (GetString (user["shadowLastChange"]:nil, "0") == "0") + { + // forcing password change cannot be undone + UI::ChangeWidget (`id (`force_pw), `Enabled, false); + } Wizard::SetHelpText (EditUserPasswordDialogHelp()); current = ret; } Modified: trunk/users/src/helps.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/src/helps.ycp?rev=49613&r1=49612&r2=49613&view=diff ============================================================================== --- trunk/users/src/helps.ycp (original) +++ trunk/users/src/helps.ycp Mon Aug 4 08:31:03 2008 @@ -470,8 +470,11 @@ * @return string help text */ define string EditUserPasswordDialogHelp() ``{ -// Help text 1/5 - return _("<p> + // Help text 1/6 + return _("<p>Activate <b>Force Password Change</b> to force user to change the password at the next login. If <b>Last Password Change</b> is set to <i>Never</i>, user will be forced to change the password.</p>") + + +// Help text 2/6 +_("<p> <b>Days before Password Expiration to Issue Warning</B><BR> Users can be warned before their passwords expire. Set how long before expiration the warning should be issued. Set -1 to disable @@ -479,24 +482,24 @@ </p> ") + -// Help text 2/5 +// Help text 3/6 _("<P><B>Days after Password Expires with Usable Login</B><BR> Users can log in after their passwords have expired. Set how many days to allow login. Use -1 for unlimited access. </P> ") + -//Help text 3/5 +//Help text 4/6 _("<P><B>Maximum Number of Days for the Same Password</B><BR>Set how many days a user can use the same password before it expires.</P> ") + -// Help text 4/5 +// Help text 5/6 _("<P><B>Minimum Number of Days for the Same Password</B><BR>Set the minimum age of a password before a user is allowed to change it.</P> ") + -// Help text 5/5 : Don't reorder letters YYYY-MM-DD, date must be set in this format +// Help text 6/6 : Don't reorder letters YYYY-MM-DD, date must be set in this format _("<P><B>Expiration Date</B><BR>Set the date when this account expires. The date must be in the format YYYY-MM-DD. Leave it empty if this account never expires.</P> Modified: trunk/users/yast2-users.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/yast2-users.spec.in?rev=49613&r1=49612&r2=49613&view=diff ============================================================================== --- trunk/users/yast2-users.spec.in (original) +++ trunk/users/yast2-users.spec.in Mon Aug 4 08:31:03 2008 @@ -7,8 +7,8 @@ Obsoletes: yast2-config-users y2c_users yast2-trans-users y2t_users yast2-trans-inst-user yast2-trans-users y2t_inst-user Provides: yast2-config-users y2c_users yast2-trans-users y2t_users yast2-trans-inst-user yast2-trans-users y2t_inst-user -# LDAPInitWithTLSCheck -Requires: yast2-ldap-client >= 2.15.8 +# this forces using yast2-ldap with orrect LDAP object names (fate#303596) +Requires: yast2-ldap-client >= 2.17.1 # new ag_anyxml Requires: yast2 >= 2.16.40 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org