Skip to content

Commit

Permalink
credentials: Improve error message on failure to set machine account …
Browse files Browse the repository at this point in the history
…password

Change-Id: I4136067d6d0e5cfe92770a2e7efa39f4ebcb2aca
Signed-off-by: Andrew Bartlett <[email protected]>
Reviewed-by: Stefan Metzmacher <[email protected]>
  • Loading branch information
abartlet committed Oct 17, 2014
1 parent adb3eb7 commit 89daf5d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions auth/credentials/credentials_secrets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 89daf5d

Please sign in to comment.