NetBSD Problem Report #58179

From www@netbsd.org  Sat Apr 20 18:15:48 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 416541A923C
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 20 Apr 2024 18:15:48 +0000 (UTC)
Message-Id: <20240420170946.423491A923C@mollari.NetBSD.org>
Date: Sat, 20 Apr 2024 17:09:46 +0000 (UTC)
From: mstone2001@msn.com
Reply-To: mstone2001@msn.com
To: gnats-bugs@NetBSD.org
Subject: net/samba4 - libnss_winbind.so fails to return AD users via getent passwd.
X-Send-Pr-Version: www-1.0

>Number:         58179
>Category:       pkg
>Synopsis:       net/samba4 - libnss_winbind.so fails to return AD users via getent passwd.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 20 18:20:00 +0000 2024
>Originator:     Michael Stone
>Release:        NetBSD 10.0
>Organization:
>Environment:
NetBSD netbsdserver 10.0 NetBSD 10.0 (GENERIC) #0: Thu Mar 28 08:33:33 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Installed samba4 4.19.5 binary via pkgin and joined an AD domain.  wbinfo -u confirms AD users are returned.  However, running getent passwd does not return the AD users as expected.  
>How-To-Repeat:
Install samba4 via pkgin.  Set up samba4 to join AD Domain.  Am able to join domain, can query domain successfully with all net tools, i.e., wbinfo -u returns AD users.  However the nsswitch integration does not work.  Firstly, the library seems to be named incorrectly.  The installed library is libnss_winbind.so.  Running ktruss confirms expected library name is nss_winbind.so.0.  So I created a symlink.  I can then confirm the library is opened.  However it does not appear it is accessed.  Running getent passwd does not return the users as expected.  I have the exact same setup for samba4 on a freebsd system and it works as expected.
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.