connection rejected: user name not authorized to connect
Moderator: Moderators
connection rejected: user name not authorized to connect
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)
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.
-
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: connection rejected: user name not authorized to connect
Host does not support mid join.jivvz wrote:what does it mean? why does it happen?
it showed when trying to spectate an ongoing chicken defense game.
(in a messagebox)
He needs to set AllowAdditionalPlayers=1 in springconfig.cfg / .springrc
Re: connection rejected: user name not authorized to connect
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 wrote: Host does not support mid join.
-
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: connection rejected: user name not authorized to connect
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.
Re: connection rejected: user name not authorized to connect
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.
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.
-
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: connection rejected: user name not authorized to connect
I'm not saying that has ever happened or is likely to happen. It was just an example.jivvz wrote:I dont see how a name can be "wrong" in any other way.
- BrainDamage
- Lobby Developer
- Posts: 1164
- Joined: 25 Sep 2006, 13:56
Re: connection rejected: user name not authorized to connect
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
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
Re: connection rejected: user name not authorized to connect
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.
Re: connection rejected: user name not authorized to connect
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.)
Would you be ok with that, BrainDamage?connection rejected: user name not authorized to connect. This usually means that the host does not support mid-game join.
Re: connection rejected: user name not authorized to connect
this should the default value and it should be added to springsettings.exeSirMaverick wrote:Host does not support mid join.jivvz wrote:what does it mean? why does it happen?
it showed when trying to spectate an ongoing chicken defense game.
(in a messagebox)
He needs to set AllowAdditionalPlayers=1 in springconfig.cfg / .springrc
Re: connection rejected: user name not authorized to connect
actually it appears when player try to rejoin before the game realizes he dropped (for some reason it lasts even 1 min)
- BrainDamage
- Lobby Developer
- Posts: 1164
- Joined: 25 Sep 2006, 13:56
Re: connection rejected: user name not authorized to connect
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?Satirik wrote:this should the default value and it should be added to springsettings.exeSirMaverick wrote:Host does not support mid join.jivvz wrote:what does it mean? why does it happen?
it showed when trying to spectate an ongoing chicken defense game.
(in a messagebox)
He needs to set AllowAdditionalPlayers=1 in springconfig.cfg / .springrc
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 wanthoijui 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.)Would you be ok with that, BrainDamage?connection rejected: user name not authorized to connect. This usually means that the host does not support mid-game join.
no, you do get a different message: "connection rejected: username already ingame" which is perfectly normal since reconnection timeout didn't expire yetWombat wrote:actually it appears when player try to rejoin before the game realizes he dropped (for some reason it lasts even 1 min)
-
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: connection rejected: user name not authorized to connect
https://github.com/spring/spring/blob/8 ... r.cpp#L149BrainDamage wrote:is IS default set to 1, and it should not be touched imoSatirik wrote:this should the default value and it should be added to springsettings.exeSirMaverick wrote: He needs to set AllowAdditionalPlayers=1 in springconfig.cfg / .springrc
Code: Select all
allowAdditionalPlayers = configHandler->Get("AllowAdditionalPlayers", false);
- BrainDamage
- Lobby Developer
- Posts: 1164
- Joined: 25 Sep 2006, 13:56
Re: connection rejected: user name not authorized to connect
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
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
-
- Posts: 834
- Joined: 19 May 2009, 21:10
Re: connection rejected: user name not authorized to connect
+1BrainDamage 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
And not everyone from home has enough bandwidth to allow unknown number of additional players.