Bug 16282 - nss_winbind on Solaris/illumos exports no backend constructors
Summary: nss_winbind on Solaris/illumos exports no backend constructors
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 4.25.0
Hardware: x64 Solaris
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-10-17 14:56 UTC by Luca Lenardi
Modified: 2026-10-17 14:56 UTC (History)
0 users

See Also:


Attachments
Patch for master (1.99 KB, patch)
2026-10-17 14:56 UTC, Luca Lenardi
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Lenardi 2026-10-17 14:56:02 UTC
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.
Comment 1 Luca Lenardi 2026-10-17 14:56:30 UTC
Created attachment 19299 [details]
Patch for master