#New 42.13.2 Whitelist config?

1 messages ยท Page 1 of 1 (latest)

cyan heron
#

How?

#

New 42.13.2 Whitelist config?

fierce mauve
#

Must set server to "open" in order to let ppl including admin to get in

#

Im guessing that the developer did an oopsie when they tried the new system

tawdry shadow
#

Adduser no longer requires a password

fierce mauve
#

I as an admin got stuck outside of my server bc i set open=false

tawdry shadow
#

Public servers should always be set to Open as far as I know

#

The setting that controls the whitelist creation is AutoCreateUserInWhiteList

fierce mauve
hardy heath
#

Have you used the /addsteamid command in your server's console to add your own SteamId?

#

I'm fairly certain, since you said your server is "not public" you mean Open=false. The comments related to the "Open" setting within your server config states: Clients may join without already having an account in the whitelist. If set to false, administrators must manually create username/password combos. So you'll need to ensure all players have username/password combos.

This means the administrator will have to create those username/password combos yourself. If the admin goes into your server's console and types: /adduser <username> <password> with the specific username and password for your players, it should add it. (Though based on what Beard says, you may need to use /addsteamid <username> <password> now instead.

If you want players to be able to create their own username/password combos, you'll have to set Open=true, allows players to create their own user/pass and connect, then when that's all done you can set Open=false again.

cyan heron
#

I'm gonna have to write a script then I guess

hardy heath
#

No, I don't think so. I'm fairly certain the whitelist info is stored in an SQLite db file. You could potentially edit that file if you have an SQLite database editor.

#

But a script using the command would likely be far easier.

cyan heron
#

the game could just read from a whitelist.txt if it wanted.... Was really hoping it was gonna get that

hardy heath
#

Do you have a lot of players you're trying to account for?

cyan heron
#

little under 100 that I have no interest in typing one by one

hardy heath
cyan heron
#

well if it's just the adduser command, I'll just powershell it into rcon

hardy heath
cyan heron
#

I was just hoping to scrape my user.txt file for steamIDs and do it that way

#

I'm currently doing Open true with add to whitelist and passworded

tawdry shadow
fierce mauve
#

Public is false
Open is false (before 42.13.2)

I only want people with whitelisted username and password to join. Since I dont want any uninvited guest to get in and causing troubles

fierce mauve
tawdry shadow
#

Either their Steam IDs or usernames

bleak spire
#

Both addsteamid <steamID> and adduser <user> <pass> work according to the server repl, but the user still receives the "An account password is required" auth failure.

#

Neither seem to be updating the password in the whitelist

bleak spire
#

So far the only way I've been able to let people in is to kill the whitelist with Open=false in the server .ini

haughty phoenix
#

I did /addsteamid idnumber

The I was able to log into my character.

#

But I dont have admin access in game even though i've given it to myself via the console.

bleak spire
#

Do you have Open=false in the .ini @haughty phoenix?

haughty phoenix
#

yeah its a closed server.

bleak spire
#

Weird

#

That gives me hope though

haughty phoenix
#

weirdly I cant view the server options.

#

but i know because the file.

#

Trying to figure out why I dont have admin access anymore. More werid my character is still invisible to the zombies.

hexed pelican
#

is there a documentation page for these changes? I have a whitelisted server where admins manually created usernames/passwords, but no one, not even admin, can log in. the steamid column in the server's db/servertest.db whitelist table shows everyone's steam ids already

bleak spire
#

That's where I am as well @hexed pelican

#

I've even tried adding totally new characters for steam accounts that have been whitelisted via "addsteamid", and it repeatedly tells them that they need a password despite giving them a password

#

I'm going to temporarily roll back until the whitelist is confirmed to work

haughty phoenix
#

probably a good call.

#

def seems they sent out a broken version of the new whitelist system

#

I got players into my server but I have no in game admin controls.

hexed pelican
#

rolling back sadly not an option for gportal

haughty phoenix
#

I can do stuff from the console and thats fine enough.

hexed pelican
#

it would be great if there was an option to disable steamid whitelisting without giving up the username/password whitelisting...this seems very broken emyySmoge

bleak spire
#

Or just use a text file or .csv for the whitelist

#

Maybe make it importable into the db

hexed pelican
#

if you are comfortable with editing the server's database, this sqlite query should copy all of your previously whitelisted users to the new steamid whitelist

