HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...
fcdb: allow database.lua to set user's cmdlevel, delegation etc
Jacob Nevins <jtn>:
"An obvious extension for an authentication database would be to store access levels (cmdlevels) in it. I don't think this is possible with the current fcdb arrangements, however, as database.lua has no way to cause the cmdlevel to be changed.
The obvious thing is to give the script access to issue arbitrary server commands such as 'cmdlevel' (assuming we open up the security model per bug #19729). However, at the point where the script is naturally invoked (checking credentials), it's probably not practical to do this, so there'd probably need to be a further callback into Lua once the connection structure was set up and the server could accept further commands.
Delegation feels like something that could live in a database, too. However, this applies to players rather than users, so I'm less clear how that would work precisely. Possibly the script would need access to game structures (patch #3385?)"
#10 Updated by Marko Lindqvist 5 months ago
I'm working on this, but at the same time thinking that we could postpone this to 3.2, i.e., to commit to master only. There's no pressing need to have this in 3.1, and all of the patch series is not that trivial change (I'd rather test it in master for a bit longer time). This might help freeciv-web's fcdb usage development, but that is master only.
#15 Updated by Marko Lindqvist 3 months ago
- File 0033-fcdb-lua-Add-auth.get_cmdlevel-and-auth.set_cmdlevel.patch 0033-fcdb-lua-Add-auth.get_cmdlevel-and-auth.set_cmdlevel.patch added
- Status changed from New to Resolved