<samba:parameter name="add machine script"
context="G"
- type="string"
+ type="string"
+ substitution="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
const char *account,
struct passwd **passwd_p)
{
+ const struct loadparm_substitution *lp_sub =
+ loadparm_s3_global_substitution();
struct passwd *passwd;
char *add_script = NULL;
} else if ( (acct_flags & ACB_WSTRUST) ||
(acct_flags & ACB_SVRTRUST) ||
(acct_flags & ACB_DOMTRUST) ) {
- add_script = lp_add_machine_script(mem_ctx);
+ add_script = lp_add_machine_script(mem_ctx, lp_sub);
} else {
DEBUG(1, ("Unknown user type: %s\n",
pdb_encode_acct_ctrl(acct_flags, NEW_PW_FORMAT_SPACE_PADDED_LEN)));
TALLOC_CTX *tmp_ctx, const char *name,
uint32_t acb_info, uint32_t *rid)
{
+ const struct loadparm_substitution *lp_sub =
+ loadparm_s3_global_substitution();
struct samu *sam_pass;
NTSTATUS status;
struct passwd *pwd;
if ((acb_info & ACB_NORMAL) && name[strlen(name)-1] != '$') {
add_script = lp_add_user_script(tmp_ctx);
} else {
- add_script = lp_add_machine_script(tmp_ctx);
+ add_script = lp_add_machine_script(tmp_ctx, lp_sub);
}
if (!add_script || add_script[0] == '\0') {