diff options
author | Ralph Boehme <slow@samba.org> | 2019-11-05 11:58:43 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2019-11-27 10:25:36 +0000 |
commit | 7dc7b9e55491267794548f96acc2e45244cf6eac (patch) | |
tree | fa97581a00d366deebcc98fc7cb0fa1d54e529ae /source3/lib/netapi | |
parent | 8077804c36c44631ba09d52308fe9ad213ae7eb5 (diff) | |
download | samba-7dc7b9e55491267794548f96acc2e45244cf6eac.tar.gz |
smbdotconf: mark "server string" with substitution="1"
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r-- | source3/lib/netapi/serverinfo.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/lib/netapi/serverinfo.c b/source3/lib/netapi/serverinfo.c index 7d9cc481c8c..cb5d9a29f17 100644 --- a/source3/lib/netapi/serverinfo.c +++ b/source3/lib/netapi/serverinfo.c @@ -34,6 +34,8 @@ static WERROR NetServerGetInfo_l_101(struct libnetapi_ctx *ctx, uint8_t **buffer) { + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); struct SERVER_INFO_101 i; i.sv101_platform_id = PLATFORM_ID_NT; @@ -41,7 +43,7 @@ static WERROR NetServerGetInfo_l_101(struct libnetapi_ctx *ctx, i.sv101_version_major = SAMBA_MAJOR_NBT_ANNOUNCE_VERSION; i.sv101_version_minor = SAMBA_MINOR_NBT_ANNOUNCE_VERSION; i.sv101_type = lp_default_server_announce(); - i.sv101_comment = lp_server_string(ctx); + i.sv101_comment = lp_server_string(ctx, lp_sub); *buffer = (uint8_t *)talloc_memdup(ctx, &i, sizeof(i)); if (!*buffer) { @@ -57,9 +59,11 @@ static WERROR NetServerGetInfo_l_101(struct libnetapi_ctx *ctx, static WERROR NetServerGetInfo_l_1005(struct libnetapi_ctx *ctx, uint8_t **buffer) { + const struct loadparm_substitution *lp_sub = + loadparm_s3_global_substitution(); struct SERVER_INFO_1005 info1005; - info1005.sv1005_comment = lp_server_string(ctx); + info1005.sv1005_comment = lp_server_string(ctx, lp_sub); *buffer = (uint8_t *)talloc_memdup(ctx, &info1005, sizeof(info1005)); if (!*buffer) { return WERR_NOT_ENOUGH_MEMORY; |