The Samba-Bugzilla – Attachment 7053 Details for
Bug 8563
Observe per user password can change time
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.5.11 and 3.6.1
samba-3.5.11-observe-user-sambaPwdCanChange-attribute.patch (text/plain), 688 bytes, created by
Roel van Meer
on 2011-11-02 16:50:23 UTC
(
hide
)
Description:
Patch for 3.5.11 and 3.6.1
Filename:
MIME Type:
Creator:
Roel van Meer
Created:
2011-11-02 16:50:23 UTC
Size:
688 bytes
patch
obsolete
>diff -ruN samba-3.5.11.a/source3/passdb/pdb_get_set.c samba-3.5.11.b/source3/passdb/pdb_get_set.c >--- samba-3.5.11.a/source3/passdb/pdb_get_set.c 2011-08-03 20:24:05.000000000 +0200 >+++ samba-3.5.11.b/source3/passdb/pdb_get_set.c 2011-11-02 14:07:25.854171298 +0100 >@@ -91,6 +91,11 @@ > if (!pdb_get_account_policy(PDB_POLICY_MIN_PASSWORD_AGE, &allow)) > allow = 0; > >+ /* if the time is set for the user specifically, use it if it >+ is later than the policy */ >+ if (sampass->pass_can_change_time > sampass->pass_last_set_time + allow) >+ return sampass->pass_can_change_time; >+ > /* in normal cases, just calculate it from policy */ > return sampass->pass_last_set_time + allow; > }
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 Raw
Actions:
View
Attachments on
bug 8563
: 7053