#docker #authentication #authorization #azerothcore
Вопрос:
Я запускаю AzerothCore в Docker, но не могу войти ни в одну из тестовых учетных записей. Я использую пароль по умолчанию » а » и не менял ни один из паролей.
При попытке войти в клиент WotLK я получаю всплывающее окно «введенная вами информация недействительна». Из моего журнала authserver я вижу, что он получает имя пользователя, которое я ввел:
Added realm "AzerothCore" at 127.0.0.1:3306.
Authserver listening to 0.0.0.0:3724
'172.18.0.1:56942' Accepting connection
[4 ms] SQL(p): DELETE FROM ip_banned WHERE unbandate<>bandate AND unbandate<=UNIX_TIMESTAMP()
[4 ms] SQL(p): SELECT * FROM ip_banned WHERE ip = '172.18.0.1'
[0 ms] SQL(p): SELECT a.id, a.locked, a.lock_country, a.last_ip, aa.gmlevel, a.salt, a.verifier, a.token_key FROM account a LEFT JOIN account_access aa ON (a.id = aa.id) WHERE a.username = 'TEST1'
[AuthChallenge] Account 'TEST1' is not locked to ip
[AuthChallenge] Account 'TEST1' is not locked to country
[1 ms] SQL(p): UPDATE account_banned SET active = 0 WHERE active = 1 AND unbandate<>bandate AND unbandate<=UNIX_TIMESTAMP()
[0 ms] SQL(p): SELECT bandate, unbandate FROM account_banned WHERE id = 1 AND active = 1
Я также попытался изменить свой файл authserver.conf на set WrongPass.Logging = 1
, но ни мой журнал, ни база данных не отражают неудачную попытку входа в систему.
Я думаю, что тот факт, что он сообщает мне, что учетная запись test1 не заблокирована на IP-адрес или страну, означает, что она успешно взаимодействует с базой данных, но я не могу понять, в чем здесь моя проблема. Любая помощь в понимании того, что здесь происходит, была бы очень признательна.
Ответ №1:
Я также не могу войти в систему с помощью «test1» и «a», но сбросить пароли довольно легко.
В вашей консоли worldserver вставьте это в:
account set password test1 thisisthenewpassword thisisthenewpassword
account set password test2 thisisthenewpassword thisisthenewpassword
account set password test3 thisisthenewpassword thisisthenewpassword
account set password test4 thisisthenewpassword thisisthenewpassword
account set password test5 thisisthenewpassword thisisthenewpassword
account set password test6 thisisthenewpassword thisisthenewpassword
account set password test7 thisisthenewpassword thisisthenewpassword
account set password test8 thisisthenewpassword thisisthenewpassword
account set password test9 thisisthenewpassword thisisthenewpassword
account set password test10 thisisthenewpassword thisisthenewpassword
Вы также можете создать для себя новую учетную запись с полными правами GM с помощью этих команд:
account create yourusername yourpassword
account set gmlevel yourusername 3 -1
Комментарии:
1. Идеально — это сработало! Спасибо! Для других нубов, спотыкающихся об это, как и я (запускаю это в Windows 10), я открыл Git Bash и подключился к контейнеру worldserver, введя:
winpty docker attach azerothcore-wotlk_ac-worldserver_1
Единственное изменение, которое я должен был внести в команды chute, было добавление точки:.account set password test1 a a