Hello community, here is the log from the commit of package yast2-users checked in at Sat Aug 30 02:18:26 CEST 2008. -------- --- yast2-users/yast2-users.changes 2008-08-22 10:57:29.000000000 +0200 +++ yast2-users/yast2-users.changes 2008-08-29 11:58:44.113790000 +0200 @@ -1,0 +2,7 @@ +Fri Aug 29 11:53:07 CEST 2008 - jsuchome@suse.cz + +- fixed capitalization of LDAP entries (bnc#420010) +- show if the "default policy" is active (bnc#421342, rhafer) +- 2.17.6 + +------------------------------------------------------------------- Old: ---- yast2-users-2.17.5.tar.bz2 New: ---- yast2-users-2.17.6.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ yast2-users.spec ++++++ --- /var/tmp/diff_new_pack.d13837/_old 2008-08-30 02:17:21.000000000 +0200 +++ /var/tmp/diff_new_pack.d13837/_new 2008-08-30 02:17:21.000000000 +0200 @@ -1,5 +1,5 @@ # -# spec file for package yast2-users (Version 2.17.5) +# spec file for package yast2-users (Version 2.17.6) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -19,12 +19,12 @@ Name: yast2-users -Version: 2.17.5 +Version: 2.17.6 Release: 1 License: GPL v2 or later Group: System/YaST BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: yast2-users-2.17.5.tar.bz2 +Source0: yast2-users-2.17.6.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 @@ -52,7 +52,7 @@ Jiri Suchomel <jsuchome@suse.cz> %prep -%setup -n yast2-users-2.17.5 +%setup -n yast2-users-2.17.6 %build %{prefix}/bin/y2tool y2autoconf @@ -95,6 +95,10 @@ %{_libdir}/YaST2/plugin/libpy2ag_crack.la %doc %{prefix}/share/doc/packages/yast2-users %changelog +* Fri Aug 29 2008 jsuchome@suse.cz +- fixed capitalization of LDAP entries (bnc#420010) +- show if the "default policy" is active (bnc#421342, rhafer) +- 2.17.6 * Fri Aug 22 2008 jsuchome@suse.cz - fixed setting Kerberos during installation - 2.17.5 ++++++ yast2-users-2.17.5.tar.bz2 -> yast2-users-2.17.6.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.17.5/src/UsersLDAP.pm new/yast2-users-2.17.6/src/UsersLDAP.pm --- old/yast2-users-2.17.5/src/UsersLDAP.pm 2008-07-21 14:51:53.000000000 +0200 +++ new/yast2-users-2.17.6/src/UsersLDAP.pm 2008-08-25 15:13:06.000000000 +0200 @@ -338,7 +338,7 @@ if (ref ($base_map) eq "HASH" && !%$base_map) { my $dn = $user_base; - $user_base = Ldap->GetDomain(); + $user_base = Ldap->GetBaseDN (); if (!$use_gui || Stage->cont() || # popup question, %s is string argument Popup->YesNo (sprintf (__("No entry with DN '%s' @@ -356,7 +356,7 @@ } } if ($user_base eq "") { - $user_base = Ldap->GetDomain(); + $user_base = Ldap->GetBaseDN (); } if (defined $group_config{"suseDefaultBase"}[0]) { @@ -364,7 +364,7 @@ my $base_map = Ldap->GetLDAPEntry ($group_base); if (ref ($base_map) eq "HASH" && !%$base_map) { my $dn = $group_base; - $group_base = Ldap->GetDomain(); + $group_base = Ldap->GetBaseDN (); if (!$use_gui || Stage->cont() || # popup question, %s is string argument Popup->YesNo (sprintf (__("No entry with DN '%s' diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.17.5/src/UsersPluginLDAPPasswordPolicy.pm new/yast2-users-2.17.6/src/UsersPluginLDAPPasswordPolicy.pm --- old/yast2-users-2.17.5/src/UsersPluginLDAPPasswordPolicy.pm 2008-07-21 14:51:53.000000000 +0200 +++ new/yast2-users-2.17.6/src/UsersPluginLDAPPasswordPolicy.pm 2008-08-25 15:12:55.000000000 +0200 @@ -75,8 +75,8 @@ my ($config, $data) = @_; my @updated_oc; - if (defined $data->{'pwdPolicySubEntry'}) { - $data->{'pwdPolicySubEntry'} = ""; + if (defined $data->{'pwdPolicySubentry'}) { + $data->{'pwdPolicySubentry'} = ""; } return $data; } @@ -148,13 +148,13 @@ if (not defined $ppolicy_enabled) { $ppolicy_enabled = SCR->Execute (".ldap.ppolicy", { "hostname" => Ldap->GetFirstServer (Ldap->server ()), - "bind_dn" => Ldap->GetDomain () + "bind_dn" => Ldap->GetBaseDN () }); y2milestone ("Password Policy enabled globaly: $ppolicy_enabled"); } if (contains ($data->{'plugins'}, $name, 1) || # already checked, still no data - contains ((keys %$data), "pwdPolicySubEntry", 1)) # checking for data + contains ((keys %$data), "pwdPolicySubentry", 1)) # checking for data { y2milestone ("LDAPPasswordPolicy plugin present"); return 1; @@ -210,7 +210,7 @@ sub Check { my ($self, $config, $data) = @_; - my $pwdpolicysubentry = $data->{'pwdPolicySubEntry'}; + my $pwdpolicysubentry = $data->{'pwdPolicySubentry'}; if (defined $pwdpolicysubentry && $pwdpolicysubentry ne "") { # validate DN diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.17.5/src/users_plugin_ldap_passwordpolicy.ycp new/yast2-users-2.17.6/src/users_plugin_ldap_passwordpolicy.ycp --- old/yast2-users-2.17.5/src/users_plugin_ldap_passwordpolicy.ycp 2008-07-21 14:51:53.000000000 +0200 +++ new/yast2-users-2.17.6/src/users_plugin_ldap_passwordpolicy.ycp 2008-08-29 11:49:19.000000000 +0200 @@ -60,15 +60,21 @@ // helptext string help_text = _("<p>Assign a password policy object to this user in <b>DN of Password Policy object</b>. Activate <b>Reset Password</b> to reset the password of modified user.</p>"); - boolean pwdreset = data["pwdreset"]:"FALSE" == "TRUE"; - string pwdpolicysubentry = data["pwdpolicysubentry"]:""; + boolean pwdreset = data["pwdReset"]:"FALSE" == "TRUE"; + string pwdpolicysubentry = data["pwdPolicySubentry"]:""; + boolean usedefault = (pwdpolicysubentry == ""); term contents = `HBox ( `HSpacing (3), `VBox ( + `Left ( + `CheckBox (`id (`usedefault), `opt (`notify), + // check box label + _("Use &Default Password Policy"), usedefault) + ), `HBox ( // text entry label - `TextEntry (`id ("pwdpolicysubentry"), + `TextEntry (`id ("pwdPolicySubentry"), _("DN of &Password Policy object"), pwdpolicysubentry), `VBox ( `Label (""), @@ -76,7 +82,7 @@ ) ), `Left ( - `CheckBox (`id ("pwdreset"), _("&Reset Password"), pwdreset) + `CheckBox (`id ("pwdReset"), _("&Reset Password"), pwdreset) ) ), `HSpacing (3) @@ -90,6 +96,11 @@ contents, help_text, Label::CancelButton(), Label::OKButton()); Wizard::HideAbortButton (); + if (usedefault) + { + UI::ChangeWidget (`id (`browse), `Enabled, false); + UI::ChangeWidget (`id ("pwdPolicySubentry"), `Enabled, false); + } ret = `next; repeat @@ -99,18 +110,29 @@ { string dn = LdapPopup::BrowseTree (""); if (dn != "") - UI::ChangeWidget (`id ("pwdpolicysubentry"), `Value, dn); + UI::ChangeWidget (`id ("pwdPolicySubentry"), `Value, dn); } + else if (ret == `usedefault) + { + usedefault = (boolean)UI::QueryWidget(`id (`usedefault),`Value); + UI::ChangeWidget (`id (`browse ), `Enabled, !usedefault); + UI::ChangeWidget(`id("pwdPolicySubentry"),`Enabled,!usedefault); + } else if (ret == `next) { - string new_pwdpolicysubentry = (string) - UI::QueryWidget (`id ("pwdpolicysubentry"), `Value); + string new_pwdpolicysubentry = ""; + if (!usedefault) + { + new_pwdpolicysubentry = (string) + UI::QueryWidget (`id ("pwdPolicySubentry"), `Value); + } + if (new_pwdpolicysubentry != pwdpolicysubentry) - tmp_data["pwdpolicysubentry"] = new_pwdpolicysubentry; + tmp_data["pwdPolicySubentry"] = new_pwdpolicysubentry; - boolean new_pwdreset = (boolean) UI::QueryWidget (`id ("pwdreset"), `Value); + boolean new_pwdreset = (boolean) UI::QueryWidget (`id ("pwdReset"), `Value); if (new_pwdreset != pwdreset) - tmp_data["pwdreset"] = new_pwdreset ? "TRUE" : "FALSE"; + tmp_data["pwdReset"] = new_pwdreset ? "TRUE" : "FALSE"; if (tmp_data == $[]) break; diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-users-2.17.5/VERSION new/yast2-users-2.17.6/VERSION --- old/yast2-users-2.17.5/VERSION 2008-08-22 10:56:59.000000000 +0200 +++ new/yast2-users-2.17.6/VERSION 2008-08-29 11:54:04.000000000 +0200 @@ -1 +1 @@ -2.17.5 +2.17.6 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de