Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:bot_passwords table

From mediawiki.org
Translate this page
Languages:
Manual:Contents
MediaWiki database layout
bot_passwords table
MediaWiki version:
1.27

Thebot_passwords table storesbot passwords.

On wiki farms using some kind of single sign-on, wikis can use a single shared table; thus, the local wiki'sbot_password table is not necessarily the one where the passwords are stored. See$wgBotPasswordsDatabase and$wgBotPasswordsCluster.

Fields

[edit]

bp_user

[edit]

Central ID of the user.On a default installation this is a foreign key touser.user_id.

bp_app_id

[edit]

App ID, used to differentiate multiple applications using the same account; applications using bot login need to pass<real username>@<app id> as username.

bp_password

[edit]

Password hash (likeuser.user_password).

bp_token

[edit]

Token for remembering / invalidating the session (likeuser.user_token).

bp_restrictions

[edit]

JSON blob forMWRestrictions.

bp_grants

[edit]

Grants allowed to the account when authenticated with this bot-password.

Schema summary

[edit]
MediaWiki version:
1.30

DESCRIBEbot_passwords;

+-----------------+------------------+------+-----+----------------------------------+-------+| Field           | Type             | Null | Key | Default                          | Extra |+-----------------+------------------+------+-----+----------------------------------+-------+| bp_user         | int(10) unsigned | NO   | PRI | NULL                             |       || bp_app_id       | varbinary(32)    | NO   | PRI | NULL                             |       || bp_password     | tinyblob         | NO   |     | NULL                             |       || bp_token        | binary(32)       | NO   |     |                                  |       || bp_restrictions | blob             | NO   |     | NULL                             |       || bp_grants       | blob             | NO   |     | NULL                             |       |+-----------------+------------------+------+-----+----------------------------------+-------+
MediaWiki versions:
1.27 – 1.29

DESCRIBEbot_passwords;

+-----------------+---------------+------+-----+----------------------------------+-------+| Field           | Type          | Null | Key | Default                          | Extra |+-----------------+---------------+------+-----+----------------------------------+-------+| bp_user         | int(11)       | NO   | PRI | NULL                             |       || bp_app_id       | varbinary(32) | NO   | PRI | NULL                             |       || bp_password     | tinyblob      | NO   |     | NULL                             |       || bp_token        | binary(32)    | NO   |     |                                  |       || bp_restrictions | blob          | NO   |     | NULL                             |       || bp_grants       | blob          | NO   |     | NULL                             |       |+-----------------+---------------+------+-----+----------------------------------+-------+

Indexes

[edit]
MediaWiki version:
1.27

SHOWINDEXINbot_passwords;

+---------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+| Table         | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |+---------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+| bot_passwords |          0 | PRIMARY  |            1 | bp_user     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               || bot_passwords |          0 | PRIMARY  |            2 | bp_app_id   | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |+---------------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
Engines
Current
Former
Technical documentation
Configuration
Development
Core tables
Current
Former
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Bot_passwords_table&oldid=7602801"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp