I am connecting to an FTPS Server with credentials like:
myusername
86FAT!Q@12..
I can connect to the FTPS Server just fine with these credentials. I was developing a small application with Java to connect to this FTPS Server and I wanted to test the following code:
final boolean login = ftpsClient.login(username, "86FAT!Q@12..");
if (!login) {
LOGGER.error("Login failed. Is the password for username: " + username + " wrong?");
}
and I wanted to make sure that LOGGER was working fine so I created a test with a wrong password, I simply changed the last character from '.' to '!', so tried logging in with:
86FAT!Q@12.!
But login was successful? Then I tried: (note the first character)
76FAT!Q@12..
and login was not successful, which is what I already expected..
So I tried Cyberduck and the wrong password worked with Cyberduck as well.. I know, you are tempted to say maybe the password ending with '!' is not wrong after all. But it is, I am sure, as I was the one who created the user in the server.. And the weird thing is, this will work too:
86FAT!Q@12.@
and login is again successful..
Is there are rule that I do not know about FTPS credentials? Like check only the first 5 characters, ignore the last character in the password.. etc? Is this about FTPS Server configuration?