Hello community,
here is the log from the commit of package yast2-users
checked in at Tue Mar 27 01:50:00 CEST 2007.
--------
--- yast2-users/yast2-users.changes 2007-03-12 13:38:01.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-users/yast2-users.changes 2007-03-26 13:02:04.956201000 +0200
@@ -1,0 +2,8 @@
+Mon Mar 26 11:33:09 CEST 2007 - jsuchome@suse.cz
+
+- correctly read minimal password length, if set to 0 (#257075)
+- do not throw away possible LDAP error message (UsersLDAP.pm)
+- during firstboot, show the same behaviour as in 2nd stage
+- 2.15.18
+
+-------------------------------------------------------------------
Old:
----
yast2-users-2.15.17.tar.bz2
New:
----
yast2-users-2.15.18.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-users.spec ++++++
--- /var/tmp/diff_new_pack.P27744/_old 2007-03-27 01:49:45.000000000 +0200
+++ /var/tmp/diff_new_pack.P27744/_new 2007-03-27 01:49:45.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-users (Version 2.15.17)
+# spec file for package yast2-users (Version 2.15.18)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,12 +11,12 @@
# norootforbuild
Name: yast2-users
-Version: 2.15.17
+Version: 2.15.18
Release: 1
License: GNU General Public License (GPL)
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-users-2.15.17.tar.bz2
+Source0: yast2-users-2.15.18.tar.bz2
prefix: /usr
BuildRequires: cracklib-devel doxygen gcc-c++ perl-Digest-SHA1 perl-XML-Writer update-desktop-files yast2 yast2-core-devel yast2-devtools yast2-ldap-client yast2-mail-aliases yast2-perl-bindings yast2-security yast2-testsuite
Requires: yast2 yast2-perl-bindings yast2-country yast2-pam yast2-security yast2-mail-aliases cracklib perl-Digest-SHA1 perl-X500-DN perl-gettext yast2-ldap-client
@@ -42,7 +42,7 @@
Jiri Suchomel
%prep
-%setup -n yast2-users-2.15.17
+%setup -n yast2-users-2.15.18
%build
%{prefix}/bin/y2tool y2autoconf
@@ -86,6 +86,11 @@
%doc %{prefix}/share/doc/packages/yast2-users
%changelog
+* Mon Mar 26 2007 - jsuchome@suse.cz
+- correctly read minimal password length, if set to 0 (#257075)
+- do not throw away possible LDAP error message (UsersLDAP.pm)
+- during firstboot, show the same behaviour as in 2nd stage
+- 2.15.18
* Mon Mar 12 2007 - jsuchome@suse.cz
- call cryptconfig again when home directory was renamed (#252325)
- 2.15.17
++++++ yast2-users-2.15.17.tar.bz2 -> yast2-users-2.15.18.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.15.17/src/dialogs.ycp new/yast2-users-2.15.18/src/dialogs.ycp
--- old/yast2-users-2.15.17/src/dialogs.ycp 2007-03-08 18:20:45.000000000 +0100
+++ new/yast2-users-2.15.18/src/dialogs.ycp 2007-03-26 11:32:57.000000000 +0200
@@ -5,7 +5,7 @@
* Authors: Johannes Buchhold ,
* Jiri Suchomel
*
- * $Id: dialogs.ycp 36578 2007-02-28 13:39:16Z jsuchome $
+ * $Id: dialogs.ycp 36881 2007-03-12 12:38:21Z jsuchome $
*/
{
@@ -37,6 +37,14 @@
string default_pw = "******";
+// check if this is installation stage -
+// adding user during firstboot should be same as during 2nd stage
+define boolean installation () {
+ return Stage::cont () || Stage::firstboot ();
+}
+
+
+
/**
* Upperase letters were used in username! (see bug #26409)
* In these popup, ask user what to do.
@@ -138,8 +146,7 @@
define symbol EditUserDialog (string what) {
// user has returned to the "add user dialog" during installation workflow:
- if (Users::StartDialog ("user_add") &&
- Stage::cont () && Users::UseNextTime ())
+ if (Users::StartDialog ("user_add") && installation () && Users::UseNextTime ())
{
Users::RestoreCurrentUser ();
Users::SetUseNextTime (false);
@@ -222,7 +229,7 @@
((user_type == "ldap" && Ldap::file_server) ||
(user_type == "local" || user_type == "system"));
- boolean complex_layout = Stage::cont () && Users::StartDialog ("user_add");
+ boolean complex_layout = installation () && Users::StartDialog ("user_add");
map groups = user["grouplist"]:$[];
list available_shells = Users::AllShells ();
@@ -360,7 +367,7 @@
`HStretch()
);
}
- else if (!do_not_edit && !Stage::cont ())
+ else if (!do_not_edit && !installation ())
{
optionbox = `VBox (
`VSpacing (1),
@@ -1084,7 +1091,7 @@
}
}
// --------------------------------- autologin (during installation)
- if (Users::StartDialog ("user_add") && Stage::cont ())
+ if (Users::StartDialog ("user_add") && installation ())
{
Users::SetRootMail ((boolean)
UI::QueryWidget(`id (`root_mail), `Value) ? username : "");
@@ -1478,7 +1485,7 @@
if (ret == `edit)
{
Wizard::SetHelpText (
- EditUserDialogHelp (Stage::cont (), user_type, what));
+ EditUserDialogHelp (installation (), user_type, what));
UI::ReplaceWidget(`tabContents, get_edit_term ());
// update the contets of User Data Dialog
@@ -2664,7 +2671,7 @@
boolean changed = false;
list param = [];
- if (Stage::cont ())
+ if (installation ())
{
param = [ "from_users" ];
}
@@ -2731,7 +2738,7 @@
Users::CommitUser ();
// adding only one user during install
- if (Stage::cont () && Users::StartDialog ("user_add") )
+ if (installation () && Users::StartDialog ("user_add") )
return `save;
else
return `next;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.15.17/src/UsersLDAP.pm new/yast2-users-2.15.18/src/UsersLDAP.pm
--- old/yast2-users-2.15.17/src/UsersLDAP.pm 2007-01-30 16:08:34.000000000 +0100
+++ new/yast2-users-2.15.18/src/UsersLDAP.pm 2007-03-14 14:10:28.000000000 +0100
@@ -1460,7 +1460,8 @@
);
$modules{$user_config_dn}{"susenextuniqueid"} =
$user_config{"susenextuniqueid"};
- %ret = %{Ldap->WriteToLDAP (\%modules)};
+ my %new_ret = %{Ldap->WriteToLDAP (\%modules)};
+ %ret = %new_ret if not defined $ret{"msg"};
}
if (defined $ret{"msg"}) {
my $msg = $ret{"msg"};
@@ -1753,7 +1754,8 @@
);
$modules{$group_config_dn}{"susenextuniqueid"} =
$group_config{"susenextuniqueid"};
- %ret = %{Ldap->WriteToLDAP (\%modules)};
+ my %new_ret = %{Ldap->WriteToLDAP (\%modules)};
+ %ret = %new_ret if not defined $ret{"msg"};
}
if (defined $ret{"msg"}) {
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.15.17/src/Users.pm new/yast2-users-2.15.18/src/Users.pm
--- old/yast2-users-2.15.17/src/Users.pm 2007-02-22 10:07:20.000000000 +0100
+++ new/yast2-users-2.15.18/src/Users.pm 2007-03-26 11:03:37.000000000 +0200
@@ -1302,8 +1302,10 @@
$use_cracklib = ($security{"PASSWD_USE_CRACKLIB"} eq "yes");
$obscure_checks = ($security{"OBSCURE_CHECKS_ENAB"} eq "yes");
- $min_pass_length{"local"} = $security{"PASS_MIN_LEN"} || $min_pass_length{"local"};
- $min_pass_length{"system"} = $security{"PASS_MIN_LEN"} || $min_pass_length{"system"};
+ if (defined $security{"PASS_MIN_LEN"}) {
+ $min_pass_length{"local"} = $security{"PASS_MIN_LEN"};
+ $min_pass_length{"system"} = $security{"PASS_MIN_LEN"};
+ }
my $login_defs = SCR->Dir (".etc.login_defs");
if (contains ($login_defs, "CHARACTER_CLASS")) {
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.15.17/VERSION new/yast2-users-2.15.18/VERSION
--- old/yast2-users-2.15.17/VERSION 2007-03-12 11:50:18.000000000 +0100
+++ new/yast2-users-2.15.18/VERSION 2007-03-26 11:35:31.000000000 +0200
@@ -1 +1 @@
-2.15.17
+2.15.18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org