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:
parent
a115c3e1e2
commit
4c36a59f43
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user