since the upgrade to pam-mysql-0.7_rc1, the
option 'update_table' (users.update_table in config
file) is completely ignored.
When looking at the sourcecode (no, I don't really
understand all of it), I found this around line 2893:
err = pam_mysql_format_string(ctx, &query,
(ctx->where == NULL ?
"UPDATE %[table] SET %[passwdcolumn] = '%s'
WHERE %[usercolumn] = '%s'":
"UPDATE %[table] SET %[passwdcolumn] = '%s'
WHERE %[usercolumn] = '%s' AND (%S)"),
1, (encrypted_passwd == NULL ? "":
encrypted_passwd), user, ctx->where);
if (err) {
goto out;
}
I found no other part of the code where 'UPDATE' is
used, so this must be the interesting part.