With Build 1317 pam does not appear to be working.
Built: checking for libpam... yes checking how to link with libpam... -lpam
Starts without error
$ sbin/drizzled --mysql-protocol-port=3399 --plugin_add=auth_pam
I created a dummy OS user testuser/sakila2010
time bin/drizzle --port=4427 --user=testuser --password=sakila2010 ERROR 1045 (28000): Access denied for user 'testuser'@'127.0.0.1' (using password: YES)
real 0m0.003s user 0m0.003s sys 0m0.001s
With /etc/pam.d/check_user
$ cat /etc/pam.d/check_user auth required pam_unix.so account required pam_unix.so [drizzle@dc1 deploy]$ time bin/drizzle --port=4427 --user=testuser --password=sakila2010 ERROR 1045 (28000): Access denied for user 'testuser'@'127.0.0.1' (using password: YES)
real 0m2.055s user 0m0.002s sys 0m0.002s
It takes a lot longer to timeout.
With Build 1317 pam does not appear to be working.
Built:
checking for libpam... yes
checking how to link with libpam... -lpam
Starts without error
$ sbin/drizzled --mysql- protocol- port=3399 --plugin_ add=auth_ pam
I created a dummy OS user testuser/sakila2010
time bin/drizzle --port=4427 --user=testuser --password= sakila2010 @'127.0. 0.1' (using password: YES)
ERROR 1045 (28000): Access denied for user 'testuser'
real 0m0.003s
user 0m0.003s
sys 0m0.001s
With /etc/pam. d/check_ user
$ cat /etc/pam. d/check_ user sakila2010 @'127.0. 0.1' (using password: YES)
auth required pam_unix.so
account required pam_unix.so
[drizzle@dc1 deploy]$ time bin/drizzle --port=4427 --user=testuser --password=
ERROR 1045 (28000): Access denied for user 'testuser'
real 0m2.055s
user 0m0.002s
sys 0m0.002s
It takes a lot longer to timeout.