AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SourceBans / SourceBans++ (https://forums.alliedmods.net/forumdisplay.php?f=152)
-   -   Admin Plugins? (https://forums.alliedmods.net/showthread.php?t=226602)

Blackglade 09-20-2013 11:53

Admin Plugins?
 
So while running the new sourcebans, i noticed that nothing was being written onto my admin.cfg or admin_simple.ini.

Does this mean that the new sourcebans uses an SQL Admin setup and just pulls admins for the sourcebans database?

lyric 09-20-2013 12:15

Re: Admin Plugins?
 
i thougth thats how it always worked

Blackglade 09-20-2013 12:54

Re: Admin Plugins?
 
Quote:

Originally Posted by lyric (Post 2037976)
i thougth thats how it always worked

I assumed it wrote down the information in admin.cfg and the groups in admin_groups.cfg. Does this mean i don't need the admin-flatfile.smx file anymore?

FlyingMongoose 09-21-2013 02:49

Re: Admin Plugins?
 
You never needed admin-flatfile.smx when using sourcebans.

One of the first iterations of sourcebans (1.x) attempted to download and store admins.cfg and admin_groups.cfg so, in the case of a disconnect, it would still assign proper access rights. I'm not certain if Tsunami has edited this functionality, and if he has, I don't know how.

Walliski 09-28-2013 11:40

Re: Admin Plugins?
 
I have a faint memory of reading that Sourcebans will in the 2+ versions use parts of the integrated Sourcemod SQL bans system, which means that the admins and stuff will be cached somehow in another file than admin.cfg, and therefor not be required to write in them... But cant seem to find the source of this information now.

DJ Tsunami 09-28-2013 12:44

Re: Admin Plugins?
 
You're somewhat right :) Here's the full explanation:

SourceMod has an in-memory admin cache, which is only cleared when sm_reloadadmins (DumpAdminCache) is called, and of course when the server is restarted.

SourceBans 1 only writes to admins.cfg and admin_groups.cfg for when your database is down during either of these scenarios. admin-flatfile.smx is needed to read these files. This is an optional feature that can be disabled with the BackupConfigs option in sourcebans.cfg.

SourceBans 2's admin plugin is literally admin-sql-threaded.smx refactored for SourceBans, and does not (yet?) have this feature. I don't see the need for it at the moment, because this plugin fetches permissions every time an admin reconnects*, so there is rarely a need to call sm_reloadadmins. And if your database happens to be down while restarting the server, just wait for it to come back up and run sm_reloadadmins manually.

* This also saves us from having to implement admin rehashing in the web panel (which slowed down editing a lot), since an admin can just wait for a mapchange or reconnect manually to receive their new permissions.


All times are GMT -4. The time now is 09:06.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.