Bug 15355 - NSS_WRAPPER_HOSTNAME doesn't match NSS_WRAPPER_HOSTS entry and causes test timeouts
Summary: NSS_WRAPPER_HOSTNAME doesn't match NSS_WRAPPER_HOSTS entry and causes test ti...
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Test infrastructure (show other bugs)
Version: 4.18.0
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Jule Anger
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-12 17:38 UTC by Stefan Metzmacher
Modified: 2023-07-06 11:41 UTC (History)
1 user (show)

See Also:


Attachments
Patch for v4-18-test (2.29 KB, text/plain)
2023-06-28 11:00 UTC, Stefan Metzmacher
slow: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Metzmacher 2023-04-12 17:38:30 UTC
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.
Comment 1 Samba QA Contact 2023-04-12 20:30:03 UTC
This bug was referenced in samba master:

53f0a292f8057a63ddee951058e380b43b9d2916
Comment 2 Stefan Metzmacher 2023-06-28 11:00:47 UTC
Created attachment 17962 [details]
Patch for v4-18-test
Comment 3 Samba QA Contact 2023-07-05 10:20:03 UTC
This bug was referenced in samba v4-18-test:

d4b86186d293c80682b4e2189b8dbbec4572a9e8
Comment 4 Samba QA Contact 2023-07-05 11:34:13 UTC
This bug was referenced in samba v4-18-stable (Release samba-4.18.4):

d4b86186d293c80682b4e2189b8dbbec4572a9e8
Comment 5 Jule Anger 2023-07-06 11:41:59 UTC
Closing out bug report.

Thanks!