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

Create and Promote User script fails - Provider missing? #141

Open
FantasticoFox opened this issue May 10, 2024 · 3 comments
Open

Create and Promote User script fails - Provider missing? #141

FantasticoFox opened this issue May 10, 2024 · 3 comments

Comments

@FantasticoFox
Copy link
Collaborator

The script create_and_promote_user.sh is important for us for test deployments and administration of related test accounts.
Currently the script does not function.

The underlaying functionality is https://www.mediawiki.org/wiki/Manual:CreateAndPromote.php which fails if run with:

sudo docker exec micro-pkc-mediawiki php maintenance/createAndPromote.php testuser mypassword --sysop
my_wiki: Creating and promoting User:testuser into sysop...

[fc613ae78c76492234795ddd] [no req] PasswordError: The authentication data change was not handled. Maybe no provider was configured?
Backtrace:
from /var/www/html/maintenance/createAndPromote.php(140)
#0 /var/www/html/maintenance/includes/MaintenanceRunner.php(309): CreateAndPromote->execute()
#1 /var/www/html/maintenance/doMaintenance.php(85): MediaWiki\Maintenance\MaintenanceRunner->run()
#2 /var/www/html/maintenance/createAndPromote.php(166): require_once(string)
#3 {main}

@it-spiderman
Copy link
Collaborator

it-spiderman commented May 10, 2024

You cannot use this script with OIDC setups. You can temporarely disable OIDC, run the script and re-enable. But even if you created the user, how will you login with this user later?

@FantasticoFox
Copy link
Collaborator Author

Using the public key as username.

@FantasticoFox
Copy link
Collaborator Author

FantasticoFox commented Sep 9, 2024

This was replaced with the following script which needs to be run within the mediawiki container:

In docker container run:
php extensions/DataAccounting/maintenance/createSysopUser.php <username>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants