summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-01-15 11:00:37 +0100
committerGünther Deschner <gd@samba.org>2008-01-15 11:02:56 +0100
commitb32d613ed064fc662c795c6e7dcebe7c64bddf00 (patch)
tree974a43b6f3c19488d05d5717b5af5172f7749f8f
parentf41cd6c8e46c6a280e61f77b0803133458274977 (diff)
downloadsamba-b32d613ed064fc662c795c6e7dcebe7c64bddf00.tar.gz
samba-b32d613ed064fc662c795c6e7dcebe7c64bddf00.tar.bz2
samba-b32d613ed064fc662c795c6e7dcebe7c64bddf00.zip
No need to re-establish AD connection all the time.
Guenther (This used to be commit f21871c6d60e02ed53f060abbbfb2ef656cdc311)
-rw-r--r--source3/libnet/libnet_join.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index 6c50d9c09b..c60f4c9803 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -107,10 +107,6 @@ static ADS_STATUS libnet_join_connect_ads(TALLOC_CTX *mem_ctx,
{
ADS_STATUS status;
- if (r->in.ads) {
- ads_destroy(&r->in.ads);
- }
-
status = libnet_connect_ads(r->in.domain_name,
r->in.domain_name,
r->in.dc_name,
@@ -134,10 +130,6 @@ static ADS_STATUS libnet_unjoin_connect_ads(TALLOC_CTX *mem_ctx,
{
ADS_STATUS status;
- if (r->in.ads) {
- ads_destroy(&r->in.ads);
- }
-
status = libnet_connect_ads(r->in.domain_name,
r->in.domain_name,
r->in.dc_name,