The Samba-Bugzilla – Attachment 2001 Details for
Bug 2836
"password never expires" cosmetic problem
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.0.23
NoExp.patch.txt (text/plain), 1.06 KB, created by
Daniel Beschorner (dead mail address)
on 2006-06-29 05:27:35 UTC
(
hide
)
Description:
Patch for 3.0.23
Filename:
MIME Type:
Creator:
Daniel Beschorner (dead mail address)
Created:
2006-06-29 05:27:35 UTC
Size:
1.06 KB
patch
obsolete
>diff -ur samba-3.0.14a/source/lib/time.c samba-3.0.14a-patched/source/lib/time.c >--- samba-3.0.14a/source/lib/time.c 2005-08-31 10:38:18.000000000 +0200 >+++ samba-3.0.14a-patched/source/lib/time.c 2005-09-09 16:06:32.000000000 +0200 >@@ -48,6 +48,11 @@ > return TIME_T_MAX; > } > >+time_t get_time_t_min(void) >+{ >+ return TIME_T_MIN; >+} >+ > /******************************************************************* > A gettimeofday wrapper. > ********************************************************************/ >diff -ur samba-3.0.14a/source/passdb/pdb_get_set.c samba-3.0.14a-patched/source/passdb/pdb_get_set.c >--- samba-3.0.14a/source/passdb/pdb_get_set.c 2005-08-31 10:38:11.000000000 +0200 >+++ samba-3.0.14a-patched/source/passdb/pdb_get_set.c 2005-09-12 19:17:19.000000000 +0200 >@@ -77,7 +77,7 @@ > > time_t pdb_get_pass_must_change_time(const struct samu *sampass) > { >- return sampass->pass_must_change_time; >+ return (pdb_get_acct_ctrl(sampass) & ACB_PWNOEXP) ? get_time_t_min()-1 : sampass->pass_must_change_time; > } > > uint16 pdb_get_logon_divs(const struct samu *sampass)
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 2836
:
1439
|
1565
|
2001
|
2002