clearer error message for wrong credentials?

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
fzluca
500 Command not understood
Posts: 4
Joined: 2020-09-25 13:35
First name: Flavio
Last name: Zarur

clearer error message for wrong credentials?

#1 Post by fzluca » 2020-09-25 13:44

Hello, friends!

By any chance, is it possibe to translate the error message when user provides wrong credentials?

Error: 530 User cannot log in.

This error is not so clear. I wish we could make it clearer, something like "Wrong user or password". It would with users possibly understanding the issue better and sooner.

Thanks!

User avatar
botg
Site Admin
Posts: 33171
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: clearer error message for wrong credentials?

#2 Post by botg » 2020-09-25 16:43

The message comes straight from the server and could have any number of reasons. It would be misleading to display a different error instead.

fzluca
500 Command not understood
Posts: 4
Joined: 2020-09-25 13:35
First name: Flavio
Last name: Zarur

Re: clearer error message for wrong credentials?

#3 Post by fzluca » 2020-09-25 18:21

Thanks. Other situations, I imagined.

But it would be really nice if wrong user or pwd could have a clearer message. Can you consider it as a feature request, pls? or let us customize the error? Ideally, in case of wrong user or pwd show a clearer error...

User avatar
boco
Contributor
Posts: 25279
Joined: 2006-05-01 03:28
Location: Germany

Re: clearer error message for wrong credentials?

#4 Post by boco » 2020-09-25 21:02

That's the question, the server doesn't tell exactly what's wrong. FileZilla thus cannot know if it is a wrong username, password, account suspended, or even the heat death of the universe. It would be misleading to display any specific message as we don't know.

Please note that this behavior is by design, the server will not tell if the username and/or password is/are wrong, in order to prevent password guessing.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

fzluca
500 Command not understood
Posts: 4
Joined: 2020-09-25 13:35
First name: Flavio
Last name: Zarur

Re: clearer error message for wrong credentials?

#5 Post by fzluca » 2020-09-25 21:44

Hi,

I see. Thanks a lot for such a fast and nice reply. Still, Id consider something like "Incorrect login. Possible incorrect user/pwd or other errors".

But I do understand how complex it is.

Thanks!!

User avatar
boco
Contributor
Posts: 25279
Joined: 2006-05-01 03:28
Location: Germany

Re: clearer error message for wrong credentials?

#6 Post by boco » 2020-09-25 23:51

Two issues:

1. It's the server that sends exactly that text. While FileZilla only evaluates the response code (530) and ignores the text, modifying it is something no program should ever do (it's regarded as tampering with).

2. As already said, the error could be anything. Imagine the server lost its user database, same error. Imagine you are connecting to the wrong server, same error. And so on.


@botg: Modifying the server message is out of the question, but would it be possible to add a short status line after the login error, essentially saying "Check login credentials, contact server administrator if error persists!"?
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

fzluca
500 Command not understood
Posts: 4
Joined: 2020-09-25 13:35
First name: Flavio
Last name: Zarur

Re: clearer error message for wrong credentials?

#7 Post by fzluca » 2020-09-26 12:25

Hi, Boco

I see. Ok, your idea is great. Let's see, if that can be done, would already help.

That's all I want, better guidance to users when it's user or pwd incorrect. Other servers do have that. For example, just put wrong pwd in some other FTP server I have, I got 530 Login authentication failed

Thanks.

User avatar
boco
Contributor
Posts: 25279
Joined: 2006-05-01 03:28
Location: Germany

Re: clearer error message for wrong credentials?

#8 Post by boco » 2020-09-27 09:29

It's the statement the developer always posts when someone asks about 530 Login incorrect. Putting it into the program will hopefully prevent many further posts about the problem. It's the sad truth that we cannot provide much help regarding pure server errors like this one. If the server says "Nay", FileZilla cannot override that.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
### END SIGNATURE BLOCK ###

Post Reply