mais j'ai compilé pam_mysql 0.7 et j'ai cette fois l'adresse IP
MAIS, j'ai une requete en plus!!
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - INSERT INTO connection (action, username, host, pid, timestamp) VALUES ('AUTHENTICATION FALURE (FIRST_PASS)', 'toto@toto.com', '192.168.1.2', '13577', NOW())
ci apres le contenu global de /var/log/secure.log
Apr 12 14:25:14 postfix saslauthd[13577]: rel_accept_lock : released accept lock
Apr 12 14:25:14 postfix saslauthd[13578]: get_accept_lock : acquired accept lock
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option verbose is set to "1"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option sqllog is set to "yes"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option logtable is set to "connection"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option logmsgcolumn is set to "action"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option logusercolumn is set to "username"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option logpidcolumn is set to "pid"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option loghostcolumn is set to "host"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option logtimecolumn is set to "timestamp"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_close_db() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_sm_authenticate() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_open_db() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_open_db() returning 0.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_check_passwd() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_format_string() called
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_quick_escape() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - SELECT password FROM mailbox WHERE username = 'toto@toto.com'
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_check_passwd() returning 6.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_sql_log() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_format_string() called
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_quick_escape() called.
Apr 12 14:25:14 postfix last message repeated 2 times
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - INSERT INTO connection (action, username, host, pid, timestamp) VALUES ('AUTHENTICATION FALURE (FIRST_PASS)', 'toto@toto.com', '192.168.1.2', '13577', NOW())
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_sql_log() returning 0.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_converse() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_open_db() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_check_passwd() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_format_string() called
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_quick_escape() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - SELECT password FROM mailbox WHERE username = 'toto@toto.com'
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_check_passwd() returning 0.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_sql_log() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_format_string() called
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_quick_escape() called.
Apr 12 14:25:14 postfix last message repeated 2 times
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - INSERT INTO connection (action, username, host, pid, timestamp) VALUES ('AUTHENTICATION SUCCESS', 'toto@toto.com', '192.168.1.2', '13577', NOW())
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_sql_log() returning 0.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_sm_authenticate() returning 0.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option host is set to "127.0.0.1"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option db is set to "postfix"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option user is set to "postfix"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option passwd is set to "postfix"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option table is set to "mailbox"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option usercolumn is set to "username"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option passwdcolumn is set to "password"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option crypt is set to "1"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option verbose is set to "1"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option sqllog is set to "yes"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option logtable is set to "connection"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option logmsgcolumn is set to "action"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option logusercolumn is set to "username"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option logpidcolumn is set to "pid"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option loghostcolumn is set to "host"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option logtimecolumn is set to "timestamp"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - option where is set to "mailbox.active=1"
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_close_db() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_sm_acct_mgmt() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_open_db() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_open_db() returning 0.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_query_user_stat() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_format_string() called
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_quick_escape() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - SELECT 0, password FROM mailbox WHERE username = 'toto@toto.com' AND (mailbox.active=1)
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_query_user_stat() returning 0.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_sql_log() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_format_string() called
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_quick_escape() called.
Apr 12 14:25:14 postfix last message repeated 2 times
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - INSERT INTO connection (action, username, host, pid, timestamp) VALUES ('QUERYING SUCCESS', 'toto@toto.com', '192.168.1.2', '13577', NOW())
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_sql_log() returning 0.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_sm_acct_mgmt() returning 0.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_release_ctx() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_destroy_ctx() called.
Apr 12 14:25:14 postfix saslauthd[13577]: pam_mysql - pam_mysql_close_db() called.