summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-10-27 19:39:30 +0100
committerStefan Metzmacher <metze@samba.org>2008-12-13 11:42:36 +0100
commit17efebde11eafd065c2cac39cdbe55b8d40d40be (patch)
tree3b3c16d2c1f5d3c184aecb302db1b7a3f75a76db
parenta8040d59659e58c5cb92c1107a7ff012eff12729 (diff)
downloadsamba-17efebde11eafd065c2cac39cdbe55b8d40d40be.tar.gz
samba-17efebde11eafd065c2cac39cdbe55b8d40d40be.tar.bz2
samba-17efebde11eafd065c2cac39cdbe55b8d40d40be.zip
s3:libads/ldap.c: store the dc name in the saf cache as in all other places
metze Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 543fa85a711337e979c7b631bda5db95d109ef59)
-rw-r--r--source3/libads/ldap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index c0bb9c7e2d..cf8a7ebb1b 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -651,9 +651,8 @@ got_connection:
/* cache the successful connection for workgroup and realm */
if (ads_closest_dc(ads)) {
- print_sockaddr(addr, sizeof(addr), &ads->ldap.ss);
- saf_store( ads->server.workgroup, addr);
- saf_store( ads->server.realm, addr);
+ saf_store( ads->server.workgroup, ads->config.ldap_server_name);
+ saf_store( ads->server.realm, ads->config.ldap_server_name);
}
ldap_set_option(ads->ldap.ld, LDAP_OPT_PROTOCOL_VERSION, &version);