1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r7203: Fill in the error message and fail if we can't open the secrets database.

Andrew Bartlett
(This used to be commit 27257170f4)
This commit is contained in:
Andrew Bartlett 2005-06-03 00:38:51 +00:00 committed by Gerald (Jerry) Carter
parent a115c3e1e2
commit 4c36a59f43

View File

@ -359,6 +359,12 @@ static NTSTATUS libnet_Join_primary_domain(struct libnet_context *ctx,
/* Local secrets are stored in secrets.ldb */
ldb = secrets_db_connect(mem_ctx);
if (!ldb) {
r->generic.out.error_string
= talloc_asprintf(mem_ctx,
"Could not open secrets database\n");
return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
}
/* join domain */
status = libnet_JoinDomain(ctx, mem_ctx, &r2);