URL:
<http://gna.org/patch/?3388>
Summary: fcdb: allow database.lua to set user's cmdlevel,
delegation etc
Project: Freeciv
Submitted by: jtn
Submitted on: Sun Jul 8 17:16:26 2012
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release:
_______________________________________________________
Details:
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?)
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?3388>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev