summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorDavid O'Neill <dmo@samba.org>2001-01-10 16:05:41 +0000
committerDavid O'Neill <dmo@samba.org>2001-01-10 16:05:41 +0000
commit17ab0c2acc1321d8228f604d207deacb1bdd3575 (patch)
treede6b724479b07b383a4ae113968f6dc0855e2451 /source3/param
parent615af12cf2171001bc7da716cea25eab57ec3f4c (diff)
downloadsamba-17ab0c2acc1321d8228f604d207deacb1bdd3575.tar.gz
samba-17ab0c2acc1321d8228f604d207deacb1bdd3575.tar.bz2
samba-17ab0c2acc1321d8228f604d207deacb1bdd3575.zip
Changes from APPLIANCE_HEAD:
source/include/proto.h source/param/loadparm.c source/passdb/passdb.c source/rpc_server/srv_samr.c - add support for "hide local users" option to HEAD. (This used to be commit 44dc339fe757b2b5578b30e74aad8c1b12c23f5f)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 716511cb8b..9a6f5e946d 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -263,6 +263,7 @@ typedef struct
BOOL bDebugPid;
BOOL bDebugUid;
BOOL bHostMSDfs;
+ BOOL bHideLocalUsers;
}
global;
@@ -992,6 +993,8 @@ static struct parm_struct parm_table[] = {
{"fake directory create times", P_BOOL, P_LOCAL, &sDefault.bFakeDirCreateTimes, NULL, NULL, FLAG_SHARE | FLAG_GLOBAL},
{"panic action", P_STRING, P_GLOBAL, &Globals.szPanicAction, NULL, NULL, 0},
+ {"hide local users", P_BOOL, P_GLOBAL, &Globals.bHideLocalUsers, NULL,
+ NULL, 0},
{"VFS options", P_SEP, P_SEPARATOR},
@@ -1629,7 +1632,10 @@ FN_LOCAL_INTEGER(lp_oplock_contention_limit, iOplockContentionLimit)
FN_LOCAL_INTEGER(lp_write_cache_size, iWriteCacheSize)
FN_LOCAL_CHAR(lp_magicchar, magic_char)
FN_GLOBAL_INTEGER(lp_winbind_cache_time, &Globals.winbind_cache_time)
+FN_GLOBAL_BOOL(lp_hide_local_users, &Globals.bHideLocalUsers)
+
/* local prototypes */
+
static int map_parameter(char *pszParmName);
static BOOL set_boolean(BOOL *pb, char *pszParmValue);
static int getservicebyname(char *pszServiceName,