summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-04 07:32:28 +0000
committerTim Potter <tpot@samba.org>2001-05-04 07:32:28 +0000
commitd7387f8fb5786680c7c321bcb440217c95493da3 (patch)
tree1fa0fc76abc3b46b18d683ada8bd2d179c87ebff /source3/param
parent5ffe6fd4cd1afd28d2c595b278bd3be9f5df70f2 (diff)
downloadsamba-d7387f8fb5786680c7c321bcb440217c95493da3.tar.gz
samba-d7387f8fb5786680c7c321bcb440217c95493da3.tar.bz2
samba-d7387f8fb5786680c7c321bcb440217c95493da3.zip
Added some missing winbind parameters. Yes they're already documented.
(-: (This used to be commit 657f95c89e593e6cdfc6fb9c7a9e67f9a518c1a5)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 50e2450684..793cbf7951 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -180,6 +180,8 @@ typedef struct
char *szTemplateHomedir;
char *szTemplateShell;
char *szWinbindSeparator;
+ BOOL bWinbindEnumUsers;
+ BOOL bWinbindEnumGroups;
char *szAddShareCommand;
char *szChangeShareCommand;
char *szDeleteShareCommand;
@@ -1038,6 +1040,8 @@ static struct parm_struct parm_table[] = {
{"template shell", P_STRING, P_GLOBAL, &Globals.szTemplateShell, NULL, NULL, 0},
{"winbind separator", P_STRING, P_GLOBAL, &Globals.szWinbindSeparator, NULL, NULL, 0},
{"winbind cache time", P_INTEGER, P_GLOBAL, &Globals.winbind_cache_time, NULL, NULL, 0},
+ {"winbind enum users", P_BOOL, P_GLOBAL, &Globals.bWinbindEnumUsers, NULL, NULL, 0},
+ {"winbind enum groups", P_BOOL, P_GLOBAL, &Globals.bWinbindEnumGroups, NULL, NULL, 0},
{NULL, P_BOOL, P_NONE, NULL, NULL, NULL, 0}
};
@@ -1350,7 +1354,10 @@ static void init_globals(void)
string_set(&Globals.szTemplateShell, "/bin/false");
string_set(&Globals.szTemplateHomedir, "/home/%D/%U");
string_set(&Globals.szWinbindSeparator, "\\");
+
Globals.winbind_cache_time = 15;
+ Globals.bWinbindEnumUsers = True;
+ Globals.bWinbindEnumGroups = True;
/*
* This must be done last as it checks the value in
@@ -1492,6 +1499,8 @@ FN_GLOBAL_STRING(lp_winbind_gid, &Globals.szWinbindGID)
FN_GLOBAL_STRING(lp_template_homedir, &Globals.szTemplateHomedir)
FN_GLOBAL_STRING(lp_template_shell, &Globals.szTemplateShell)
FN_GLOBAL_STRING(lp_winbind_separator, &Globals.szWinbindSeparator)
+FN_GLOBAL_BOOL(lp_winbind_enum_users, &Globals.bWinbindEnumUsers);
+FN_GLOBAL_BOOL(lp_winbind_enum_groups, &Globals.bWinbindEnumGroups);
FN_GLOBAL_STRING(lp_codepagedir,&Globals.szCodePageDir)
#ifdef WITH_LDAP
FN_GLOBAL_STRING(lp_ldap_server, &Globals.szLdapServer)