diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-02-24 10:12:48 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-07 19:49:16 +0200 |
commit | 1189724ec4f42db08c14753b4e31e8283ad66eb2 (patch) | |
tree | 43982f0d4a845c864e5102ae4b1c05b50e7d1d49 /lib/param/loadparm.c | |
parent | c03b8eba51d94992dd58f75cef69f183e66fa52c (diff) | |
download | samba-1189724ec4f42db08c14753b4e31e8283ad66eb2.tar.gz samba-1189724ec4f42db08c14753b4e31e8283ad66eb2.tar.xz samba-1189724ec4f42db08c14753b4e31e8283ad66eb2.zip |
param: use a single handle_netbios_aliases 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.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/param/loadparm.c b/lib/param/loadparm.c index 71aab15a93a..613b41facf4 100644 --- a/lib/param/loadparm.c +++ b/lib/param/loadparm.c @@ -80,7 +80,6 @@ static bool defaults_saved = false; /* these are parameter handlers which are not needed in the * non-source3 code */ -#define handle_netbios_aliases NULL #define handle_idmap_backend NULL #define handle_idmap_uid NULL #define handle_idmap_gid NULL @@ -1297,6 +1296,18 @@ bool handle_ldap_debug_level(struct loadparm_context *lp_ctx, int snum, const ch return true; } +bool handle_netbios_aliases(struct loadparm_context *lp_ctx, int snum, const char *pszParmValue, char **ptr) +{ + TALLOC_FREE(lp_ctx->globals->netbios_aliases); + lp_ctx->globals->netbios_aliases = (const char **)str_list_make_v3(lp_ctx->globals->ctx, + pszParmValue, NULL); + + if (lp_ctx->s3_fns) { + return lp_ctx->s3_fns->set_netbios_aliases(lp_ctx->globals->netbios_aliases); + } + return true; +} + /*************************************************************************** Initialise a copymap. ***************************************************************************/ |