The VBoxAuthPAM.c implementation attempts to dlopen() PAM, but uses the non-existent "pam.so.0" path. Attached is a small patch to be included with the port -- it simply uses "pam.so" when defined(RT_OS_FREEBSD). Test result without fix (using VBOX_AUTH_DEBUG_FILENAME): u[vboxusers], d[(null)], p[40] auth_pam_init: dlopen libpam.so.0 failed auth_pam_init failed 4 Test after fix: u[vboxusers], d[(null)], p[40] init ok Using PAM service: login start ok auth ok access granted auth_pam_close completed Fix: Apply the provided patch to the port. Patch attached with submission follows: How-To-Repeat: Attempt to authenticate against a virtualbox service, such as vboxwebsrv. PAM-based authentication will fail.
State Changed From-To: open->feedback to which port does this patch apply?
An amusing oversight, apologies. Applies to emulators/virtualbox-ose
State Changed From-To: feedback->open feedback received.
Responsible Changed From-To: freebsd-ports-bugs->vbox Over to maintainer
Thanks for the patch! It looks fine to me so I will include it in the next port update. Do you agree that this patch is under MIT License so that I can submit it upstream? -- Bernhard Fröhlich http://www.bluelife.at/
decke 2012-04-05 11:16:31 UTC FreeBSD ports repository Modified files: emulators/virtualbox-ose Makefile distinfo emulators/virtualbox-ose-additions Makefile distinfo emulators/virtualbox-ose-kmod Makefile distinfo Added files: emulators/virtualbox-ose/files patch-src-VBox-HostServices-auth-pam-VBoxAuthPAM.c Log: - Update to 4.1.12 - Fix PAM authentication for vboxwebsrv [1] PR: ports/166614 [1] Submitted by: Landon Fuller <landonf@plausible.coop> [1] Feature safe: yes Revision Changes Path 1.20 +1 -1 ports/emulators/virtualbox-ose-additions/Makefile 1.14 +2 -2 ports/emulators/virtualbox-ose-additions/distinfo 1.41 +1 -1 ports/emulators/virtualbox-ose-kmod/Makefile 1.23 +2 -2 ports/emulators/virtualbox-ose-kmod/distinfo 1.48 +1 -1 ports/emulators/virtualbox-ose/Makefile 1.23 +4 -4 ports/emulators/virtualbox-ose/distinfo 1.1 +11 -0 ports/emulators/virtualbox-ose/files/patch-src-VBox-HostServices-auth-pam-VBoxAuthPAM.c (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Sure -- Please consider it MIT licensed, under the copyright of my company ( Plausible Labs Cooperative, Inc. ).
State Changed From-To: open->closed Committed. Thanks!