Comment 11 for bug 484069

Revision history for this message
Ronald Bradford (ronaldbradford) wrote :

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.