- 18 Oct, 2013 10 commits
-
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
Also called show grants before and after set role. Unfortunately the role privileges printing are not implemented yet.
-
Vicențiu Ciorbaru authored
The testcase checks to see if the privileges are set accordingly to a newly created user. This is the most general usecase.
-
Vicențiu Ciorbaru authored
The testcase checks to see if the create user command sets the is_role column to 'N' by default
-
Vicențiu Ciorbaru authored
SET ROLE NONE;
-
Vicențiu Ciorbaru authored
separate function.
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
as well as only set privileges in the update() function.
-
Sergei Golubchik authored
-
- 17 Oct, 2013 30 commits
-
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
the current user via the current security_context
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
roles
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
Renaming a user via RENAME USER command causes either the user columns to update, or the role columns.
-
Vicențiu Ciorbaru authored
The function now handles user updates/deletions correctly.
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
Also fixed a bug regarding the HASH iteration. It previously got the stop condition from a different hashtable and this caused errors when the hash sizes were different.
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
consistent.
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
The logic is not complete yet.
-
Vicențiu Ciorbaru authored
no longer valid entries in the roles_mappings HASH. This job will be delegated to handle_grant_* functions
-
Vicențiu Ciorbaru authored
It will only hold _valid_ entries for as long as it held in memory. Any change regarding acl_users or acl_roles in memory should update the structure immediately. This is why the rebuild_roles_mappings no longer removes invalid entries. In order to keep things consistent with the existing code, the following jobs are assigned to each function: The role of rebuild_roles_mappings is to recreate the links between users and roles. Any other updates are to be done in the functions: handle_grant_* This change prepares the code for the next step, which is cascading updates.
-
Vicențiu Ciorbaru authored
function
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
Also removed code that loads that column into memory.
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
No cascading changes take place during a user rename. This needs to be addressed.
-
Vicențiu Ciorbaru authored
user creation.
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
-
Vicențiu Ciorbaru authored
No more memory leaks in the code.
-
Vicențiu Ciorbaru authored
Still problems with hashtable acl_roles Need to create a copy of grant_roles, currently it uses the same buffer
-