Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 158363 Details for
Bug 229353
net-nds/smbldap-tools-0.9.4-r1: smbldap-passwd fails with unset defaultMaxPasswordAge
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to fix the defaultMaxPasswordAge bug
smbldap-passwd.patch (text/plain), 1.21 KB, created by
Gábor Vészi
on 2008-06-25 09:49:20 UTC
(
hide
)
Description:
patch to fix the defaultMaxPasswordAge bug
Filename:
MIME Type:
Creator:
Gábor Vészi
Created:
2008-06-25 09:49:20 UTC
Size:
1.21 KB
patch
obsolete
>--- smbldap-passwd.orig 2008-06-25 11:28:08.000000000 +0200 >+++ smbldap-passwd 2008-06-25 11:37:57.000000000 +0200 >@@ -266,22 +266,17 @@ > if ( $update_unix_passwd ) { > my $shadowLastChange=int(time()/86400); > my $modify; >+ my @mods; > if ($< != 0) { >- $modify = $ldap_master->modify ( "$dn", >- changes => [ >- replace => [userPassword => "$hash_password"], >- replace => [shadowLastChange => "$shadowLastChange"] >- ] >- ); >+ push @mods, 'userPassword' => "$hash_password"; > } else { >- $modify = $ldap_master->modify ( "$dn", >- changes => [ >- replace => [userPassword => "$hash_password"], >- replace => [shadowLastChange => "$shadowLastChange"], >- replace => [shadowMax => "$config{defaultMaxPasswordAge}"] >- ] >- ); >+ push @mods, 'userPassword' => "$hash_password"; >+ push @mods, 'shadowLastChange' => "$shadowLastChange"; >+ if ( defined $config{defaultMaxPasswordAge} ) { >+ push @mods, 'shadowMax' => "$config{defaultMaxPasswordAge}"; >+ } > } >+ $modify = $ldap_master->modify ( "$dn", 'replace' => { @mods } ); > $modify->code && warn "Failed to modify UNIX password: ", $modify->error ; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 229353
: 158363