Source

iredapd / src / plugins / sql_alias_access_policy.py

Author Commit Message Labels Comments Date
Zhang Huangbin
Code cleanup.
Zhang Huangbin
Supports PostgreSQL. Don't query mail user in plugin 'sql_alias_access_policy.py'.
Zhang Huangbin
Use 'Permission denied' instead of 'Not Authorized' as reject message, otherwise Fail2ban will ban rejected clients.
Zhang Huangbin
Use MySQLdb directly for SQL related operations. Avoid 'too many connections' issue. Fixed incorrect policy name in plugin 'sql_alias_access_policy.py': allowedOnly -> allowedonly (convert to lower case).
Zhang Huangbin
Typo.
Zhang Huangbin
Allow to use same logging hander in plugins, print plugin debug message.
Zhang Huangbin
Add limit=1 for performance improvement while searching accounts.
Zhang Huangbin
Add sample to run RAW SQL command.
Zhang Huangbin
Code cleanup. Don't query SQL in src/iredapd.py, just pass connection cursor to plugins.
Zhang Huangbin
Ability to handle policy 'subdomain'. Bypass if sender is under same domain or sub domains.
Zhang Huangbin
Add 'allowedOnly'. Same as 'moderatorsOnly'.
Zhang Huangbin
Fix typo error.
Zhang Huangbin
Support MySQL backend.