patchFreeciv - Patches: patch #3388, fcdb: allow database.lua to set...

Show feedback again

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

Submitted by:  Jacob Nevins <jtn>
Submitted on:  Sun Jul 8 16:16:26 2012  
Category: generalPriority: 5 - Normal
Status: DuplicatePrivacy: Public
Assigned to: Marko Lindqvist <cazfi>Open/Closed: Closed
Planned Release: 3.0.0Contains string changes: None

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Wed May 3 05:37:29 2017, comment #1:

Handled at hostedredmine:

Marko Lindqvist <cazfi>
Project AdministratorIn charge of this item.
Sun Jul 8 16:16:26 2012, original submission:

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

Jacob Nevins <jtn>
Project Administrator


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


   bug dependencies.

   task dependencies.


Carbon-Copy List
  • -unavailable- added by cazfi (Updated the item)
  • -unavailable- added by jtn (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed May 3 05:37:29 2017cazfiCategoryNone=>general
      Assigned toNone=>cazfi
    Tue May 3 23:58:55 2016cazfiPlanned Release=>3.0.0
    Sun Jul 8 16:44:46 2012jtnDependencies-=>Depends on bugs #19729
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup