summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-05-22 12:44:31 +0200
committerStefan Metzmacher <metze@samba.org>2017-06-27 16:57:45 +0200
commitdfaadc81925e313901c9b30cd98a4b4fd2404f9d (patch)
treea0bf4dc9d61036e1236bdc9629a72666e32ceed7 /source3/libnet
parentcf8a4646fe71a974b6a5ee13ae7d7751a5a0adc9 (diff)
downloadsamba-dfaadc81925e313901c9b30cd98a4b4fd2404f9d.tar.gz
s3:secrets: let secrets_delete_machine_password_ex() also remove the des_salt key
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12782 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_join.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 9a2f2272b97..ecae4c5cd9a 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -1701,11 +1701,10 @@ static WERROR libnet_join_post_verify(TALLOC_CTX *mem_ctx,
static bool libnet_join_unjoindomain_remove_secrets(TALLOC_CTX *mem_ctx,
struct libnet_UnjoinCtx *r)
{
- if (!secrets_delete_machine_password_ex(lp_workgroup())) {
- return false;
- }
-
- return true;
+ /*
+ * TODO: use values from 'struct libnet_UnjoinCtx' ?
+ */
+ return secrets_delete_machine_password_ex(lp_workgroup(), lp_realm());
}
/****************************************************************