Hello community,
here is the log from the commit of package yast2-users
checked in at Wed Mar 19 11:03:44 CET 2008.
--------
--- yast2-users/yast2-users.changes 2008-03-05 15:52:20.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-users/yast2-users.changes 2008-03-19 11:00:52.965159000 +0100
@@ -1,0 +2,22 @@
+Wed Mar 19 10:06:26 CET 2008 - jsuchome@suse.cz
+
+- blowfish is default: adapt maximum password length (bnc#371147),
+ adapted testsuite
+- 2.16.18
+
+-------------------------------------------------------------------
+Wed Mar 19 08:32:17 CET 2008 - jsuchome@suse.cz
+
+- do not show "*****" for empty root password
+- added list of system user names to check user name conflicts
+ during 1st stage of installation
+- updated list of system user names for translation
+- better installation proposal
+- 2.16.17
+
+-------------------------------------------------------------------
+Mon Mar 17 12:43:32 CET 2008 - jsrain@suse.cz
+
+- added 'StartupNotify=true' to the desktop file (bnc #304964)
+
+-------------------------------------------------------------------
Old:
----
yast2-users-2.16.16.tar.bz2
New:
----
yast2-users-2.16.18.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-users.spec ++++++
--- /var/tmp/diff_new_pack.s20640/_old 2008-03-19 11:03:21.000000000 +0100
+++ /var/tmp/diff_new_pack.s20640/_new 2008-03-19 11:03:21.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-users (Version 2.16.16)
+# spec file for package yast2-users (Version 2.16.18)
#
# 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.16
+Version: 2.16.18
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-users-2.16.16.tar.bz2
+Source0: yast2-users-2.16.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-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.16
+%setup -n yast2-users-2.16.18
%build
%{prefix}/bin/y2tool y2autoconf
@@ -89,6 +89,19 @@
%{_libdir}/YaST2/plugin/libpy2ag_crack.la
%doc %{prefix}/share/doc/packages/yast2-users
%changelog
+* Wed Mar 19 2008 jsuchome@suse.cz
+- blowfish is default: adapt maximum password length (bnc#371147),
+ adapted testsuite
+- 2.16.18
+* Wed Mar 19 2008 jsuchome@suse.cz
+- do not show "*****" for empty root password
+- added list of system user names to check user name conflicts
+ during 1st stage of installation
+- updated list of system user names for translation
+- better installation proposal
+- 2.16.17
+* Mon Mar 17 2008 jsrain@suse.cz
+- added 'StartupNotify=true' to the desktop file (bnc #304964)
* Wed Mar 05 2008 jsuchome@suse.cz
- check home directory of first user right before writing
- do not allow decrypting home when user is logged in (bnc#365547),
++++++ yast2-users-2.16.16.tar.bz2 -> yast2-users-2.16.18.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/dialogs.ycp new/yast2-users-2.16.18/src/dialogs.ycp
--- old/yast2-users-2.16.16/src/dialogs.ycp 2008-03-05 12:56:08.000000000 +0100
+++ new/yast2-users-2.16.18/src/dialogs.ycp 2008-03-05 15:52:46.000000000 +0100
@@ -5,7 +5,7 @@
* Authors: Johannes Buchhold ,
* Jiri Suchomel
*
- * $Id: dialogs.ycp 45196 2008-03-05 08:45:33Z jsuchome $
+ * $Id: dialogs.ycp 45217 2008-03-05 14:52:46Z jsuchome $
*/
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/inst_root_first.ycp new/yast2-users-2.16.18/src/inst_root_first.ycp
--- old/yast2-users-2.16.16/src/inst_root_first.ycp 2008-03-05 15:34:11.000000000 +0100
+++ new/yast2-users-2.16.18/src/inst_root_first.ycp 2008-03-19 09:02:05.000000000 +0100
@@ -5,7 +5,7 @@
* Dialog for setting root's password during 1st stage of the installation
* Authors: Jiri Suchomel
*
- * $Id: inst_root_first.ycp 45196 2008-03-05 08:45:33Z jsuchome $
+ * $Id: inst_root_first.ycp 45586 2008-03-19 08:02:05Z jsuchome $
*/
{
textdomain "users";
@@ -34,6 +34,8 @@
string title = _("Password for the System Administrator \"root\"");
string password = UsersSimple::GetRootPassword ();
+ if (password == nil)
+ password = "";
term contents = `VBox (
`VStretch (),
@@ -44,12 +46,12 @@
`Password (`id(`pw1), `opt (`hstretch),
// Label: get password for user root
_("&Password for root User"),
- password == nil ? "" : "*****"),
+ password == "" ? "" : "*****"),
`VSpacing(0.8),
`Password (`id(`pw2), `opt (`hstretch),
// Label: get same password again for verification
_("Con&firm Password"),
- password == nil ? "" : "*****")
+ password == "" ? "" : "*****")
)),
`VStretch ()
);
@@ -143,6 +145,7 @@
if (pw1 == "")
{
y2milestone ("root password setting skipped, will occur later");
+ UsersSimple::SetRootPassword (pw1);
break;
}
string error = UsersSimple::CheckPassword (pw1, "local");
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/inst_root.ycp new/yast2-users-2.16.18/src/inst_root.ycp
--- old/yast2-users-2.16.16/src/inst_root.ycp 2008-03-05 10:25:43.000000000 +0100
+++ new/yast2-users-2.16.18/src/inst_root.ycp 2008-03-05 15:52:46.000000000 +0100
@@ -14,7 +14,7 @@
*
* Authors: Klaus K�mpf
*
- * $Id: inst_root.ycp 44768 2008-02-21 15:35:17Z jsuchome $
+ * $Id: inst_root.ycp 45217 2008-03-05 14:52:46Z jsuchome $
*/
{
textdomain "users";
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/inst_user_first.ycp new/yast2-users-2.16.18/src/inst_user_first.ycp
--- old/yast2-users-2.16.16/src/inst_user_first.ycp 2008-03-05 15:33:21.000000000 +0100
+++ new/yast2-users-2.16.18/src/inst_user_first.ycp 2008-03-19 09:02:05.000000000 +0100
@@ -4,7 +4,7 @@
* Summary: Dialog for creating the first user during installation
* Authors: Jiri Suchomel
*
- * $Id: inst_user_first.ycp 45196 2008-03-05 08:45:33Z jsuchome $
+ * $Id: inst_user_first.ycp 45586 2008-03-19 08:02:05Z jsuchome $
*/
{
import "Arch";
@@ -389,7 +389,14 @@
main_help (),
GetInstArgs::enable_back(), GetInstArgs::enable_next()
);
- UI::SetFocus (`id (`cn));
+ foreach (symbol w, [`cn, `username, `pw1, `pw2, `root_pw, `root_mail,
+ `autologin ], {
+ UI::ChangeWidget (`id (w), `Enabled, auth_method == "users");
+ });
+ if (auth_method == "users")
+ UI::SetFocus (`id (`cn));
+ else
+ UI::SetFocus (`id (`change));
boolean login_modified = false;
symbol ret = `back;
while (true)
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/inst_user.ycp new/yast2-users-2.16.18/src/inst_user.ycp
--- old/yast2-users-2.16.16/src/inst_user.ycp 2008-03-05 13:36:54.000000000 +0100
+++ new/yast2-users-2.16.18/src/inst_user.ycp 2008-03-05 15:52:46.000000000 +0100
@@ -6,7 +6,7 @@
*
* Purpose: Start user management module from within installation workflow
*
- * $Id: inst_user.ycp 45196 2008-03-05 08:45:33Z jsuchome $
+ * $Id: inst_user.ycp 45217 2008-03-05 14:52:46Z jsuchome $
*/
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/Makefile.am new/yast2-users-2.16.18/src/Makefile.am
--- old/yast2-users-2.16.16/src/Makefile.am 2008-03-05 13:37:57.000000000 +0100
+++ new/yast2-users-2.16.18/src/Makefile.am 2008-03-05 15:52:46.000000000 +0100
@@ -1,7 +1,7 @@
#
# Makefile.am for users/src
#
-# $Id: Makefile.am 44765 2008-02-21 15:19:56Z jsuchome $
+# $Id: Makefile.am 45217 2008-03-05 14:52:46Z jsuchome $
#
YCPCFLAGS = -I .
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/Makefile.in new/yast2-users-2.16.18/src/Makefile.in
--- old/yast2-users-2.16.16/src/Makefile.in 2008-03-05 14:03:15.000000000 +0100
+++ new/yast2-users-2.16.18/src/Makefile.in 2008-03-06 14:19:27.000000000 +0100
@@ -17,7 +17,7 @@
#
# Makefile.am for users/src
#
-# $Id: Makefile.am 44765 2008-02-21 15:19:56Z jsuchome $
+# $Id: Makefile.am 45217 2008-03-05 14:52:46Z jsuchome $
#
# Makefile.am.common -*- Makefile -*-
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/routines.ycp new/yast2-users-2.16.18/src/routines.ycp
--- old/yast2-users-2.16.16/src/routines.ycp 2008-03-05 15:44:41.000000000 +0100
+++ new/yast2-users-2.16.18/src/routines.ycp 2008-03-05 15:52:46.000000000 +0100
@@ -4,7 +4,7 @@
* Summary: various routines
* Authors: Jiri Suchomel
*
- * $Id: routines.ycp 43901 2008-01-25 11:20:19Z jsuchome $
+ * $Id: routines.ycp 45217 2008-03-05 14:52:46Z jsuchome $
*
*/
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/Users.pm new/yast2-users-2.16.18/src/Users.pm
--- old/yast2-users-2.16.16/src/Users.pm 2008-03-05 12:54:59.000000000 +0100
+++ new/yast2-users-2.16.18/src/Users.pm 2008-03-19 10:50:30.000000000 +0100
@@ -4,7 +4,7 @@
# Package: Configuration of users and groups
# Summary: I/O routines + main data structures
#
-# $Id: Users.pm 45196 2008-03-05 08:45:33Z jsuchome $
+# $Id: Users.pm 45217 2008-03-05 14:52:46Z jsuchome $
#
package Users;
@@ -1300,6 +1300,7 @@
$groupadd_cmd = SCR->Read (".etc.login_defs.GROUPADD_CMD") || "";
$encryption_method = $security{"PASSWD_ENCRYPTION"} || $encryption_method;
+ UsersSimple->SetEncryptionMethod ($encryption_method);
$group_encryption_method
= $security{"GROUP_ENCRYPTION"} || $encryption_method;
@@ -5549,17 +5550,11 @@
sub SetEncryptionMethod {
my $self = shift;
-
if ($encryption_method ne $_[0]) {
$encryption_method = $_[0];
$security_modified = 1;
- my %max_lengths = %{Security->PasswordMaxLengths ()};
- if (defined $max_lengths{$encryption_method}) {
- my $len = $max_lengths{$encryption_method};
- UsersSimple->SetMaxPasswordLength ("local", $len);
- UsersSimple->SetMaxPasswordLength ("system", $len);
- }
}
+ UsersSimple->SetEncryptionMethod ($_[0]);
}
##------------------------------------
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/users_proposal.ycp new/yast2-users-2.16.18/src/users_proposal.ycp
--- old/yast2-users-2.16.16/src/users_proposal.ycp 2008-03-05 15:40:37.000000000 +0100
+++ new/yast2-users-2.16.18/src/users_proposal.ycp 2008-03-19 09:02:05.000000000 +0100
@@ -3,7 +3,7 @@
* Author: Jiri Suchomel
* Purpose: Proposal for user and root setting
*
- * $Id:$
+ * $Id: users_proposal.ycp 45586 2008-03-19 08:02:05Z jsuchome $
*/
{
textdomain "users";
@@ -16,27 +16,54 @@
map param = (map) WFM::Args(1);
map ret = $[];
+ map auth2label = $[
+ // authentication type
+ "ldap": _("LDAP"),
+ // authentication type
+ "nis": _("NIS"),
+ // authentication type
+ "samba": _("Samba (Windows Domain)"),
+ // authentication type
+ "edir_ldap": _("eDirectory LDAP"),
+ ];
+
if ( func == "MakeProposal" )
{
boolean force_reset = param["force_reset" ]:false;
string root_proposal = UsersSimple::GetRootPassword () != "" ?
// summary label <%1>-<%2> are HTML tags, leave untouched
- sformat (_("<%1>Root Password<%2> is set"),
+ sformat (_("<%1>Root Password<%2> set"),
"a href=\"users--root\"", "/a") :
- sformat (_("<%1>Root Password<%2> is not set"),
+ sformat (_("<%1>Root Password<%2> not set"),
"a href=\"users--root\"", "/a");
- // FIXME
- list<string> proposal = [
- // summary label <%1>-<%2> are HTML tags, leave untouched
- sformat (_("<%1>Authentication<%2>: %3"),
- "a href=\"users--user\"", "/a", UsersSimple::AfterAuth ()
- )
- ];
-
+ string ahref = "a href=\"users--user\"";
+ // summary label <%1>-<%2> are HTML tags, leave untouched
+ string prop = sformat (_("No <%1>user<%2> configured"),ahref, "/a");
+ string auth_method = UsersSimple::AfterAuth ();
+ map user = UsersSimple::GetUser ();
+ if (auth_method != "users")
+ {
+ // summary line: <%1>-<%2> are HTML tags, leave untouched,
+ // % is LDAP/NIS etc.
+ prop = sformat (_("<%1>Authentication method<%2>: %3"),
+ ahref, "/a", auth2label[auth_method]:auth_method);
+ if (UsersSimple::KerberosConfiguration ())
+ // summary line: <%1>-<%2> are HTML tags, leave untouched,
+ // % is LDAP/NIS etc.
+ prop = sformat (_("<%1>Authentication method<%2>: %3 and Kerberos."),
+ ahref, "/a", auth2label[auth_method]:auth_method);
+ }
+ else if (user["uid"]:"" != "")
+ {
+ // summary line: <%1>-<%2> are HTML tags, leave untouched,
+ // %3 is user name
+ prop = sformat (_("<%1>User<%2> %3 configured"),
+ ahref, "/a", user["uid"]:"");
+ }
ret = $[
- "preformatted_proposal" : HTML::List (add (proposal,root_proposal)),
+ "preformatted_proposal" : HTML::List ([ prop, root_proposal ]),
"language_changed" : false,
"links" : [ "users--user", "users--root" ],
];
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/UsersSimple.pm new/yast2-users-2.16.18/src/UsersSimple.pm
--- old/yast2-users-2.16.16/src/UsersSimple.pm 2008-03-05 14:03:03.000000000 +0100
+++ new/yast2-users-2.16.18/src/UsersSimple.pm 2008-03-19 10:51:35.000000000 +0100
@@ -50,7 +50,7 @@
);
my %max_pass_length = (
- "local" => 8,
+ "local" => 72,
"system" => 8,
"ldap" => 8
);
@@ -89,6 +89,86 @@
YaST::YCP::Import ("SCR");
YaST::YCP::Import ("UsersUI");
+# known system users (hard-written here to check user name conflicts)
+# number may mean the UID (but it don't have to be defined)
+my %system_users = (
+ "root" => 0,
+ "bin" => 1,
+ "uucp" => 10,
+ "daemon" => 2,
+ "lp" => 4,
+ "mail" => 8,
+ "news" => 9,
+ "uucp" => 10,
+ "games" => 12,
+ "man" => 13,
+ "at" => 25,
+ "wwwrun" => 30,
+ "ftp" => 40,
+ "named" => 0,
+ "gdm" => 0,
+ "postfix" => 51,
+ "sshd" => 71,
+ "ntp" => 74,
+ "ldap" => 76,
+ "nobody" => 65534,
+ "amanda" => 0,
+ "vscan" => 0,
+ "bigsister" => 0,
+ "wnn" => 0,
+ "cyrus" => 0,
+ "dpbox" => 0,
+ "gnats" => 0,
+ "gnump3d" => 0,
+ "hacluster" => 0,
+ "irc" => 0,
+ "mailman" => 0,
+ "mdom" => 0,
+ "mysql" => 0,
+ "oracle" => 0,
+ "postgres" => 0,
+ "pop" => 0,
+ "sapdb" => 0,
+ "snort" => 0,
+ "squid" => 31,
+ "stunnel" => 0,
+ "zope" => 0,
+ "radiusd" => 0,
+ "otrs" => 0,
+ "privoxy" => 0,
+ "vdr" => 0,
+ "icecream" => 0,
+ "bitlbee" => 0,
+ "dhcpd" => 0,
+ "distcc" => 0,
+ "dovecot" => 0,
+ "fax" => 0,
+ "partimag" => 0,
+ "avahi" => 0,
+ "beagleindex" => 0,
+ "casaauth" => 0,
+ "dvbdaemon" => 0,
+ "festival" => 0,
+ "haldaemon" => 0,
+ "icecast" => 0,
+ "lighttpd" => 0,
+ "nagios" => 0,
+ "pdns" => 0,
+ "polkituser" => 0,
+ "pound" => 0,
+ "pulse" => 0,
+ "quagga" => 0,
+ "sabayon-admin" => 0,
+ "tomcat" => 0,
+ "pegasus" => 0,
+ "cimsrvr" => 0,
+ "ulogd" => 0,
+ "uuidd" => 0,
+ "suse-ncc" => 0,
+ "messagebus" => 0,
+ "nx" => 0
+);
+
# check the boolean value, return 0 or 1
sub bool {
@@ -169,6 +249,7 @@
BEGIN { $TYPEINFO{AutologinUsed} = ["function", "boolean"]; }
sub AutologinUsed {
return bool ($autologin_user ne "");
+# FIXME true for the first time...
}
BEGIN { $TYPEINFO{SetAutologinUser} = ["function", "void", "string"]; }
@@ -358,8 +439,9 @@
sub GetMinPasswordLength {
my $self = shift;
- if (defined ($min_pass_length{$_[0]})) {
- return $min_pass_length{$_[0]};
+ my $type = shift;
+ if (defined $type && defined ($min_pass_length{$type})) {
+ return $min_pass_length{$type};
}
else { return 5;}
}
@@ -508,6 +590,7 @@
my $pw = shift;
my $type = shift;
my $max_length = $self->GetMaxPasswordLength ($type);
+y2internal ("max is $max_length");
my $ret = "";
if (length ($pw) > $max_length) {
@@ -540,7 +623,7 @@
$ret = SCR->Execute (".crack", $pw, $cracklib_dictpath);
}
if (!defined ($ret)) { $ret = ""; }
-
+ return $ret if ($ret eq "");
return UsersUI->RecodeUTF ($ret);
}
@@ -698,6 +781,8 @@
return "";
}
+
+
##------------------------------------
# check given user name for a conflict with a (fixed) set of system users
# @param user name
@@ -707,11 +792,6 @@
my ($self, $username) = @_;
- my %system_users = (
- "root" => 0,
- "bin" => 1,
- "uucp" => 10, #FIXME fill this
- );
if (defined $system_users{$username}) {
# error popup
return __("There is a conflict between the entered
@@ -720,6 +800,13 @@
}
}
+# return the %system_users map = these are NOT the current system users,
+# but the names that could be used for system users by packages
+BEGIN { $TYPEINFO{GetSystemUserNames} = ["function", ["map", "string", "integer"]];}
+sub GetSystemUserNames {
+ return \%system_users;
+}
+
##---------------------------------------------------------------------------
##---------------------------------------------------------------------------
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/UsersUI.ycp new/yast2-users-2.16.18/src/UsersUI.ycp
--- old/yast2-users-2.16.16/src/UsersUI.ycp 2006-09-18 17:53:18.000000000 +0200
+++ new/yast2-users-2.16.18/src/UsersUI.ycp 2008-03-19 09:02:05.000000000 +0100
@@ -4,7 +4,7 @@
* Summary: UI-related routines to be run from perl modules (Users.pm etc.)
* Author: Jiri Suchomel
*
- * $Id: UsersUI.ycp 26218 2005-11-21 15:15:22Z jsuchome $
+ * $Id: UsersUI.ycp 45586 2008-03-19 08:02:05Z jsuchome $
*/
{
module "UsersUI";
@@ -17,8 +17,7 @@
*/
global define string SystemUserName (string name) ``{
-// TODO Fo now (9.0), users are added manualy. For future, scripts which goes
-// through all rpms would be better
+// TODO users are added manualy.... :-(
map SystemUsers = $[
/* User name for user: "root" */
@@ -73,7 +72,7 @@
/* User name for user: "dpbox" */
"DpBox account" : _("DpBox Account"),
/* User name for user: "gnats" */
- "Gnats Gnu Backtracking System" : _("Gnats Gnu Backtracking System"),
+ "GNATS GNU Backtracking System" : _("GNATS GNU Backtracking System"),
/* User name for user: "gnump3d" */
"GNUMP3 daemon" : _("GNUMP3 Daemon"),
/* User name for user: "hacluster" */
@@ -133,6 +132,69 @@
/* User name for user: "partimag" */
"Partimage Daemon User" : _("Partimage Daemon User"),
+ // User name for user: "avahi"
+ "User for Avahi" : _("User for Avahi"),
+
+ // User name for user: "beagleindex"
+ "User for Beagle indexing" : _("User for Beagle indexing"),
+
+ // User name for user: "casaauth"
+ "casa_atvd System User" : _("casa_atvd System User"),
+
+ // User name for user: "dvbdaemon"
+ "User for DVB daemon" : _("User for DVB daemon"),
+
+ // User name for user: "festival"
+ "Festival daemon" : _("Festival daemon"),
+
+ // User name for user: "haldaemon"
+ "User for haldaemon" : _("User for haldaemon"),
+
+ // User name for user: "icecast"
+ "Icecast streaming server" : _("Icecast streaming server"),
+
+ // User name for user: "lighttpd"
+ "user for lighttpd" : _("user for lighttpd"),
+
+ // User name for user: "nagios"
+ "User for Nagios" : _("User for Nagios"),
+
+ // User name for user: "pdns"
+ "pdns" : _("User for PowerDNS"),
+
+ // User name for user: "polkituser"
+ "PolicyKit" : _("PolicyKit"),
+
+ // User name for user: "pound"
+ "Pound" : _("User for Pound"),
+
+ // User name for user: "pulse"
+ "PulseAudio daemon" : _("PulseAudio daemon"),
+
+ // User name for user: "quagga"
+ "Quagga routing daemon" : _("Quagga routing daemon"),
+
+ // User name for user: "sabayon-admin"
+ "Sabayon user" : _("Sabayon user"),
+
+ // User name for user: "tomcat"
+ "Tomcat - Apache Servlet/JSP Engine" : _("Tomcat - Apache Servlet/JSP Engine"),
+
+ // User name for user: "tomcat"
+ "Apache Tomcat" : _("Apache Tomcat"),
+
+ // User name for user: "pegasus"
+ // User name for user: "cimsrvr"
+ "tog-pegasus OpenPegasus WBEM/CIM services" : _("tog-pegasus OpenPegasus WBEM/CIM services"),
+
+ // User name for user: "ulogd"
+ "ulog daemon" : _("ulog daemon"),
+
+ // User name for user: "uuidd"
+ "User for uuidd" : _("User for uuidd"),
+
+ // User name for user: "suse-ncc"
+ "Novell Customer Center User" : _("Novell Customer Center User"),
];
return SystemUsers[name]:name;
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/src/widgets.ycp new/yast2-users-2.16.18/src/widgets.ycp
--- old/yast2-users-2.16.16/src/widgets.ycp 2008-03-05 10:34:14.000000000 +0100
+++ new/yast2-users-2.16.18/src/widgets.ycp 2008-03-05 15:52:46.000000000 +0100
@@ -4,7 +4,7 @@
* Summary: Widgets definitions and helper functions
* Authors: Jiri Suchomel
*
- * $Id: widgets.ycp 44994 2008-02-25 15:31:10Z jsuchome $
+ * $Id: widgets.ycp 45217 2008-03-05 14:52:46Z jsuchome $
*/
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/testsuite/tests/CheckPassword.out new/yast2-users-2.16.18/testsuite/tests/CheckPassword.out
--- old/yast2-users-2.16.16/testsuite/tests/CheckPassword.out 2007-08-22 10:39:33.000000000 +0200
+++ new/yast2-users-2.16.18/testsuite/tests/CheckPassword.out 2008-03-19 10:51:27.000000000 +0100
@@ -1,16 +1,17 @@
-Execute .crack "qqqqq" 0
+Execute .crack "qqqqq" ""
Return $["question":"You have used only lowercase letters for the password.\nThis is not a good security practice. Really use this password?", "question_id":"obscure"]
-Execute .crack "QQQQQ" 0
+Execute .crack "QQQQQ" ""
Return $["question":"You have used only uppercase letters for the password.\nThis is not a good security practice. Really use this password?", "question_id":"obscure"]
-Execute .crack "12hh5" 0
+Execute .crack "12hh5" ""
Return $["question":"You have used the username as a part of the password.\nThis is not a good security practice. Really use this password?", "question_id":"obscure"]
-Execute .crack "12345" 0
+Execute .crack "12345" ""
Return $["question":"You have used only digits for the password.\nThis is not a good security practice. Really use this password?", "question_id":"obscure"]
-Execute .crack "aaaQQaaa" 0
+Execute .crack "aaaQQaaa" ""
Return $["question":"You have used a palindrom for the password.\nThis is not a good security practice. Really use this password?", "question_id":"obscure"]
-Execute .crack "1a" 0
+Execute .crack "1a" ""
Return $["question":"The password should have at least 5 characters.\nReally use this shorter password?", "question_id":"short"]
-Execute .crack "1aaaaaaaaaaaaaaaaa" 0
+Return nil
+Execute .crack "1aaaaaaaaaaaaaaaaa" ""
Return $["question":"The password is too long for the current encryption method.\nTruncate it to 8 characters?", "question_id":"truncate"]
Dump -------- password: `!@#$%^&*()-=_+|
Return
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/testsuite/tests/CheckPassword.ycp new/yast2-users-2.16.18/testsuite/tests/CheckPassword.ycp
--- old/yast2-users-2.16.16/testsuite/tests/CheckPassword.ycp 2007-08-22 10:39:33.000000000 +0200
+++ new/yast2-users-2.16.18/testsuite/tests/CheckPassword.ycp 2008-03-19 10:35:21.000000000 +0100
@@ -4,20 +4,32 @@
* Testing what is allowed for password (see bug #106714)
*/
{
- // testedfiles: Users.pm
+ // testedfiles: Users.pm UsersSimple.pm
import "Testsuite";
import "Users";
- import "UsersCache";
+ import "UsersSimple";
+
+ map R = $[];
+ map W = $[];
+ map E = $[
+ "crack" : "",
+ ];
define void test_ui (string username, string pw) {
- Testsuite::Test (``(Users::CheckPasswordUI (username, pw, $[])), [], 0);
+ Testsuite::Test (``(UsersSimple::CheckPasswordUI ($[
+ "uid" : username,
+ "userpassword" : pw,
+ "type" : "local"
+ ], $[])), [R,W,E], 0);
}
define void test_contents (string pw) {
Testsuite::Dump (sformat ("-------- password: %1", pw));
- string err = (string)Testsuite::Test (``(Users::CheckPassword (pw)), [], 0);
+ string err = (string)
+ Testsuite::Test (``(UsersSimple::CheckPassword (pw, "local")),
+ [R,W,E], 0);
if (err != "")
Testsuite::Dump (sformat ("-------- error: %1", err));
}
@@ -28,6 +40,7 @@
test_ui ("hh", "12345");
test_ui ("hh", "aaaQQaaa");
test_ui ("hh", "1a");
+ Testsuite::Test (``(Users::SetEncryptionMethod ("des")), [], 0);
test_ui ("hh", "1aaaaaaaaaaaaaaaaa");
test_contents ("`!@#$%^&*()-=_+|");
test_contents ("[];',./{}:\"<>");
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.16.16/VERSION new/yast2-users-2.16.18/VERSION
--- old/yast2-users-2.16.16/VERSION 2008-03-05 15:44:19.000000000 +0100
+++ new/yast2-users-2.16.18/VERSION 2008-03-19 10:07:23.000000000 +0100
@@ -1 +1 @@
-2.16.16
+2.16.18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org