Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion with CrazyLogin #2659

Open
Freemandns opened this issue Dec 19, 2022 · 0 comments · May be fixed by #2660
Open

Conversion with CrazyLogin #2659

Freemandns opened this issue Dec 19, 2022 · 0 comments · May be fixed by #2660

Comments

@Freemandns
Copy link

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

@Freemandns Freemandns linked a pull request Dec 23, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant