summaryrefslogtreecommitdiff
path: root/net/samba35/patches/patch-aq
blob: 976f268e302e8bc5fc77007f67f9d41711215213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$NetBSD: patch-aq,v 1.2 2011/03/08 08:30:08 adam Exp $

Add support for passwd expand gecos

--- param/loadparm.c.orig	2011-03-06 18:48:05.000000000 +0000
+++ param/loadparm.c
@@ -310,6 +310,7 @@ struct global {
 	bool bUnixPasswdSync;
 	bool bPasswdChatDebug;
 	int iPasswdChatTimeout;
+	bool bPasswdExpandGecos;
 	bool bTimestampLogs;
 	bool bNTSmbSupport;
 	bool bNTPipeSupport;
@@ -1296,6 +1297,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,
@@ -5064,6 +5074,7 @@ static void init_globals(bool first_time
 	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 */
@@ -5518,6 +5529,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)