connection rejected: user name not authorized to connect

connection rejected: user name not authorized to connect

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
jivvz
Posts: 38
Joined: 04 May 2009, 00:03

connection rejected: user name not authorized to connect

Post by jivvz »

what does it mean? why does it happen?
it showed when trying to spectate an ongoing chicken defense game, not on an autohost, i think.

(in a messagebox)
Last edited by jivvz on 11 Dec 2010, 16:44, edited 1 time in total.
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: connection rejected: user name not authorized to connect

Post by SirMaverick »

jivvz wrote:what does it mean? why does it happen?
it showed when trying to spectate an ongoing chicken defense game.

(in a messagebox)
Host does not support mid join.

He needs to set AllowAdditionalPlayers=1 in springconfig.cfg / .springrc
jivvz
Posts: 38
Joined: 04 May 2009, 00:03

Re: connection rejected: user name not authorized to connect

Post by jivvz »

SirMaverick wrote: Host does not support mid join.
That's what i think it should say. or "host does not allow mid join", "host does not support joining an already running game." failproof from misunderstandings imo :]
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: connection rejected: user name not authorized to connect

Post by SirMaverick »

You also see this message if you connect with a wrong name (+ mid join disabled). "host does not allow mid join" would be a confusing in that case.
jivvz
Posts: 38
Joined: 04 May 2009, 00:03

Re: connection rejected: user name not authorized to connect

Post by jivvz »

Shouldn't you be able to split these two conditions?
I guess your stated condition is caused by the lobby sending wrong user name...? I dont see how a name can be "wrong" in any other way.
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: connection rejected: user name not authorized to connect

Post by SirMaverick »

jivvz wrote:I dont see how a name can be "wrong" in any other way.
I'm not saying that has ever happened or is likely to happen. It was just an example.
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: connection rejected: user name not authorized to connect

Post by BrainDamage »

by default, spring rejects any username that wasn't present in script.txt
midgame joins, dynamically adds names to that list
since the host could not add names to that list, because eg. the game is overcrowded or the user is banned, the text "username not authorized" is perfectly meaningful in all cases
jivvz
Posts: 38
Joined: 04 May 2009, 00:03

Re: connection rejected: user name not authorized to connect

Post by jivvz »

I know I'm repeating myself now, but I want to reinstate my position. I think it would be of great help for users if this message got diversified.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: connection rejected: user name not authorized to connect

Post by hoijui »

As in practice, this is by far the most common reason, what about changing the message to something like:
connection rejected: user name not authorized to connect. (The host may not support mid-game join.)
connection rejected: user name not authorized to connect. This usually means that the host does not support mid-game join.
Would you be ok with that, BrainDamage?
Satirik
Lobby Developer
Posts: 1688
Joined: 16 Mar 2007, 18:27

Re: connection rejected: user name not authorized to connect

Post by Satirik »

SirMaverick wrote:
jivvz wrote:what does it mean? why does it happen?
it showed when trying to spectate an ongoing chicken defense game.

(in a messagebox)
Host does not support mid join.

He needs to set AllowAdditionalPlayers=1 in springconfig.cfg / .springrc
this should the default value and it should be added to springsettings.exe
User avatar
Wombat
Posts: 3379
Joined: 15 Dec 2008, 15:53

Re: connection rejected: user name not authorized to connect

Post by Wombat »

actually it appears when player try to rejoin before the game realizes he dropped (for some reason it lasts even 1 min)
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: connection rejected: user name not authorized to connect

Post by BrainDamage »

Satirik wrote:
SirMaverick wrote:
jivvz wrote:what does it mean? why does it happen?
it showed when trying to spectate an ongoing chicken defense game.

(in a messagebox)
Host does not support mid join.

He needs to set AllowAdditionalPlayers=1 in springconfig.cfg / .springrc
this should the default value and it should be added to springsettings.exe
is IS default set to 1, and it should not be touched imo, I added it for other reasons (quick testing) and I forgot to remove it, if you want to block users from joining, simply don't send adduser from the lobby?
hoijui wrote:As in practice, this is by far the most common reason, what about changing the message to something like:
connection rejected: user name not authorized to connect. (The host may not support mid-game join.)
connection rejected: user name not authorized to connect. This usually means that the host does not support mid-game join.
Would you be ok with that, BrainDamage?
personally not much ( I have the feeling that people will misread the usually in "always" and start nagging the hosts/lobby devs in cases where they don't need to), but I have the feeling I'm a bit biased on it so go ahead if you want
Wombat wrote:actually it appears when player try to rejoin before the game realizes he dropped (for some reason it lasts even 1 min)
no, you do get a different message: "connection rejected: username already ingame" which is perfectly normal since reconnection timeout didn't expire yet
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: connection rejected: user name not authorized to connect

Post by SirMaverick »

BrainDamage wrote:
Satirik wrote:
SirMaverick wrote: He needs to set AllowAdditionalPlayers=1 in springconfig.cfg / .springrc
this should the default value and it should be added to springsettings.exe
is IS default set to 1, and it should not be touched imo
https://github.com/spring/spring/blob/8 ... r.cpp#L149

Code: Select all

allowAdditionalPlayers = configHandler->Get("AllowAdditionalPlayers", false);
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: connection rejected: user name not authorized to connect

Post by BrainDamage »

ah sorry, that one, I was confused on the name, it was WhiteListAdditionalPlayers that I added and should be removed and forced to be true

I checked the code again to be sure, and now I can say that allowAdditionalPlayers should remain off, or anyone would be able to connect spoofing any nick, as well as be able DoS the server with connection attemps
SirMaverick
Posts: 834
Joined: 19 May 2009, 21:10

Re: connection rejected: user name not authorized to connect

Post by SirMaverick »

BrainDamage wrote:I checked the code again to be sure, and now I can say that allowAdditionalPlayers should remain off, or anyone would be able to connect spoofing any nick, as well as be able DoS the server with connection attemps
+1
And not everyone from home has enough bandwidth to allow unknown number of additional players.
Post Reply

Return to “Help & Bugs”