Project

General

Profile

Feature #657143

fcdb: allow database.lua to set user's cmdlevel, delegation etc

Added by Marko Lindqvist 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
Due date:
% Done:

0%


Description

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?)"


Related issues

Blocks Freeciv - Task #656466: S3_0 datafile format freeze (d3f) In Progress 2018-01-02
Blocked by Freeciv - Feature #657141: Lua 'fcdb' instance should not share security restrictions with 'game' instance Closed

History

#1 Updated by Marko Lindqvist 5 months ago

  • Blocks Task #656466: S3_0 datafile format freeze (d3f) added

#2 Updated by Marko Lindqvist 5 months ago

  • Blocked by Feature #657141: Lua 'fcdb' instance should not share security restrictions with 'game' instance added

Also available in: Atom PDF