Roles (partial implementation).
Track granted roles. Represent roles granted to a user with a bitmap. Disallow loops in role grants. Add tests for box.schema.user.grant('username', 'rolename') Add basic tests for loops in grant sequences. Rewrite largely buggy code in authentication token lookup. Do not waste space on authentication token bitmap, correctly check for overflow of the bitmap.
Showing
- src/box/alter.cc 48 additions, 9 deletionssrc/box/alter.cc
- src/box/lua/schema.lua 16 additions, 0 deletionssrc/box/lua/schema.lua
- src/box/session.h 1 addition, 1 deletionsrc/box/session.h
- src/box/user.cc 208 additions, 37 deletionssrc/box/user.cc
- src/box/user.h 54 additions, 3 deletionssrc/box/user.h
- src/errcode.h 2 additions, 1 deletionsrc/errcode.h
- test/box/misc.result 1 addition, 0 deletionstest/box/misc.result
- test/box/role.result 63 additions, 0 deletionstest/box/role.result
- test/box/role.test.lua 20 additions, 0 deletionstest/box/role.test.lua
- test/box/select.result 1 addition, 1 deletiontest/box/select.result
Loading
Please register or sign in to comment