diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-10-03 05:14:56 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-10-17 12:57:07 +0200 |
commit | 89daf5dc534ab03724a2622d3b6b4d6783756bae (patch) | |
tree | 42d56b1182509d44121ace806e221b9afb378c4f /auth | |
parent | adb3eb79ea828b6e6e1858c3d1b8b5ffe868f8ed (diff) | |
download | samba-89daf5dc534ab03724a2622d3b6b4d6783756bae.tar.gz |
credentials: Improve error message on failure to set machine account password
Change-Id: I4136067d6d0e5cfe92770a2e7efa39f4ebcb2aca
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'auth')
-rw-r--r-- | auth/credentials/credentials_secrets.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/auth/credentials/credentials_secrets.c b/auth/credentials/credentials_secrets.c index 4f2aeb585c0..8607973d71d 100644 --- a/auth/credentials/credentials_secrets.c +++ b/auth/credentials/credentials_secrets.c @@ -339,10 +339,12 @@ _PUBLIC_ NTSTATUS cli_credentials_set_machine_account(struct cli_credentials *cr status = NT_STATUS_OK; } else if (!NT_STATUS_IS_OK(status)) { if (db_ctx) { - error_string = talloc_asprintf(cred, - "Failed to fetch machine account password from " - "secrets.ldb: %s and failed to fetch %s from %s", - error_string, keystr_upper, secrets_tdb); + error_string + = talloc_asprintf(cred, + "Failed to fetch machine account password for %s from both " + "secrets.ldb (%s) and from %s", + domain, error_string, + dbwrap_name(db_ctx)); } else { error_string = talloc_asprintf(cred, "Failed to fetch machine account password from " |