[yast-commit] r41873 - in /trunk/users: VERSION package/yast2-users.changes src/Users.pm src/inst_auth.ycp src/inst_root.ycp yast2-users.spec.in
![](https://seccdn.libravatar.org/avatar/ccabc6c04379b11d036b089b67199614.jpg?s=120&d=mm&r=g)
Author: jsuchome Date: Thu Nov 8 11:15:14 2007 New Revision: 41873 URL: http://svn.opensuse.org/viewcvs/yast?rev=41873&view=rev Log: - allow '\' in root's password (#337606) - removed dependency on yast2-network via DSL module (#339027) - 2.16.2 Modified: trunk/users/VERSION trunk/users/package/yast2-users.changes trunk/users/src/Users.pm trunk/users/src/inst_auth.ycp trunk/users/src/inst_root.ycp trunk/users/yast2-users.spec.in Modified: trunk/users/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/VERSION?rev=41873&r1=41872&r2=41873&view=diff ============================================================================== --- trunk/users/VERSION (original) +++ trunk/users/VERSION Thu Nov 8 11:15:14 2007 @@ -1 +1 @@ -2.16.1 +2.16.2 Modified: trunk/users/package/yast2-users.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/package/yast2-users.changes?rev=41873&r1=41872&r2=41873&view=diff ============================================================================== --- trunk/users/package/yast2-users.changes (original) +++ trunk/users/package/yast2-users.changes Thu Nov 8 11:15:14 2007 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Thu Nov 8 11:01:39 CET 2007 - jsuchome@suse.cz + +- allow '\' in root's password (#337606) +- removed dependency on yast2-network via DSL module (#339027) +- 2.16.2 + +------------------------------------------------------------------- Thu Nov 1 15:20:31 CET 2007 - jsuchome@suse.cz - do not include default 'lxuser' name in the list of suggestions Modified: trunk/users/src/Users.pm URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/src/Users.pm?rev=41873&r1=41872&r2=41873&view=diff ============================================================================== --- trunk/users/src/Users.pm (original) +++ trunk/users/src/Users.pm Thu Nov 8 11:15:14 2007 @@ -2290,7 +2290,9 @@ next; } if ($key eq "userpassword" && (defined $data{$key}) && - $data{$key} ne $user_in_work{$key}) { + (!defined $user_in_work{$key} || $data{$key} ne $user_in_work{$key}) + ) + { # crypt password only once (when changed) if (!defined $data{"encrypted"} || !bool ($data{"encrypted"})) { $user_in_work{$key} = $self->CryptPassword ($data{$key}, $type); @@ -3344,7 +3346,9 @@ } next; } - if (!defined $user{$key} || $user{$key} ne $value) + if (!defined $user{$key} || + ((!defined $value) && (defined $user{$key})) || + ((defined $value) && ($user{$key} ne $value))) { $ret = 1; y2debug ("old value: ", $value || "(not defined)"); Modified: trunk/users/src/inst_auth.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/src/inst_auth.ycp?rev=41873&r1=41872&r2=41873&view=diff ============================================================================== --- trunk/users/src/inst_auth.ycp (original) +++ trunk/users/src/inst_auth.ycp Thu Nov 8 11:15:14 2007 @@ -13,7 +13,6 @@ textdomain "users"; import "Directory"; -import "DSL"; import "FileUtils"; import "Label"; import "Ldap"; @@ -83,22 +82,10 @@ // Check if lan is configured -list<string> net_devices = NetworkDevices::List(""); +list<string> net_devices = NetworkDevices::ListDevicesExcept("dialup"); y2debug("net_devices: %1", net_devices); -if (size(net_devices) == 0 && !NetworkService::IsManaged () && - size (Ldap::initial_defaults) == 0) -{ - Users::SetAfterAuth ("users"); - y2milestone ("network not available: no network based authentization"); - return `auto; -} -boolean found = false || NetworkService::IsManaged (); -maplist(string dev, net_devices, ``{ - if(!DSL::UsesDevice(dev)) - found = true; -}); -y2debug("found=%1", found); +boolean found = (size (net_devices) > 0) || NetworkService::IsManaged (); if (!found && size (Ldap::initial_defaults) == 0) { y2milestone ("network not available: no network based authentization"); Modified: trunk/users/src/inst_root.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/src/inst_root.ycp?rev=41873&r1=41872&r2=41873&view=diff ============================================================================== --- trunk/users/src/inst_root.ycp (original) +++ trunk/users/src/inst_root.ycp Thu Nov 8 11:15:14 2007 @@ -181,7 +181,7 @@ continue; } - if (findfirstnotof (pw1, valid_password_chars) != nil) + if (findfirstnotof (pw1, valid_password_chars + "\\") != nil) { Popup::Message (Users::ValidPasswordMessage ()); // Invalidate old password Modified: trunk/users/yast2-users.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/users/yast2-users.spec.in?rev=41873&r1=41872&r2=41873&view=diff ============================================================================== --- trunk/users/yast2-users.spec.in (original) +++ trunk/users/yast2-users.spec.in Thu Nov 8 11:15:14 2007 @@ -3,15 +3,17 @@ @HEADER@ BuildRequires: cracklib-devel doxygen gcc-c++ perl-Digest-SHA1 perl-XML-Writer update-desktop-files yast2 yast2-devtools yast2-ldap-client yast2-perl-bindings yast2-security yast2-testsuite yast2-core-devel -Requires: yast2 yast2-perl-bindings yast2-country yast2-pam yast2-security cracklib perl-Digest-SHA1 perl-X500-DN perl-gettext +Requires: yast2-perl-bindings 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 # LDAPInitWithTLSCheck Requires: yast2-ldap-client >= 2.15.8 +# NetworkDevices::ListDevicesExcept +Requires: yast2 >= 2.16.9 -Summary: Configuration of users +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
participants (1)
-
jsuchome@svn.opensuse.org