diff options
Diffstat (limited to 'source3/passdb/secrets.c')
-rw-r--r-- | source3/passdb/secrets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c index 83d3e72059..dff855cce6 100644 --- a/source3/passdb/secrets.c +++ b/source3/passdb/secrets.c @@ -332,7 +332,7 @@ bool fetch_ldap_pw(char **dn, char** pw) char *key = NULL; size_t size = 0; - *dn = smb_xstrdup(lp_ldap_admin_dn()); + *dn = smb_xstrdup(lp_ldap_admin_dn(talloc_tos())); if (asprintf(&key, "%s/%s", SECRETS_LDAP_BIND_PW, *dn) < 0) { SAFE_FREE(*dn); |