47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
$NetBSD: patch-aq,v 1.4 2013/08/12 02:45:55 taca Exp $
|
|
|
|
Add support for passwd expand gecos
|
|
|
|
--- param/loadparm.c.orig 2013-07-29 18:55:18.000000000 +0000
|
|
+++ param/loadparm.c
|
|
@@ -325,6 +325,7 @@ struct global {
|
|
bool bUnixPasswdSync;
|
|
bool bPasswdChatDebug;
|
|
int iPasswdChatTimeout;
|
|
+ bool bPasswdExpandGecos;
|
|
bool bTimestampLogs;
|
|
bool bNTSmbSupport;
|
|
bool bNTPipeSupport;
|
|
@@ -1310,6 +1311,15 @@ static struct parm_struct parm_table[] =
|
|
.flags = FLAG_ADVANCED,
|
|
},
|
|
{
|
|
+ .label = "passwd expand gecos",
|
|
+ .type = P_BOOL,
|
|
+ .p_class = P_GLOBAL,
|
|
+ .ptr = &Globals.bPasswdExpandGecos,
|
|
+ .special = NULL,
|
|
+ .enum_list = NULL,
|
|
+ .flags = FLAG_ADVANCED,
|
|
+ },
|
|
+ {
|
|
.label = "check password script",
|
|
.type = P_STRING,
|
|
.p_class = P_GLOBAL,
|
|
@@ -5327,6 +5337,7 @@ static void init_globals(bool reinit_glo
|
|
Globals.bPamPasswordChange = False;
|
|
Globals.bPasswdChatDebug = False;
|
|
Globals.iPasswdChatTimeout = 2; /* 2 second default. */
|
|
+ Globals.bPasswdExpandGecos = False;
|
|
Globals.bNTPipeSupport = True; /* Do NT pipes by default. */
|
|
Globals.bNTStatusSupport = True; /* Use NT status by default. */
|
|
Globals.bStatCache = True; /* use stat cache by default */
|
|
@@ -5809,6 +5820,7 @@ FN_GLOBAL_BOOL(lp_pam_password_change, &
|
|
FN_GLOBAL_BOOL(lp_unix_password_sync, &Globals.bUnixPasswdSync)
|
|
FN_GLOBAL_BOOL(lp_passwd_chat_debug, &Globals.bPasswdChatDebug)
|
|
FN_GLOBAL_INTEGER(lp_passwd_chat_timeout, &Globals.iPasswdChatTimeout)
|
|
+FN_GLOBAL_BOOL(lp_passwd_expand_gecos, &Globals.bPasswdExpandGecos)
|
|
FN_GLOBAL_BOOL(lp_nt_pipe_support, &Globals.bNTPipeSupport)
|
|
FN_GLOBAL_BOOL(lp_nt_status_support, &Globals.bNTStatusSupport)
|
|
FN_GLOBAL_BOOL(lp_stat_cache, &Globals.bStatCache)
|