summaryrefslogtreecommitdiffstats
path: root/source/libads/ldap.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-02-03 21:19:24 +0000
committerGerald Carter <jerry@samba.org>2006-02-03 21:19:24 +0000
commitae7207c5a8208acd5935e338aa2473177d4f52f0 (patch)
tree697cb89c32a94c1bf43fd2d5f8873d995f307ff4 /source/libads/ldap.c
parentf8c735fe578f07b0b663a4f7e79e6f61bca211c0 (diff)
downloadsamba-ae7207c5a8208acd5935e338aa2473177d4f52f0.tar.gz
samba-ae7207c5a8208acd5935e338aa2473177d4f52f0.tar.xz
samba-ae7207c5a8208acd5935e338aa2473177d4f52f0.zip
r13310: first round of server affinity patches for winbindd & net ads join
Diffstat (limited to 'source/libads/ldap.c')
-rw-r--r--source/libads/ldap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c
index dc93bd556c7..e503da62a47 100644
--- a/source/libads/ldap.c
+++ b/source/libads/ldap.c
@@ -136,6 +136,10 @@ BOOL ads_try_connect(ADS_STRUCT *ads, const char *server, unsigned port)
ads->ldap_port = port;
ads->ldap_ip = *interpret_addr2(srv);
free(srv);
+
+ /* cache the successful connection */
+
+ saf_store( ads->server.workgroup, server );
return True;
}