]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbdotconf: mark "username map script" with substitution="1"
authorRalph Boehme <slow@samba.org>
Tue, 5 Nov 2019 11:12:51 +0000 (12:12 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:36 +0000 (10:25 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
docs-xml/smbdotconf/security/usernamemapscript.xml
source3/auth/user_util.c

index 0edd4eb25c39c3dcf0a7f73dc7da22c6057feb0c..86118f305bc6119dacff137de205c386e801f285 100644 (file)
@@ -1,6 +1,7 @@
 <samba:parameter name="username map script"
                  context="G"
                  type="string"
+                 substitution="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>This script is a mutually exclusive alternative to the 
index 9e7a68401600fe100fcfedbcd44480a9b7d84dc8..f4bdd2d323e34ac10644d21b0a0be110b3a3c29d 100644 (file)
@@ -288,7 +288,7 @@ bool map_username(TALLOC_CTX *ctx, const char *user_in, char **p_user_out)
        char *s;
        char buf[512];
        bool mapped_user = False;
-       char *cmd = lp_username_map_script(talloc_tos());
+       char *cmd = lp_username_map_script(talloc_tos(), lp_sub);
 
        *p_user_out = NULL;