From d1d4ad612a066bc5215de7233da5e7b22a61ed0f Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 27 Oct 2008 19:39:30 +0100 Subject: [PATCH] s3:libads/ldap.c: store the dc name in the saf cache as in all other places MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit metze Signed-off-by: Stefan Metzmacher Signed-off-by: Günther Deschner (cherry picked from commit 543fa85a711337e979c7b631bda5db95d109ef59) (cherry picked from commit 17efebde11eafd065c2cac39cdbe55b8d40d40be) (cherry picked from commit 9e78bfdbe107519f2ddfa4d532771945a7691b46) (cherry picked from commit 6359df973fa24a3babd0e10e9e131ace47e2b2e8) --- source/libads/ldap.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/libads/ldap.c b/source/libads/ldap.c index a462f463c77..47b9f3e4d2c 100644 --- a/source/libads/ldap.c +++ b/source/libads/ldap.c @@ -519,9 +519,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); -- 2.11.4.GIT