Pam_mysql 使用 pam.d/

发表于:2007-07-04来源:作者:点击数: 标签:
关于Log的设置 authoptional /lib/security/pam_ mysql .so user=root\ passwd=senha host=localhost\ db=postfix\ table=mailbox\ usercolumn=username\ passwdcolumn=password\ sqllog=0\ logtable=log\ logmsgcolumn=msgcolumn\ logusercolumn=usercolumn

关于Log的设置

> authoptional /lib/security/pam_mysql.so
> user="root"\
> passwd="senha"
> host="localhost"\
> db="postfix"\
> table="mailbox"\
> usercolumn="username"\
> passwdcolumn="password"\
> sqllog=0\
> logtable="log"\
> logmsgcolumn="msgcolumn"\
> logusercolumn="usercolumn"\
> loghostcolumn="hostcolumn"\
> logpidcolumn="pidcolumn"\
> logtimecolumn="timecolumn"\
> crypt=1
>
> #
> accountsufficient/lib/security/pam_unix_acct.so
> accountrequired/lib/security/pam_mysql.so
> user="postfix"\
> passwd="senha"\
> host="localhost"\
> db="postfix"\
> table="mailbox"\
> usercolumn="username"\
> passwdcolumn="password"\
> sqllog=0\
> logtable="log"\
> logmsgcolumn="msgcolumn"\
> logusercolumn="usercolumn"\
> logpidcolumn="usercolumn"\
> loghostcolumn="hostcolumn"\
> logtimecolumn="timecolumn"\
> crypt=1
>

原文转自:http://www.ltesting.net