Topic on Extension talk:GoogleAppsAuthentification

Unable to change user permissions of auto-created accounts

4
202.55.50.236 (talkcontribs)

Those accounts comes with "@domain.com", and when I try to change their user rights with the special pages, I was given the error of "cannot edit uesr rights of other wiki".

Soon I found in the manual pages that I need to have the "userrights-interwiki" for my bureaucrat group, so I added that in my LocalSettings. Then I was given another error of "Database mydomain.com does not exist or is not local."

Any help~? I suggest not storing the username with the domain - since with this extension we are allowed to use google apps of only one domain - so with "@domain.com" doesn't really make much difference.

BertrandGorge (talkcontribs)

What you say makes sense - I didn't know that MediaWiki accounts did interpret the @ sign somehow - anyway, it is easy to fix - just change the line that says " $username = $googleAccount['email']; ", with something like " $username = preg_replace('/@.*/', , $googleAccount['email']); " or something similar....

Ewcy (talkcontribs)

Yes you're right. That's what I did too! Many thanks! Highly appreciate the quick response from you.

76.10.122.190 (talkcontribs)

I added the following to LocalSettings.php:

  1. Allow @ in username (# as delimiter for database instead of @)

$wgUserrightsInterwikiDelimiter = '#'

This changes the interwiki delimiter to a # instead of an @, allowing you to have @ in your username without trouble. I doubt anybody uses interwiki rights management except the Wikimedia Foundation itself; I really wish they just had interwiki disabled by default. Oh well.

Reply to "Unable to change user permissions of auto-created accounts"