Hello community,

here is the log from the commit of package yast2-users for openSUSE:Factory 
checked in at 2014-02-21 13:48:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-users (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-users.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-users"

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-users/yast2-users.changes  2013-12-16 
07:19:56.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.yast2-users.new/yast2-users.changes     
2014-02-21 13:48:02.000000000 +0100
@@ -1,0 +2,44 @@
+Thu Feb 20 10:46:56 CET 2014 - [email protected]
+
+- save Autologin settings at the end of installation (bnc#863436)
+- 3.1.11
+
+-------------------------------------------------------------------
+Tue Feb 18 11:14:05 CET 2014 - [email protected]
+
+- check root's password when it is same as one for 1st user
+  (bnc#864124)
+- 3.1.10
+
+-------------------------------------------------------------------
+Thu Feb 13 11:01:33 UTC 2014 - [email protected]
+
+- BNC#863612 YaST reports Cannot find client ldap/routines.rb 
+- 3.1.9
+
+-------------------------------------------------------------------
+Wed Feb 12 11:53:03 UTC 2014 - [email protected]
+
+- fix namespace collision leading to error message in installation
+- 3.1.8
+
+-------------------------------------------------------------------
+Fri Feb  7 17:06:47 UTC 2014 - [email protected]
+
+- support minimal installation(FATE#313149)
+- 3.1.7
+
+-------------------------------------------------------------------
+Fri Feb  7 12:59:26 UTC 2014 - [email protected]
+
+- format spec file
+- versioned build requires of yast2-ldap as it is used in testsuite
+- 3.1.6
+
+-------------------------------------------------------------------
+Fri Jan 31 09:14:15 UTC 2014 - [email protected]
+
+- Change requirement from yast2-ldap-client to yast2-ldap
+- 3.1.5
+
+-------------------------------------------------------------------

Old:
----
  yast2-users-3.1.4.tar.bz2

New:
----
  yast2-users-3.1.11.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-users.spec ++++++
--- /var/tmp/diff_new_pack.aJ7Tut/_old  2014-02-21 13:48:04.000000000 +0100
+++ /var/tmp/diff_new_pack.aJ7Tut/_new  2014-02-21 13:48:04.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-users
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-users
-Version:        3.1.4
+Version:        3.1.11
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -33,7 +33,7 @@
 BuildRequires:  yast2
 BuildRequires:  yast2-core-devel
 BuildRequires:  yast2-devtools >= 3.1.10
-BuildRequires:  yast2-ldap-client
+BuildRequires:  yast2-ldap >= 3.1.2
 BuildRequires:  yast2-perl-bindings
 BuildRequires:  yast2-security
 BuildRequires:  yast2-testsuite
@@ -62,7 +62,7 @@
 Requires:       yast2-perl-bindings >= 2.18.0
 
 # this forces using yast2-ldap with orrect LDAP object names (fate#303596)
-Requires:       yast2-ldap-client >= 2.17.1
+Requires:       yast2-ldap >= 3.1.2
 
 # Syslog.ycp
 Requires:       yast2 >= 2.23.7

++++++ yast2-users-3.1.4.tar.bz2 -> yast2-users-3.1.11.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-3.1.4/package/yast2-users.changes 
new/yast2-users-3.1.11/package/yast2-users.changes
--- old/yast2-users-3.1.4/package/yast2-users.changes   2013-12-13 
10:47:56.000000000 +0100
+++ new/yast2-users-3.1.11/package/yast2-users.changes  2014-02-21 
10:18:49.000000000 +0100
@@ -1,4 +1,48 @@
 -------------------------------------------------------------------
+Thu Feb 20 10:46:56 CET 2014 - [email protected]
+
+- save Autologin settings at the end of installation (bnc#863436)
+- 3.1.11
+
+-------------------------------------------------------------------
+Tue Feb 18 11:14:05 CET 2014 - [email protected]
+
+- check root's password when it is same as one for 1st user
+  (bnc#864124)
+- 3.1.10
+
+-------------------------------------------------------------------
+Thu Feb 13 11:01:33 UTC 2014 - [email protected]
+
+- BNC#863612 YaST reports Cannot find client ldap/routines.rb 
+- 3.1.9
+
+-------------------------------------------------------------------
+Wed Feb 12 11:53:03 UTC 2014 - [email protected]
+
+- fix namespace collision leading to error message in installation
+- 3.1.8
+
+-------------------------------------------------------------------
+Fri Feb  7 17:06:47 UTC 2014 - [email protected]
+
+- support minimal installation(FATE#313149)
+- 3.1.7
+
+-------------------------------------------------------------------
+Fri Feb  7 12:59:26 UTC 2014 - [email protected]
+
+- format spec file
+- versioned build requires of yast2-ldap as it is used in testsuite
+- 3.1.6
+
+-------------------------------------------------------------------
+Fri Jan 31 09:14:15 UTC 2014 - [email protected]
+
+- Change requirement from yast2-ldap-client to yast2-ldap
+- 3.1.5
+
+-------------------------------------------------------------------
 Fri Dec 13 10:44:23 CET 2013 - [email protected]
 
 - added possibility to delete user although it has some processes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-3.1.4/package/yast2-users.spec 
new/yast2-users-3.1.11/package/yast2-users.spec
--- old/yast2-users-3.1.4/package/yast2-users.spec      2013-12-13 
10:47:56.000000000 +0100
+++ new/yast2-users-3.1.11/package/yast2-users.spec     2014-02-21 
10:18:49.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-users
 #
-# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,27 +17,52 @@
 
 
 Name:           yast2-users
-Version:        3.1.4
+Version:        3.1.11
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 Source0:        %{name}-%{version}.tar.bz2
 
-Group:         System/YaST
-License:       GPL-2.0
-BuildRequires: cracklib-devel doxygen gcc-c++ perl-Digest-SHA1 perl-XML-Writer 
update-desktop-files libtool
-BuildRequires:  yast2 yast2-ldap-client yast2-perl-bindings yast2-security 
yast2-testsuite yast2-core-devel
+BuildRequires:  cracklib-devel
+BuildRequires:  doxygen
+BuildRequires:  gcc-c++
+BuildRequires:  libtool
+BuildRequires:  perl-Digest-SHA1
+BuildRequires:  perl-XML-Writer
+BuildRequires:  update-desktop-files
+BuildRequires:  yast2
+BuildRequires:  yast2-core-devel
 BuildRequires:  yast2-devtools >= 3.1.10
-
-Requires:      yast2-country yast2-pam yast2-security cracklib 
perl-Digest-SHA1 perl-X500-DN perl-gettext
-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
+BuildRequires:  yast2-ldap >= 3.1.2
+BuildRequires:  yast2-perl-bindings
+BuildRequires:  yast2-security
+BuildRequires:  yast2-testsuite
+
+Requires:       cracklib
+Requires:       perl-Digest-SHA1
+Requires:       perl-X500-DN
+Requires:       perl-gettext
+Requires:       yast2-country
+Requires:       yast2-pam
+Requires:       yast2-security
+Obsoletes:      y2c_users
+Obsoletes:      y2t_inst-user
+Obsoletes:      y2t_users
+Obsoletes:      yast2-config-users
+Obsoletes:      yast2-trans-inst-user
+Obsoletes:      yast2-trans-users
+Provides:       y2c_users
+Provides:       y2t_inst-user
+Provides:       y2t_users
+Provides:       yast2-config-users
+Provides:       yast2-trans-inst-user
+Provides:       yast2-trans-users
 
 # y2usernote, y2useritem
-Requires:      yast2-perl-bindings >= 2.18.0
+Requires:       yast2-perl-bindings >= 2.18.0
 
 # this forces using yast2-ldap with orrect LDAP object names (fate#303596)
-Requires:      yast2-ldap-client >= 2.17.1
+Requires:       yast2-ldap >= 3.1.2
 
 # Syslog.ycp
 Requires:       yast2 >= 2.23.7
@@ -46,15 +71,17 @@
 
 Requires:       yast2-ruby-bindings >= 1.0.0
 
-Summary:       YaST2 - User and Group Configuration
+Summary:        YaST2 - User and Group Configuration
+License:        GPL-2.0
+Group:          System/YaST
 
 %description
 This package provides GUI for maintenance of linux users and groups.
 
 %package devel-doc
 Requires:       yast2-users = %version
-Group:          System/YaST
 Summary:        YaST2 - User and Group Configuration - Development 
Documentation
+Group:          System/YaST
 
 %description devel-doc
 This package contains development documentation for using the API
@@ -69,7 +96,6 @@
 %install
 %yast_install
 
-
 %files
 %defattr(-,root,root)
 %dir %{yast_yncludedir}/users
@@ -97,3 +123,4 @@
 %doc %{yast_docdir}/autodocs
 %doc %{yast_docdir}/crack.html
 
+%changelog
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-3.1.4/src/clients/inst_user_first.rb 
new/yast2-users-3.1.11/src/clients/inst_user_first.rb
--- old/yast2-users-3.1.4/src/clients/inst_user_first.rb        2013-12-13 
10:47:56.000000000 +0100
+++ new/yast2-users-3.1.11/src/clients/inst_user_first.rb       2014-02-21 
10:18:50.000000000 +0100
@@ -694,7 +694,7 @@
       end
 
       errors = UsersSimple.CheckPasswordUI(
-        { "uid" => username, "userPassword" => pw1, "type" => "local" }
+        { "uid" => username, "userPassword" => pw1, "type" => "local", "root" 
=> @use_pw_for_root }
       )
 
       if @use_pw_for_root && @check_CA_constraints && pw1.size < MIN_PW_LEN_CA
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-3.1.4/src/clients/users_finish.rb 
new/yast2-users-3.1.11/src/clients/users_finish.rb
--- old/yast2-users-3.1.4/src/clients/users_finish.rb   2013-12-13 
10:47:56.000000000 +0100
+++ new/yast2-users-3.1.11/src/clients/users_finish.rb  2014-02-21 
10:18:50.000000000 +0100
@@ -26,11 +26,15 @@
 # Authors:     Jiri Suchomel <[email protected]>
 #
 # $Id$
+
+require "installation/minimal_installation"
+
 module Yast
   class UsersFinishClient < Client
     def main
       textdomain "users"
 
+      Yast.import "Autologin"
       Yast.import "Users"
       Yast.import "UsersSimple"
 
@@ -55,11 +59,13 @@
       Builtins.y2debug("param=%1", @param)
 
       if @func == "Info"
+        minimal_inst = ::Installation::MinimalInstallation.instance.enabled?
         return {
           "steps" => 1,
           # progress step title
           "title" => _("Writing Users Configuration..."),
-          "when"  => [:installation, :live_installation, :autoinst]
+          "when"  => minimal_inst ? [] :
+            [:installation, :live_installation, :autoinst]
         }
       elsif @func == "Write"
         # disable UI (progress)
@@ -77,6 +83,14 @@
 
           create_users(@users)
 
+          if UsersSimple.AutologinUsed
+            Autologin.user = UsersSimple.GetAutologinUser
+            Autologin.Use(true)
+          end
+
+          root_alias = UsersSimple.GetRootAlias
+          Users.AddRootAlias(root_alias) unless root_alias.empty?
+
           Users.Write
         end
       else
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-3.1.4/src/include/users/ldap_dialogs.rb 
new/yast2-users-3.1.11/src/include/users/ldap_dialogs.rb
--- old/yast2-users-3.1.4/src/include/users/ldap_dialogs.rb     2013-12-13 
10:47:56.000000000 +0100
+++ new/yast2-users-3.1.11/src/include/users/ldap_dialogs.rb    2014-02-21 
10:18:50.000000000 +0100
@@ -37,8 +37,6 @@
       Yast.import "Users"
       Yast.import "Wizard"
 
-      Yast.include include_target, "ldap/routines.rb"
-
       textdomain "users"
     end
 
@@ -905,7 +903,7 @@
               Ops.set(ppolicy, "modified", "added")
               Ops.set(ppolicy, "pwdAttribute", "userPassword")
               Ops.set(ppolicy, "objectClass", ["pwdPolicy", "namedObject"])
-              Ops.set(ppolicy, "cn", get_cn(dn))
+              Ops.set(ppolicy, "cn", Ldap.get_cn(dn))
               Ops.set(write_ppolicies, dn, ppolicy)
             else
               pp = {}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-users-3.1.4/src/modules/UsersSimple.pm 
new/yast2-users-3.1.11/src/modules/UsersSimple.pm
--- old/yast2-users-3.1.4/src/modules/UsersSimple.pm    2013-12-13 
10:47:56.000000000 +0100
+++ new/yast2-users-3.1.11/src/modules/UsersSimple.pm   2014-02-21 
10:18:50.000000000 +0100
@@ -626,26 +626,29 @@
 
 ##------------------------------------
 # Just some simple checks for password contens
-# @param username user or group name
+# @param usernames list of  user or group names
 # @param pw password
 # @param user/group
 # @return error message (password too simple) or empty string (OK)
 BEGIN { $TYPEINFO{CheckObscurity} = ["function", "string",
-    "string", "string", "string"];}
+    ["list", "string"],
+    "string", "string"];}
 sub CheckObscurity {
 
     my $self           = shift;
-    my $name           = shift;
+    my $names          = shift;
     my $pw             = shift;
     my $what           = shift;
 
-    if ($pw =~ m/$name/) {
+    foreach my $name (@$names) {
+      if ($pw =~ m/$name/) {
        if ($what eq "groups") {
            # popup question
            return __("You have used the group name as a part of the 
password.");
        }
        # popup question
         return __("You have used the username as a part of the password.");
+      }
     }
 
     # check for lowercase
@@ -790,19 +793,19 @@
        }
     }
     
-    if (1) {#$self->ObscureChecksUsed ()) {
-       my $what        = "users";
-       $what           = "groups" if (! defined $data->{"uid"});
-       my $error       = $self->CheckObscurity ($name, $pw, $what);
-       push @ret, $error if $error;
-    }
+    my $what   = "users";
+    $what       = "groups" if (! defined $data->{"uid"});
+    my @names   = ( $name );
+    push @names, "root" if $data->{"root"} || 0;
+    my $error  = $self->CheckObscurity (\@names, $pw, $what);
+    push @ret, $error if $error;
 
     if (length ($pw) < $min_length) {
        # popup error, %i is number
        push @ret, sprintf (__("The password should have at least %i 
characters."), $min_length);
     }
     
-    my $error = $self->CheckPasswordMaxLength ($pw, $type);
+    $error = $self->CheckPasswordMaxLength ($pw, $type);
     push @ret, $error if $error;
 
     return \@ret;

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to