After upgrade of pam_pwdfile to 0.99 it no longer works. Attempting to use it for an authentication mechanism yields the following error in /var/log/messages: pamtester: in openpam_load_module(): no /usr/local/lib/pam_pwdfile.so found My belief is this has to do with pam_pwdfile addition of an md5.h and various friends at version 0.97 (from changelog): * added md5.h, md5.c, md5_crypt.c and bigcrypt.c from the pam_unix.c module. This fixes the bug where crypt() would not be able to do md5 crypting if an SSL library was linked into the calling application. Several users reported this, but the report (and possible patch, which I chose not to use, opting instead to emulate pam_unix) of Yu Guanghui <ygh@dlut.edu.cn> was most useful. The custom Makefile.bsd in 'files' doesn't account for these new source files. How-To-Repeat: Build and install pam_pwdfile.so 0.99. Configure it to be used with some PAM-based system (from /usr/local/etc/pam.d/vsftpd): # auth auth required pam_nologin.so no_warn auth sufficient /usr/local/lib/pam_pwdfile.so pwdfile /usr/local/etc/vsftpd.passwd auth required pam_unix.so no_warn try_first_pass Attempt to autenticate using service: $ pamtester vsftpd username auth pamtester: Initialization failure
Maintainer of security/pam_pwdfile, Please note that PR ports/138483 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/138483 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Very sorry about that. Attached patch against the port fixes all problems. the md5 files and also bigcrypt needed to get compiled. In addition, a header is needed, _pam_macros.h, which are not available on FreeBSD. I pulled this header from the Linux-PAM package and included it so that it compiles. I bumped the portrevision to 1 I ran pamtester against it, and it succeeds now. Please commit to security/pam_pwdfile in ports tree.
Can a someone with commit access please commit this? The version in the ports tree does not work. This patch fixes it. I am the maintainer, but do not have commit access.
AmigaOS...........: http://www.yam.ch/ Unix/MacOS/Windows: http://www.mozilla.com/thunderbird/ General information about MIME can be found at: http://en.wikipedia.org/wiki/MIME
Wierd. It works with <_pam_macros.h> on Freebsd 7.2, so guessing you are running a different version, or have a different version of GCC installed. patch-2.diff looks good and compiles for me also. Someone please commit patch-2.diff to the ports tree. Thanks
patch-2.diff works for me on FreeBSD 8, also. Any movement on getting this into ports? On Wed, Oct 28, 2009 at 8:43 AM, Michael Schout <mschout@gkg.net> wrote: > Wierd. =C2=A0It works with <_pam_macros.h> on Freebsd 7.2, so guessing yo= u > are running a different version, or have a different version of GCC > installed. > > patch-2.diff looks good and compiles for me also. > > Someone please commit patch-2.diff to the ports tree. > > Thanks >
Ben Schumacher wrote: > patch-2.diff works for me on FreeBSD 8, also. Any movement on getting > this into ports? I don't have commit access. I'm the maintainer. I've voiced my approval for patch-2.diff. Not sure how else to get a committer to commit this. Regards, Michael Schout
Thanks for supplying patch, it works for me on several 7.2 servers
State Changed From-To: feedback->open maintainer supplied a patch some time ago and it has been confirmed to work.
State Changed From-To: open->analyzed Perhaps 'analyzed' is a better state for this.
Responsible Changed From-To: freebsd-ports-bugs->pgollucci I'll take it.
State Changed From-To: analyzed->open Maintainer has approved.
pgollucci 2010-02-12 02:31:09 UTC FreeBSD ports repository Modified files: security/pam_pwdfile Makefile security/pam_pwdfile/files Makefile.bsd Added files: security/pam_pwdfile/files _pam_macros.h patch-bigcrypt.c Log: - Fix runtime to actually work update the custom Makefile add a required header fix bigcrypt PR: ports/138483 Submitted by: Ben Schumacher <me@benschumacher.com> Approved by: Michael Schout <mschout@gkg.net> (maintainer) Revision Changes Path 1.7 +3 -0 ports/security/pam_pwdfile/Makefile 1.3 +19 -1 ports/security/pam_pwdfile/files/Makefile.bsd 1.1 +196 -0 ports/security/pam_pwdfile/files/_pam_macros.h (new) 1.1 +11 -0 ports/security/pam_pwdfile/files/patch-bigcrypt.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"
State Changed From-To: open->closed Committed. Thanks!