diff options
Diffstat (limited to 'source4/passdb')
-rw-r--r-- | source4/passdb/secrets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/passdb/secrets.c b/source4/passdb/secrets.c index 6fad9ac228..b5bae614b6 100644 --- a/source4/passdb/secrets.c +++ b/source4/passdb/secrets.c @@ -71,11 +71,11 @@ static void *secrets_fetch(const char *key, size_t *size) Routine to fetch the plaintext machine account password for a realm the password is assumed to be a null terminated ascii string ************************************************************************/ -char *secrets_fetch_machine_password(void) +char *secrets_fetch_machine_password(const char *domain) { char *key; char *ret; - asprintf(&key, "%s/%s", SECRETS_MACHINE_PASSWORD, lp_workgroup()); + asprintf(&key, "%s/%s", SECRETS_MACHINE_PASSWORD, domain); strupper(key); ret = (char *)secrets_fetch(key, NULL); free(key); |