Author: jsuchome Date: Wed Mar 19 11:39:55 2008 New Revision: 45596 URL: http://svn.opensuse.org/viewcvs/yast?rev=45596&view=rev Log: - fixed enabling LDAP users with password policy (bnc#364837) - fixed removing LDAP Shadow Account plugin (bnc#364833) - 2.13.56.1 Modified: branches/SuSE-SLE-10-SP1-Branch/users/VERSION branches/SuSE-SLE-10-SP1-Branch/users/package/yast2-users.changes branches/SuSE-SLE-10-SP1-Branch/users/src/UsersPluginLDAPPasswordPolicy.pm branches/SuSE-SLE-10-SP1-Branch/users/src/UsersPluginLDAPShadowAccount.pm Modified: branches/SuSE-SLE-10-SP1-Branch/users/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/users/VERSION?rev=45596&r1=45595&r2=45596&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP1-Branch/users/VERSION (original) +++ branches/SuSE-SLE-10-SP1-Branch/users/VERSION Wed Mar 19 11:39:55 2008 @@ -1 +1 @@ -2.13.56 +2.13.56.1 Modified: branches/SuSE-SLE-10-SP1-Branch/users/package/yast2-users.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/users/package/yast2-users.changes?rev=45596&r1=45595&r2=45596&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP1-Branch/users/package/yast2-users.changes (original) +++ branches/SuSE-SLE-10-SP1-Branch/users/package/yast2-users.changes Wed Mar 19 11:39:55 2008 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Feb 26 16:43:45 CET 2008 - jsuchome@suse.cz + +- fixed enabling LDAP users with password policy (bnc#364837) +- fixed removing LDAP Shadow Account plugin (bnc#364833) +- 2.13.56.1 + +------------------------------------------------------------------- Thu Oct 4 14:33:20 CEST 2007 - jsuchome@suse.cz - backport following features for SLE10SP for F302865 and F302658: Modified: branches/SuSE-SLE-10-SP1-Branch/users/src/UsersPluginLDAPPasswordPolicy.pm URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/users/src/UsersPluginLDAPPasswordPolicy.pm?rev=45596&r1=45595&r2=45596&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP1-Branch/users/src/UsersPluginLDAPPasswordPolicy.pm (original) +++ branches/SuSE-SLE-10-SP1-Branch/users/src/UsersPluginLDAPPasswordPolicy.pm Wed Mar 19 11:39:55 2008 @@ -41,6 +41,11 @@ # if Password Policy is enabled on the server my $ppolicy_enabled = undef; + +# value to write into pwdaccountlockedtime if user should be disabled +# see slapo-ppolicy man-page +my $disabled_user = "000001010000Z"; + ##---------------------------------------- ##--------------------- internal functions @@ -260,7 +265,7 @@ my ($self, $config, $data) = @_; y2debug ("Disable LDAPAll called"); - $data->{'pwdaccountlockedtime'} = "000001010000Z"; # see slapo-ppolicy man-page + $data->{'pwdaccountlockedtime'} = $disabled_user; return $data; } @@ -322,6 +327,13 @@ the plugin for Shadow Account attributes is in use."); return undef; } + if (!defined $config->{"org_data"}{"enabled"}) { + $data->{"enabled"} = YaST::YCP::Boolean (1); + if (($config->{"org_data"}{"pwdaccountlockedtime"} || "") eq $disabled_user) { + $data->{"enabled"} = YaST::YCP::Boolean (0); + y2milestone ("user is disabled"); + } + } return $data; } Modified: branches/SuSE-SLE-10-SP1-Branch/users/src/UsersPluginLDAPShadowAccount.pm URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-SLE-10-SP1-Branch/users/src/UsersPluginLDAPShadowAccount.pm?rev=45596&r1=45595&r2=45596&view=diff ============================================================================== --- branches/SuSE-SLE-10-SP1-Branch/users/src/UsersPluginLDAPShadowAccount.pm (original) +++ branches/SuSE-SLE-10-SP1-Branch/users/src/UsersPluginLDAPShadowAccount.pm Wed Mar 19 11:39:55 2008 @@ -109,6 +109,11 @@ } } $data->{'objectclass'} = \@updated_oc; + foreach my $attr ("shadowinactive", "shadowexpire", "shadowlastchange", + "shadowmin", "shadowmax", "shadowwarning", "shadowflag") + { + $data->{$attr} = ""; + } return $data; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org