Skip to content
Pam-mysql fork from source forge with some fix
Shell C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
COPYING
CREDITS
ChangeLog
INSTALL
LICENSE
Makefile.am
Makefile.in
NEWS
README
README.md
acinclude.m4
aclocal.m4
config.guess
config.h.in
config.sub
configure
configure.in
install-sh
ltmain.sh
missing
mkinstalldirs
pam_mysql.c
pam_mysql.spec
pam_mysql.spec.in
pkg.m4
stamp-h.in

README.md

Pam-mysql fork from source forge with some fix

Pam-mysql seems to be unmaintained, so i decided to provide some fixes.

  • Memory leak error | Fixed
  • SHA1 and MD5 encryption | Fixed

Compilation

$ ./configure --with-cyrus-sasl2 --with-openssl
$ make
$ make install 

Compiled files can be found here :

/lib/security/pam_mysql.so
/lib/security/pam_mysql.la

Enable SHA1 and MD5 encryption

Thanks to : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=418500#50

Memory leak - error output before fix

Thanks to : http://sourceforge.net/p/pam-mysql/bugs/27/#c2aa

Can t initialize threads: error 11
AUTH-PAM: BACKGROUND: user 'xxx' failed to authenticate: Permission denied
You can’t perform that action at this time.