Commit Graph

155 Commits

Author SHA1 Message Date
Carbenium
f620befc37 Scripts/Commands: Convert rbac commands to new system
Note: To enable rbac commands for administrators permissions 202-206 have to be linked to permission 196.

Sample SQL for auth DB:
INSERT INTO `rbac_linked_permissions` VALUES (196, 202), (196, 203), (196, 204), (196, 205), (196, 206);
2021-08-14 12:50:18 +02:00
TDB Release
a47926ceab TDB 335.21071 - 2021/07/15 2021-07-15 07:35:10 +00:00
jackpoz
13f1a9f117 SQL: Update auth_database.sql with latest updates 2021-06-20 21:01:52 +02:00
TDB Release
27c338a268 TDB 335.21061 - 2021/06/15 2021-06-15 11:55:40 +00:00
TDB Release
f418631de0 TDB 335.21051 - 2021/05/14 2021-05-14 12:23:02 +00:00
TDB Release
2fcf455b34 TDB 335.21041 - 2021/04/16 2021-04-16 21:25:14 +00:00
TDB Release
8c3cddd0d2 TDB 335.21031 - 2021/03/15 2021-03-15 17:34:11 +00:00
TDB Release
271ab4193a TDB 335.21021 - 2021/02/15 2021-02-15 12:40:08 +00:00
TDB Release
0b7b7f10f9 TDB 335.21011 - 2021/01/15 2021-01-15 08:31:35 +00:00
jackpoz
b13d431ba2 SQL: Fix auth db db structure 2021-01-03 23:03:27 +01:00
Shauren
8d450f3f07 Core/Commands: Add .reload vehicle_template
(cherry picked from commit 4ca15ec065)

