[SCM] Samba Shared Repository - branch master updated

Stefan Metzmacher metze at samba.org
Wed Apr 12 20:30:01 UTC 2023


The branch, master has been updated
       via  53f0a292f80 selftest:Samba3: use the correct NSS_WRAPPER_HOSTNAME
      from  2ff55b3da71 selftest: Catch error codes from failing testsuites

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 53f0a292f8057a63ddee951058e380b43b9d2916
Author: Stefan Metzmacher <metze at samba.org>
Date:   Wed Apr 12 17:22:02 2023 +0200

    selftest:Samba3: use the correct NSS_WRAPPER_HOSTNAME
    
    The value of NSS_WRAPPER_HOSTNAME needs to match value
    we put into the NSS_WRAPPER_HOSTS file.
    
    We had a mismatch of
    idmapridmember.samba.example.com
    vs.
    idmapridmember.addom.samba.example.com
    
    This causes getaddrinfo() in nss_wrapper to fallback to
    the libc version, which talks to a dns server.
    It's not clear if recent glibc code will reach resolve/socket wrapper.
    So it's not unlikely that idmapridmember.samba.example.com will
    be passed via the internet, which causes delays up to 20 seconds.
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=15355
    
    Signed-off-by: Stefan Metzmacher <metze at samba.org>
    Reviewed-by: Ralph Boehme <slow at samba.org>
    
    Autobuild-User(master): Stefan Metzmacher <metze at samba.org>
    Autobuild-Date(master): Wed Apr 12 20:29:05 UTC 2023 on atb-devel-224

-----------------------------------------------------------------------

Summary of changes:
 selftest/target/Samba3.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/selftest/target/Samba3.pm b/selftest/target/Samba3.pm
index ab0b61279ef..717091cc8cf 100755
--- a/selftest/target/Samba3.pm
+++ b/selftest/target/Samba3.pm
@@ -3677,7 +3677,7 @@ jacknomappergroup:x:$gid_jacknomapper:jacknomapper
 	$createuser_env{NSS_WRAPPER_PASSWD} = $nss_wrapper_passwd;
 	$createuser_env{NSS_WRAPPER_GROUP} = $nss_wrapper_group;
 	$createuser_env{NSS_WRAPPER_HOSTS} = $nss_wrapper_hosts;
-	$createuser_env{NSS_WRAPPER_HOSTNAME} = "${hostname}.samba.example.com";
+	$createuser_env{NSS_WRAPPER_HOSTNAME} = "${hostname}.${dns_domain}";
 	if ($ENV{SAMBA_DNS_FAKING}) {
 		$createuser_env{RESOLV_WRAPPER_HOSTS} = $dns_host_file;
 	} else {
@@ -3731,7 +3731,7 @@ jacknomappergroup:x:$gid_jacknomapper:jacknomapper
 	$ret{NSS_WRAPPER_PASSWD} = $nss_wrapper_passwd;
 	$ret{NSS_WRAPPER_GROUP} = $nss_wrapper_group;
 	$ret{NSS_WRAPPER_HOSTS} = $nss_wrapper_hosts;
-	$ret{NSS_WRAPPER_HOSTNAME} = "${hostname}.samba.example.com";
+	$ret{NSS_WRAPPER_HOSTNAME} = "${hostname}.${dns_domain}";
 	$ret{NSS_WRAPPER_MODULE_SO_PATH} = Samba::nss_wrapper_winbind_so_path($self);
 	$ret{NSS_WRAPPER_MODULE_FN_PREFIX} = "winbind";
 	if ($ENV{SAMBA_DNS_FAKING}) {


-- 
Samba Shared Repository



More information about the samba-cvs mailing list