trellix-enterprise / mysql-audit

AUDIT Plugin for MySQL. See wiki and readme for description. If you find the plugin useful, please star us on GitHub. We love stars and it's a great way to show your feedback.
Other
239 stars 57 forks source link

User Whitelist fails for Users greater than 20 #192

Open wardmp opened 6 years ago

wardmp commented 6 years ago

When setting the audit_whitelist_users for users with names longer than 20 characters, the user is not whitelisted.

This seems to be because of #define MAX_USER_CHAR_NUMBERS 20 in /include/audit_handler.h which is inconsistent with the limit of 32 characters in MySql and the length of the user returned from MySql.

In addition, it would be useful to be able to whitelist users using wildcards.

horovitzdan commented 6 years ago

WIP...

ghost commented 6 years ago

Any update on this? @horovitzdan

ghost commented 6 years ago

Looks as if it has been fixed, thanks!