The Samba-Bugzilla – Attachment 1439 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 to return time_min if password never expires
NoExp.patch.txt (text/plain), 1.11 KB, created by
Daniel Beschorner (dead mail address)
on 2005-09-12 10:32:43 UTC
(
hide
)
Description:
Patch to return time_min if password never expires
Filename:
MIME Type:
Creator:
Daniel Beschorner (dead mail address)
Created:
2005-09-12 10:32:43 UTC
Size:
1.11 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 >@@ -55,6 +55,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 >@@ -98,8 +98,12 @@ > > time_t pdb_get_pass_must_change_time (const SAM_ACCOUNT *sampass) > { >- if (sampass) >- return (sampass->private.pass_must_change_time); >+ if (sampass) { >+ if (pdb_get_acct_ctrl(sampass) & ACB_PWNOEXP) >+ return get_time_t_min(); >+ else >+ return (sampass->private.pass_must_change_time); >+ } > else > return (-1); > }
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