mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
param: have a single handle_ldap_debug_level function
Signed-off-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
64eb985457
commit
f4d7f12986
@ -81,7 +81,6 @@ static bool defaults_saved = false;
|
||||
* non-source3 code
|
||||
*/
|
||||
#define handle_netbios_aliases NULL
|
||||
#define handle_ldap_debug_level NULL
|
||||
#define handle_idmap_backend NULL
|
||||
#define handle_idmap_uid NULL
|
||||
#define handle_idmap_gid NULL
|
||||
@ -1288,6 +1287,15 @@ bool handle_printing(struct loadparm_context *lp_ctx, int snum,
|
||||
return true;
|
||||
}
|
||||
|
||||
bool handle_ldap_debug_level(struct loadparm_context *lp_ctx, int snum, const char *pszParmValue, char **ptr)
|
||||
{
|
||||
lp_ctx->globals->ldap_debug_level = lp_int(pszParmValue);
|
||||
|
||||
if (lp_ctx->s3_fns) {
|
||||
lp_ctx->s3_fns->init_ldap_debugging();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
Initialise a copymap.
|
||||
|
@ -265,7 +265,6 @@ static bool handle_idmap_backend(struct loadparm_context *unused, int snum, cons
|
||||
static bool handle_idmap_uid(struct loadparm_context *unused, int snum, const char *pszParmValue, char **ptr);
|
||||
static bool handle_idmap_gid(struct loadparm_context *unused, int snum, const char *pszParmValue, char **ptr);
|
||||
static bool handle_netbios_aliases(struct loadparm_context *unused, int snum, const char *pszParmValue, char **ptr );
|
||||
static bool handle_ldap_debug_level(struct loadparm_context *unused, int snum, const char *pszParmValue, char **ptr);
|
||||
|
||||
static void set_allowed_client_auth(void);
|
||||
|
||||
@ -2475,13 +2474,6 @@ bool lp_include(struct loadparm_context *unused, int snum, const char *pszParmVa
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool handle_ldap_debug_level(struct loadparm_context *unused, int snum, const char *pszParmValue, char **ptr)
|
||||
{
|
||||
Globals.ldap_debug_level = lp_int(pszParmValue);
|
||||
init_ldap_debugging();
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
* idmap related parameters
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user