summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-08-08 14:40:04 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-10-09 07:06:35 +0000
commit14f320fa1e40ecc3a43dabb0cecd57430270a521 (patch)
treebbb2c823cd001b05f3a04132aabdc3e3ac78e413 /source3/libnet
parent39b8c8b30a5d5bd70f8da3a02cf77f7592788b94 (diff)
downloadsamba-14f320fa1e40ecc3a43dabb0cecd57430270a521.tar.gz
s3:libads: Just change the machine password if account already exists
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13884 Pair-Programmed-With: Guenther Deschner <gd@samba.org> Signed-off-by: Guenther Deschner <gd@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_join.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 6017cc7694d..7943bef2cf6 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -968,6 +968,7 @@ static ADS_STATUS libnet_join_post_processing_ads_modify(TALLOC_CTX *mem_ctx,
if (r->in.ads->auth.ccache_name != NULL) {
ads_kdestroy(r->in.ads->auth.ccache_name);
+ r->in.ads->auth.ccache_name = NULL;
}
ads_destroy(&r->in.ads);