Docunext

  • About

Pluggable Authentication Modules PAM

February 1st, 2007

PAM is a very flexible tool for authentication. I use it with Apache for realm-based authentication via MySQL with the help of pam_mysql, and I'm trying to set it up so that there is a "WHERE" clause in the SQL statement.

It goes like this:

auth required pam_mysql.so ignore_root user=user_name passwd=pass_key db=db_name table=table_name \

usercolumn=user_column_name passwdcolumn=password_column [where=another_column_name='value'] \

crypt=your_crypt_setting

Works like a charm!

Yearly Indexes: 2010 2003 2005 2006 2007 2008 2009 2004 2011 2012 2013 2015 2019 2020