While looking at the CLI login details the help page says:
login <user> <password>
The "login" command allows the caller to authenticate itself on the server, as defined in the Security pane of the server preferences. Like any other command, the user and password must be escaped. If successful, the server replaces the password with 6 star characters. If unsuccessful, the server disconnects. If security is off this command is always successful.
Examples:
Request: "login user correctpassword<LF>"
Response: "login user ******<LF>"
Request: "login user wrongpassword<LF>"
Response: (Connection terminated)
Unfortunately this is not what happens. when the username/password is wrong the server actually sends "login user ******" and THEN terminates the connection. This could be simply a documentation problem obviously.
Quote:
login <user> <password>
The "login" command allows the caller to authenticate itself on the server, as defined in the Security pane of the server preferences. Like any other command, the user and password must be escaped. If successful, the server replaces the password with 6 star characters. If unsuccessful, the server disconnects. If security is off this command is always successful.
Examples:
Request: "login user correctpassword<LF>"
Response: "login user ******<LF>"
Request: "login user wrongpassword<LF>"
Response: (Connection terminated)