On OpenIndiana (illumos), nss_winbind.so.1 built from Samba 4.25.0 or current master exports none of _nss_winbind_{passwd,group,hosts,ipnodes}_constr: elfdump -s shows them as local hidden symbols (FUNC LOCL H). The name service switch looks the constructor up with dlsym(), so with "passwd: files winbind" getent, id and ls -l do not resolve domain users and groups. Samba builds with -fvisibility=hidden, and nsswitch/winbind_nss_solaris.c does not mark the constructors _PUBLIC_, as winbind_nss_linux.c and winbind_nss_freebsd.c do for their exported symbols. The code is unchanged in current master; the attached patch marks the four constructors _PUBLIC_. Tested on OpenIndiana 2026.04 with current master (6365593b): without the patch dlsym() finds none of the four constructors in the built module, with the patch it finds all four (FUNC GLOB D). The same change applied to 4.25.0 is in production since 2026-10-06: id and getent resolve domain users through nscd, 32 and 64 bit.
Created attachment 19299 [details] Patch for master