SELECT DISTINCT steamid FROM whitelist WHERE whitelist.steamid IS NOT NULL AND whitelist.steamid NOT IN (
    SELECT allowedsteamid.steamid FROM 
        allowedsteamid
        INNER JOIN whitelist ON allowedsteamid.steamid=whitelist.steamid
        WHERE whitelist.steamid IS NOT NULL
);```
bleak spire
#

That's actually a great way to do it

#

Or at least the idea is there

#

So outside of manually adding the steam id's, you guys can get the whitelist to work?

#

I can't seem to get the whitelist to work at all, even with the steamid's added

hexed pelican
#

I've only tested my admin account so far, haven't reopened to the masses yet

#

but I am logging in as admin with the whitelist enabled

#

(though the "admin" account is logging in with zero admin powers Oopsie )

#

I can rcon setaccesslevel admin admin while logged in, but it only lasts until I relog

hexed pelican
# bleak spire Or at least the idea is there

it should silently ignore "old" whitelist entries that lack a steamid, and avoid creating duplicates in the "new" steamid whitelist. open to feedback if you see an edge case that I missed

#

my sql is rusty OLDMANYELLSATCLOUD

bleak spire
#

Hah I know better than to rip any code straight into prod ๐Ÿ˜›

#

"prod" ๐Ÿ˜‚

#

But like I said the idea looks right

hexed pelican
#

I haven't tested whether the console commands actually do what they're supposed to. have only worked with manual database edits to preserve our user list so far

bleak spire
#

Alright I'll upgrade again here in a bit and double check with dbeaver

#

Really appreciate the sanity check

hexed pelican
#

has anyone tested if Open=true and AutoCreateUserInWhiteList=false would restore the old behavior? no steamid whitelist, but admins must still create user accounts?

it doesn't seem like the tooltips are consistent with current behavior, or they're at least referring to ambiguously different meanings for "whitelist"

hexed pelican
hexed pelican
#

the whitelisting process for new users seems to be two steps now. addsteamid accepts only one argument (a numeric steamID64), despite its help text

~~and while it's true that adduser does function with only one argument, its single-argument behavior is to create an account whose password is not checked at all. I cannot imagine the use-case for this...I tested manually corrupting the stored steamid for a user account, and the server doesn't seem to block other steamids from logging into accounts that aren't theirs...it just associates with the most recent login. so...don't make accounts without passwords melziiHUH ~~ (see below, no account passwords are ever checked)

example over rcon for a completely-fresh test server...I think just put slashes in front of the adduser and addsteamid commands if you have console access

User buckma22 created with password
$ rcon -a 192.168.1.3:27015 -p rconpassword "addsteamid 12345"
SteamID 12345 added to allowed SteamIDs

and I can log in then

#

so it seems like there are effectively two whitelists--you must be on both, and they don't seem to communicate with each other at all

#

if you have existing users, I think /addsteamid numericsteamid for each person already that already has an account should be enough (or edit your database #1462809642374664255 message )

hexed pelican
#

<@&756556556488933526> sorry for the ping, but this seems urgent. is this known internally, or should it be a bug report? (tho I hesitate to make it more visible given how abusable this is)

hexed pelican
tawdry shadow
#

Could you also write the expected behavior?

#

I assume the tldr is that the whitelist isnt blocking new accounts correctly?

hexed pelican
ivory anchor
#

can confirm seeing the same issue, only on a whitelisted none public server, but an open server without a whitelist does not have this issue

almost a saving grace is that admin doesn't persist after relog but anyone can log in as any user currently

hexed pelican
hexed pelican
mint locust
# tawdry shadow Will forward this info

this needs to be escelsated ASAP because as it stands, I can log in as any character on the server and nuke their run and Idk if there is much worse than that

ivory anchor
#

i would suggest using a temp server password and removing the whitelist requirement, this will stop that from happening

we've just switched Ducks server over and it's at least secure now until it's updated, it's been a long week today Despairge

bleak spire
#

I can also confirm that account passwords are not checked for any users on the allowedsteamid table unless Open=true.

PS fantastic idea for adding all of your existing users to the allowedsteamid table @hexed pelican ๐Ÿ™
Your SQL works. I was pretty impressed with the foresight to ensure you're not throwing duplicates in there.

hexed pelican
tawdry shadow
bleak spire
#

@hexed pelican was it you that commented on a different thread about some zombies randomly being unhittable until you relog?

hexed pelican