I was trying to avoid having to tinker with any code outside the
external auth module I wrote.
Mainly due to if there is upgrade of code, which I have no control of,
things don't break.
It would be awesome if wikimedia could handle usernames with underscore.
Then, in the future as upgrades are performed, the only thing to drop
into the modules directory would be our external auth script.
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of DanTMan
Sent: Thursday, May 29, 2008 6:42 PM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] external authentication
Why not do something like this:
* make e-mails for accounts unique, and somehow disable changing of
them.
* When creating a local user, create a row preloaded with the e-mail
address and set it as confirmed. For the Username do something like
using the stuff before the @ as the name and try replacing that with @
if such a user already exists.
* When logging in, take the username and use it to lookup the e-mail
address and use that to externally authenticate.
~Daniel Friesen(Dantman) of:
-The Gaiapedia (
http://gaia.wikia.com)
-Wikia ACG on
Wikia.com (
http://wikia.com/wiki/Wikia_ACG) -and
Wiki-Tools.com (
http://wiki-tools.com)
Anthony_Fernandez(a)Dell.com wrote:
There is one case that concerns me about external
authenticating
users; underscore in email joe_smith(a)test.com
<mailto:joe_smith@test.com>
Mediawiki logs users by "username" and not email, this poses an
interesting challenge since our authenticating service uses emails to
authenticate. This then becomes the Wikimedia username. However
wikimedia does not like '_' in usernames. I've tinkered a bit and
I've found all the instances of str_replace ( "_", " ", $s ),
however
they are in functions that also get called with other data in $s
(mostly for display purposes) So far, so good. It works. But want to
know if there is a way to authenticate externally
using email
addresses that can be in the form user_name(a)email.com?
From MediaWiki:
The Underscore ( _ )
character also presents a unique situation. While
usernames may utilize this character, it is read as a
blank space by
the Mac Guide software. As a result, the following names are
interpreted the
same: "User Name" and "User_Name". In a small number of cases, this
could result in a conflict if two users Forum names differ only by the
underscore character. Again, we will have to change
one users name.
Thanks,
Anthony Fernandez
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l