summaryrefslogtreecommitdiff
path: root/net/samba35/patches/patch-aq
blob: 97da0ead82ec08fe25f9d1e34c7c08523c53ab1c (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.3 2011/06/15 11:45:08 adam Exp $

Add support for passwd expand gecos

--- param/loadparm.c.orig	2011-06-14 11:17:28.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;
@@ -1297,6 +1298,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,
@@ -5074,6 +5084,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 */
@@ -5528,6 +5539,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)