mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
r7203: Fill in the error message and fail if we can't open the secrets database.
Andrew Bartlett
This commit is contained in:
parent
c04fca198a
commit
27257170f4
@ -359,6 +359,12 @@ static NTSTATUS libnet_Join_primary_domain(struct libnet_context *ctx,
|
|||||||
|
|
||||||
/* Local secrets are stored in secrets.ldb */
|
/* Local secrets are stored in secrets.ldb */
|
||||||
ldb = secrets_db_connect(mem_ctx);
|
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 */
|
/* join domain */
|
||||||
status = libnet_JoinDomain(ctx, mem_ctx, &r2);
|
status = libnet_JoinDomain(ctx, mem_ctx, &r2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user