Details
-
Type:
Task
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Fix Version/s: None
-
Component/s: Admin statements
-
Labels:None
Description
I am trying to have one user masquerade as another: grants, default owner/definer, etc.
This is trivial to do in PostgreSQL because that DB treats “users” merely as “roles that can log in”.
MariaDB’s implementation of ROLEs doesn’t allow this, though it seems a very useful feature. It’s kinda-sorta possible via MariaDB’s PAM auth plugin and perhaps a custom PAM plugin that would rewrite the username, but being able to do this with MariaDB’s native authentication would be most ideal.
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
To give an explicit example, I think Felipe wants to do something like this:
Then if user1 logs in, they can do this:
At the moment, users and roles are in entirely different namespaces, so this isn't currently possible.