AuthMe Reloaded

AuthMe Reloaded

3M Downloads

Conversion with CrazyLogin

Freemandns opened this issue ยท 0 comments

commented

What behaviour is observed?

I have a database from CrazyLogin in flat format. I copied it to "plugins/AuthMe", configured "Converter.CrazyLogin.fileName" in "config.yml" according to the name of the database file and set "settings.security.PasswordHash" to "CRAZYCRYPT1". Next, I run the server version "1.18.2" with the plugin version "5.6.0-beta2" and enter the command "authme converter crazylogin". The server responds:

[23:08:26] [Server thread/INFO]: [AuthMe] Successfully started crazylogin
[23:08:26] [Craft Scheduler Thread - 1/INFO]: [AuthMe] CrazyLogin database has been imported correctly

I log on to the server under the username "Freeman" and the server asks me to log in, that is, my username has really been converted and I do not need to register. I enter the password from the CrazyLogin database "TEST_TEST", but the server writes that my password is incorrect.

I tried debugging the code and saw that the hash of my password really didn't match. The password hash in CrazyLogin depends on the user's login, but for some reason the plugin translates my login to lowercase, that is, it turns out "freeman", and it also turns out another password hash.

Expected behaviour

I was registered in CrazyLogin under the username "Freeman" with the password "TEST_TEST". After converting the database, I expect that AuthMe will consider my login-password bundle to be correct.

To Reproduce

In the CrazyLogin database there is a user with the username "Freeman" and the password "TEST_TEST". He successfully passes authorization with the CrazyLogin plugin.

  1. Moved the CrazyLogin databases to "plugins/AuthMe";
  2. In "config.yml" set for the parameter "settings.security.PasswordHash" value "CRAZYCRYPT1";
  3. Started the server;
  4. Entered the command "authme converter crazylogin";
  5. I log on to the server with the username "Freeman";
  6. I enter "/login TEST_TEST";
  7. I am disconnected from the server with the message "Wrong password!".

Plugin list

Plugins (1): AuthMe

Server Implementation

Standalone server (no proxy)

Database Implementation

SQLite

AuthMe Version

Version: AuthMeReloaded v5.6.0-beta2 (build: 2453)

Error log (if applicable)

No response

Configuration

https://gist.github.com/Freemandns/e4e562725905ec8b16f6c2c4619eed01