From: Stefan Metzmacher Date: Mon, 27 Oct 2008 18:39:30 +0000 (+0100) Subject: s3:libads/ldap.c: store the dc name in the saf cache as in all other places X-Git-Tag: samba-4.0.0alpha6~479^2~3^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17efebde11eafd065c2cac39cdbe55b8d40d40be;p=thirdparty%2Fsamba.git s3:libads/ldap.c: store the dc name in the saf cache as in all other places metze Signed-off-by: Stefan Metzmacher Signed-off-by: Günther Deschner (cherry picked from commit 543fa85a711337e979c7b631bda5db95d109ef59) --- diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index c0bb9c7e2df..cf8a7ebb1b3 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);