Author: jsuchome Date: Thu Apr 7 14:26:08 2011 New Revision: 63738 URL: http://svn.opensuse.org/viewcvs/yast?rev=63738&view=rev Log: (ported from trunk) - added support for SHA-2 based crypto methods (fate309705) - 2.17.45 Modified: branches/SuSE-Code-11-SP2-Branch/users/VERSION branches/SuSE-Code-11-SP2-Branch/users/package/yast2-users.changes branches/SuSE-Code-11-SP2-Branch/users/src/UsersSimple.pm branches/SuSE-Code-11-SP2-Branch/users/src/UsersUI.ycp branches/SuSE-Code-11-SP2-Branch/users/src/inst_user_first.ycp branches/SuSE-Code-11-SP2-Branch/users/src/users_proposal.ycp branches/SuSE-Code-11-SP2-Branch/users/src/widgets.ycp branches/SuSE-Code-11-SP2-Branch/users/yast2-users.spec.in Modified: branches/SuSE-Code-11-SP2-Branch/users/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/users/VERSION?rev=63738&r1=63737&r2=63738&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/users/VERSION (original) +++ branches/SuSE-Code-11-SP2-Branch/users/VERSION Thu Apr 7 14:26:08 2011 @@ -1 +1 @@ -2.17.44 +2.17.45 Modified: branches/SuSE-Code-11-SP2-Branch/users/package/yast2-users.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/users/package/yast2-users.changes?rev=63738&r1=63737&r2=63738&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/users/package/yast2-users.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/users/package/yast2-users.changes Thu Apr 7 14:26:08 2011 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Apr 7 14:16:24 CEST 2011 - jsuchome@suse.cz + +- added support for SHA-2 based crypto methods (fate309705) +- 2.17.45 + +------------------------------------------------------------------- Fri Dec 3 10:03:09 CET 2010 - jsuchome@suse.cz - YaPI: user_attributes also for system users (bnc#638907) Modified: branches/SuSE-Code-11-SP2-Branch/users/src/UsersSimple.pm URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/users/src/UsersSimple.pm?rev=63738&r1=63737&r2=63738&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/users/src/UsersSimple.pm (original) +++ branches/SuSE-Code-11-SP2-Branch/users/src/UsersSimple.pm Thu Apr 7 14:26:08 2011 @@ -70,6 +70,8 @@ "des" => 8, "md5" => 127, "blowfish" => 72, + "sha256" => 127, # arbitrary high number, there's probably no limit + "sha512" => 127 ); # name of user that should be logged in automatically Modified: branches/SuSE-Code-11-SP2-Branch/users/src/UsersUI.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/users/src/UsersUI.ycp?rev=63738&r1=63737&r2=63738&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/users/src/UsersUI.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/users/src/UsersUI.ycp Thu Apr 7 14:26:08 2011 @@ -401,6 +401,10 @@ return cryptmd5 (pw); if (method == "blowfish") return cryptblowfish (pw); + if (method == "sha256") + return cryptsha256 (pw); + if (method == "sha512") + return cryptsha512 (pw); return crypt (pw); } Modified: branches/SuSE-Code-11-SP2-Branch/users/src/inst_user_first.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/users/src/inst_user_first.ycp?rev=63738&r1=63737&r2=63738&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/users/src/inst_user_first.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/users/src/inst_user_first.ycp Thu Apr 7 14:26:08 2011 @@ -121,6 +121,10 @@ "md5" : _("MD5"), // encryption type "blowfish" : _("Blowfish"), + // encryption type + "sha256" : _("SHA-256"), + // encryption type + "sha512" : _("SHA-512"), ]; term import_checkbox = `Left (`CheckBox (`id (`import_ch), // check box label @@ -183,6 +187,10 @@ `Left (`RadioButton (`id ("md5"), _("&MD5"))), // Radio button label: password encryption type `Left (`RadioButton (`id ("blowfish"), _("&Blowfish"))), + // Radio button label: password encryption type + `Left (`RadioButton (`id ("sha256"), _("SHA-&256"))), + // Radio button label: password encryption type + `Left (`RadioButton (`id ("sha512"), _("SHA-&512"))), `VSpacing (0.5) )) ); @@ -223,6 +231,7 @@ to encrypt passwords. </P>"); + // help text for main add user dialog string main_help () { // help text for main add user dialog Modified: branches/SuSE-Code-11-SP2-Branch/users/src/users_proposal.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/users/src/users_proposal.ycp?rev=63738&r1=63737&r2=63738&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/users/src/users_proposal.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/users/src/users_proposal.ycp Thu Apr 7 14:26:08 2011 @@ -34,6 +34,10 @@ "md5" : _("MD5"), // encryption type "blowfish" : _("Blowfish"), + // encryption type + "sha256" : _("SHA-256"), + // encryption type + "sha512" : _("SHA-512"), ]; Modified: branches/SuSE-Code-11-SP2-Branch/users/src/widgets.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/users/src/widgets.ycp?rev=63738&r1=63737&r2=63738&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/users/src/widgets.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/users/src/widgets.ycp Thu Apr 7 14:26:08 2011 @@ -172,20 +172,25 @@ `VSpacing( 0.7 ), `HBox( `HSpacing( 2 ), - `RadioButtonGroup( // frame label - `Frame( _("Encryption Type"), + `RadioButtonGroup(`id (`methods), `Frame( _("Encryption Type"), `VBox( `VSpacing( 0.5 ), // Radio buttons for password encryption: DES-crypt - `Left(`RadioButton(`id(`des), _("&DES (Linux default)"), + `Left(`RadioButton(`id("des"), _("&DES (Linux default)"), method == "des" ) ), // Radio buttons for password encryption: MD5-crypt - `Left(`RadioButton(`id(`md5), _("&MD5"), + `Left(`RadioButton(`id("md5"), _("&MD5"), method == "md5" ) ), // Radio buttons for password encryption: blowfish-crypt - `Left(`RadioButton(`id(`blowfish), _("&Blowfish"), - method == "blowfish" ) ) + `Left(`RadioButton(`id("blowfish"), _("&Blowfish"), + method == "blowfish" ) ), + // Radio buttons for password encryption: sha256 crypt + `Left(`RadioButton(`id("sha256"), _("SHA-&256"), + method == "sha256" ) ), + // Radio buttons for password encryption: sha512 crypt + `Left(`RadioButton(`id("sha512"), _("SHA-&512"), + method == "sha512" ) ) ) )), `HSpacing( 2 ) @@ -217,12 +222,7 @@ } else if ( button == `ok ) { - if ( (boolean) UI::QueryWidget( `id(`des), `Value ) ) - method = "des"; - else if ( (boolean) UI::QueryWidget( `id(`md5), `Value ) ) - method = "md5"; - else if ( (boolean) UI::QueryWidget( `id(`blowfish), `Value ) ) - method = "blowfish"; + method = (string) UI::QueryWidget (`id (`methods), `CurrentButton); y2milestone( "Changing encryption method to %1", method ); } } while ( button != `ok && button != `cancel ); Modified: branches/SuSE-Code-11-SP2-Branch/users/yast2-users.spec.in URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/users/yast2-users.spec.in?rev=63738&r1=63737&r2=63738&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/users/yast2-users.spec.in (original) +++ branches/SuSE-Code-11-SP2-Branch/users/yast2-users.spec.in Thu Apr 7 14:26:08 2011 @@ -13,6 +13,9 @@ # InstExtensionImage::LoadExtension Requires: yast2 >= 2.17.17 +# cryptsha256, cryptsha516 +Requires: yast2-core >= 2.17.36 + Summary: Configuration of users and groups %description -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org