From owner-freebsd-emulation@FreeBSD.ORG Sun Dec 20 18:10:07 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29AC91065670 for ; Sun, 20 Dec 2009 18:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 185A78FC12 for ; Sun, 20 Dec 2009 18:10:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nBKIA6qr071815 for ; Sun, 20 Dec 2009 18:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nBKIA68d071814; Sun, 20 Dec 2009 18:10:06 GMT (envelope-from gnats) Date: Sun, 20 Dec 2009 18:10:06 GMT Message-Id: <200912201810.nBKIA68d071814@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: =?ISO-8859-2?Q?Marcin_Wi=B6nicki?= Cc: Subject: Re: ports/127018: Linuxulator incapable of using FreeBSD's LDAP environment X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?ISO-8859-2?Q?Marcin_Wi=B6nicki?= List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 20 Dec 2009 18:10:07 -0000 The following reply was made to PR ports/127018; it has been noted by GNATS. From: =?ISO-8859-2?Q?Marcin_Wi=B6nicki?= To: bug-followup@FreeBSD.org, ohartman@zedat.fu-berlin.de Cc: Subject: Re: ports/127018: Linuxulator incapable of using FreeBSD's LDAP environment Date: Sun, 20 Dec 2009 19:05:49 +0100 Just noticed this via mail to emulation@ and since I used to have LDAP in the past I'd like to contribute some feedback. The underlying problem is that LDAP integration is done through nsswitch (part of libc) and nss_ldap.so module (from ports). Linux has the same mechanism however linux-compiled glibc will obviously fail to load freebsd-native nss_ldap.so. I assume that to get LDAP in linuxulator one will first need to install linux version of nss_ldap and it's dependencies and then configure nsswitch in /compat/linux/etc as he would on real linux system. At this time however there are no ports for those libs. I believe that it's also possible to solve this problem in more general way by writing some kind of nscd(8) proxy that would translate between protocol used in freebsd and what is expected by glibc.