Hello community,
here is the log from the commit of package yast2-users
checked in at Fri May 23 17:15:43 CEST 2008.
--------
--- yast2-users/yast2-users.changes 2008-05-21 14:37:44.000000000 +0200
+++ /mounts/work_src_done/STABLE/yast2-users/yast2-users.changes 2008-05-23 16:32:00.078387000 +0200
@@ -1,0 +2,8 @@
+Fri May 23 15:51:33 CEST 2008 - jsuchome@suse.cz
+
+- enable auth and user clients in 2nd stage when necessary
+- ask for confirmation when 1st user creation is skipped
+ (bnc#393722)
+- 2.16.33
+
+-------------------------------------------------------------------
Old:
----
yast2-users-2.16.32.tar.bz2
New:
----
yast2-users-2.16.33.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-users.spec ++++++
--- /var/tmp/diff_new_pack.y14387/_old 2008-05-23 17:15:32.000000000 +0200
+++ /var/tmp/diff_new_pack.y14387/_new 2008-05-23 17:15:32.000000000 +0200
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-users (Version 2.16.32)
+# spec file for package yast2-users (Version 2.16.33)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -12,12 +12,12 @@
Name: yast2-users
-Version: 2.16.32
+Version: 2.16.33
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-users-2.16.32.tar.bz2
+Source0: yast2-users-2.16.33.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-perl-bindings yast2-security yast2-testsuite
Requires: yast2-perl-bindings yast2-country yast2-pam yast2-security cracklib perl-Digest-SHA1 perl-X500-DN perl-gettext
@@ -46,7 +46,7 @@
Jiri Suchomel
%prep
-%setup -n yast2-users-2.16.32
+%setup -n yast2-users-2.16.33
%build
%{prefix}/bin/y2tool y2autoconf
@@ -89,6 +89,11 @@
%{_libdir}/YaST2/plugin/libpy2ag_crack.la
%doc %{prefix}/share/doc/packages/yast2-users
%changelog
+* Fri May 23 2008 jsuchome@suse.cz
+- enable auth and user clients in 2nd stage when necessary
+- ask for confirmation when 1st user creation is skipped
+ (bnc#393722)
+- 2.16.33
* Wed May 21 2008 jsuchome@suse.cz
- install architecture dependent cryptconfig (bnc#392028)
- 2.16.32
++++++ yast2-users-2.16.32.tar.bz2 -> yast2-users-2.16.33.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.32/src/inst_user_first.ycp new/yast2-users-2.16.33/src/inst_user_first.ycp
--- old/yast2-users-2.16.32/src/inst_user_first.ycp 2008-05-20 10:43:44.000000000 +0200
+++ new/yast2-users-2.16.33/src/inst_user_first.ycp 2008-05-23 08:56:41.000000000 +0200
@@ -15,6 +15,7 @@
import "Popup";
import "Stage";
import "Package";
+ import "ProductControl";
import "ProductFeatures";
import "Progress";
import "Report";
@@ -625,10 +626,27 @@
map ui_map = $[];
// --------------------------------- username checks
username = (string) UI::QueryWidget (`id (`username), `Value);
- if (username == "" || auth_method != "users" || to_import != [])
+ if (auth_method != "users" || to_import != [])
{
break;
}
+ if (username == "")
+ {
+ // when 2nd stage is enabled, there will be inst_auth anyway
+ if (ProductControl::GetUseAutomaticConfiguration () == false ||
+ // yes-no popup headline
+ Popup::YesNoHeadline(_("Empty User Login"),
+ // yes-no popup contents
+ _("Leaving the user name empty only makes sense
+in a network environment with an authentication server.
+Leave it empty?")))
+ {
+ break;
+ }
+ else
+ continue;
+ }
+
error = UsersSimple::CheckUsernameLength (username);
if (error != "")
{
@@ -740,7 +758,6 @@
map u = imported_users[name]:$[];
u["__imported"] = true;
create_users = add (create_users, u);
-// FIXME encrypted
});
UsersSimple::SetUsers (create_users);
UsersSimple::SkipRootPasswordDialog (false);
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.32/src/UsersSimple.pm new/yast2-users-2.16.33/src/UsersSimple.pm
--- old/yast2-users-2.16.32/src/UsersSimple.pm 2008-05-20 09:37:31.000000000 +0200
+++ new/yast2-users-2.16.33/src/UsersSimple.pm 2008-05-23 12:04:48.000000000 +0200
@@ -901,10 +901,16 @@
y2milestone ("enabling step 'root' for second stage");
ProductControl->EnableModule ("root");
}
+ # enable inst_user to either run auth client or write first user
if ($after_auth ne "users" || $user_defined) {
y2milestone ("enabling step 'user' for second stage");
ProductControl->EnableModule ("user");
-# FIXME also when e.g. only encryption was modified
+ }
+ # no user entered + 2nd stage visible => enable clients (bnc#393722)
+ elsif (!ProductControl->GetUseAutomaticConfiguration ()) {
+ y2milestone ("enabling steps 'auth' and 'user' for second stage");
+ ProductControl->EnableModule ("auth");
+ ProductControl->EnableModule ("user");
}
return $ret;
@@ -934,8 +940,7 @@
$root_password_written = bool ($data->{"root_password_written"});
$ret = 1;
}
-# SCR->Execute (".target.remove", $file); FIXME not removed due to testing
- SCR->Execute (".target.bash", "mv $file $file.bak");
+ SCR->Execute (".target.remove", $file);
}
return bool ($ret);
}
@@ -1030,7 +1035,6 @@
}
my $user_type = "local";
-# my %grouplist = (); FIXME read group list?
if (($uid <= $max_system_uid) || ($username eq "nobody")) {
$user_type = "system";
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.32/VERSION new/yast2-users-2.16.33/VERSION
--- old/yast2-users-2.16.32/VERSION 2008-05-21 14:27:43.000000000 +0200
+++ new/yast2-users-2.16.33/VERSION 2008-05-23 16:14:39.000000000 +0200
@@ -1 +1 @@
-2.16.32
+2.16.33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org