summaryrefslogtreecommitdiffstats
path: root/lib/param/loadparm.c
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2014-02-24 09:53:44 +1300
committerJeremy Allison <jra@samba.org>2014-05-07 19:49:16 +0200
commitf4d7f12986057cc35cf4ca60f6dc8ec7611e0c31 (patch)
treef4f3590e5f778fbd9e692e67e1f4fef819a0d97b /lib/param/loadparm.c
parent64eb98545762bb94a285f8dd30c17361118859d2 (diff)
downloadsamba-f4d7f12986057cc35cf4ca60f6dc8ec7611e0c31.tar.gz
samba-f4d7f12986057cc35cf4ca60f6dc8ec7611e0c31.tar.xz
samba-f4d7f12986057cc35cf4ca60f6dc8ec7611e0c31.zip
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>
Diffstat (limited to 'lib/param/loadparm.c')
-rw-r--r--lib/param/loadparm.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c
index 8bff6ecc82b..b7afea64768 100644
--- a/lib/param/loadparm.c
+++ b/lib/param/loadparm.c
@@ -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.