# Conflicts:
#	sql/base/auth_database.sql
#	src/server/game/Accounts/RBAC.h
2021-01-03 22:51:53 +01:00
TDB Release
0b310a1546 TDB 335.20121 - 2020/12/15 2020-12-15 22:49:47 +00:00
TDB Release
e6b945eabc TDB 335.20111 - 2020/11/16 2020-11-16 13:39:40 +00:00
TDB Release
f4a397accb TDB 335.20101 - 2020/10/15 2020-10-15 07:35:11 +00:00
Giacomo Pozzoni
6215da0d64 Script/Commands: Add ".pdump copy" command (#25455)
* Script/Commands: Add ".pdump copy" command

Syntax: .pdump copy $playerNameOrGUID $account [$newname] [$newguid]
Copy character with name/guid $playerNameOrGUID into character list of $account with $newname, with first free or $newguid guid.

* Add missing return

* Restore eof check

* Fix sql

* Use forward declaration header

Co-authored-by: Shauren <shauren.trinity@gmail.com>

* Remove buffer when reading a line

* Rename sql files

Co-authored-by: Shauren <shauren.trinity@gmail.com>
2020-09-17 21:49:52 +02:00
TDB Release
9d959123e6 TDB 335.20091 - 2020/09/15 2020-09-15 19:37:54 +00:00
Treeston
bcdbdd6f23 Core/Authserver: Removal of sha_pass_hash, compatibility fields, and everything that uses them (PR #25156) 2020-09-06 16:04:10 +02:00
TDB Release
ada0e32a64 TDB 335.20082 - 2020/08/22 2020-08-22 16:29:44 +00:00
TDB Release
43986954fd TDB 335.20081 - 2020/08/15 2020-08-15 09:37:46 +00:00
Treeston
6116e5b385 Core/Warden: Warden refactors (PR #25235) 2020-08-11 18:04:36 +02:00
Treeston
38de6d3307 Core/DB: Split accounts.session_key into session_key_auth (3.3.5) and session_key_bnet (master), so the branches will no longer break each other's realm switching. 2020-08-03 18:53:00 +02:00
Shauren
bfb041246f Core/Authserver: Compatibility change for master branch 2020-08-03 09:33:52 +02:00
Treeston
3164b58c7d Core/Authserver: Re-organize the accounts table (PR #25135)
- no longer use sha_pass_hash for anything else core-side (.account, SOAP, RA)
- salt/verifier/session_key are now binary
- old s/v/sha_pass_hash fields kept around for backwards compatibility
- sha_pass_hash is still updated (for now), s/v are not
- sha_pass_hash is only read if s/v have been manually changed
- SRP6 b now uses the full 32 bytes of randomness (instead of randomly only using 19)
2020-08-02 22:52:21 +02:00
Shauren
235cdc2fd5 SQL: Rename old sql to resolve naming conflict between branches 2020-07-16 21:43:52 +02:00
TDB Release
d974800e9d TDB 335.20071 - 2020/07/15 2020-07-15 10:37:16 +00:00
ForesterDev
8e0365d8a6 DB/Account: update account_access table (#24788)
* DB/Account: update account_access table:

- rename fields id -> AccountID, gmlevel -> SecurityLevel
- add Comment field
- rename command .acc set gmlevel to .acc set seclevel

* Update auth database

* Fix primary key

* Temporary restore old command account set gmlevel with same handler as account set seclevel

Use Optional  for realmID - if not set, use -1 (for all realms)

* Rename 2020_XX_XX_00_auth.sql to 2020_06_20_00_auth.sql

* Update auth_database.sql

* Rename 2020_XX_XX_00_world.sql to 2020_06_20_06_world.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-06-20 21:49:18 +02:00
TDB Release
3e7b0d6c05 TDB 335.20061 - 2020/06/15 2020-06-15 07:50:01 +00:00
TDB Release
69dc704cd5 TDB 335.20051 - 2020/05/15 2020-05-15 08:57:38 +00:00
zartech22
56f20d69a6 Add realm ID for actions based ip logging (#24453)
* Update SQL queries to insert realm id

* Insert the realm id when logging actions based on IP

* Adding the SQL update file

* Update 9999_99_99_99_auth.sql

* Update auth structure

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-04-18 14:26:05 +02:00
TDB Release
e956b1760e TDB 335.20041 - 2020/04/15 2020-04-15 11:05:27 +00:00
Shadow
d962624d61 Missing rbac permissions (#24253)
* Added missing RBAC permissions to auth database

* Rename 9999_99_99_99_auth.sql to 2020_04_07_00_auth.sql

* Update 2020_04_07_00_auth.sql

* Update auth_database.sql

Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
2020-04-07 22:32:04 +02:00
TDB Release
533856bad0 TDB 335.20031 - 2020/03/16 2020-03-16 08:49:50 +00:00
TDB Release
322f0b8873 TDB 335.20021 - 2020/02/15 2020-02-15 17:38:06 +00:00
TDB Release
5558917286 TDB 335.20011 - 2020/01/15 2020-01-15 07:47:03 +00:00
TDB Release
73348bed8e TDB 335.19121 - 2019/12/15 2019-12-15 18:28:50 +00:00
Shauren
b990a79fd8 Core/Realms: Move build info (and auth seeds) to database
(cherry picked from commit 61f2eed353)
2019-12-07 13:14:16 +01:00
TDB Release
c22000ed2c TDB 335.19111 - 2019/11/16 2019-11-16 12:08:04 +00:00
TDB Release
50307d9222 TDB 335.19101 - 2019/10/18 2019-10-18 08:40:12 +00:00
TDB Release
9f66158ae5 TDB 335.19091 - 2019/09/15 2019-09-15 09:23:26 +00:00
TDB Release
a054ce864d TDB 335.19081 - 2019/08/16 2019-08-16 06:27:38 +00:00
Treeston
4211645834 [3.3.5] Core/Authserver: TOTP rewrite: (PR #23633)
- Proper management commands (.account 2fa)
- Secrets can now be encrypted (set TOTPTokenSecret in .conf)
- Secret now stored in binary
- Argon2 and AES primitives
- Base32/64 support
2019-08-10 21:34:51 +02:00
Treeston
a82bbeb101 Core/DB: Add RBAC for .debug poolstatus, because I need it for the pooling branch. 2019-07-17 15:59:52 +02:00
Treeston
293ba08d21 Scripts/Commands: Add .debug questreset to force daily/weekly/monthly quest reset. 2019-07-16 15:04:14 +02:00
TDB Release
f46644c925 TDB 335.19071 - 2019/07/15 2019-07-15 05:59:57 +00:00
Wyrserth
8163ea60c8 Core/RBAC: add permission that prevents accounts from earning all achievements or only realm firsts (#23459)
* Core/RBAC: add permission that prevents accounts from earning all achievements or only realm firsts.

* Kill evil spaces.

* Rename 9999_99_99_99_auth.sql to 2019_06_21_00_auth.sql

* Update auth_database.sql
2019-06-21 20:17:37 +02:00
Wyrserth
ce3dcdcb1a Core/Commands: implement commands to look up a map/item/quest name for a given id (#23416)
* Core/Commands: implement commands to look up a map/item/quest name for a given id.

* Add entry to updates table.

* Rename 9999_99_99_99_auth.sql to 2019_06_16_00_auth.sql

* Add missed change, thanks jackpoz!

* Update auth_database.sql
2019-06-16 19:52:13 +02:00
TDB Release
e1a5e31498 TDB 335.19061 - 2019/06/15 2019-06-15 07:36:09 +00:00
jackpoz
9fc4ff9dd2 DB: Add new view vw_log_history to show database logs in a better way 2019-06-06 18:13:17 +02:00
TDB Release
8a02741cd0 TDB 335.19051 - 2019/05/15 2019-05-15 06:15:46 +00:00
jackpoz
71d15ea25b Scripts/Commands: Add .debug asan commands
Add ".debug asan memoryleak" and ".debug asan outofbounds" commands to trigger Address Sanitizer warnings at runtime (or other dynamic analysis tools)
2019-04-27 20:11:48 +02:00