Which is why I suggested to use the e-mail in the user's row in
MediaWiki to authenticate them instead of the username. MW does store
e-mails... Just autoset those when creating a user, and create some
strange username based off their e-mail for people to login with.
~Daniel Friesen(Dantman) of:
-The Gaiapedia (
My bad, I mean to say mediawiki.
Here is our site:
http://linux.dell.com/wiki/index.php/Wiki_Main_Page
I believe we are running an older version 1.9.3
So Authplugin returns true if authenticates successfully with our login.
Our customers already have a login for our sites, which is their email.
Mediawiki, parses and cleans up the login username and removes "_". When
it gets inserted into the mysql db, I see that the username is split and
only use the first segment before the "_".
username is translated by MediaWiki
before it is passed to the function:
First letter becomes upper case, underscore '_' become spaces ' '.
This creates a problem if we have i.e.
tom_jones(a)email.com and tom_smith(a)test.com
I really don't want to touch the mediawiki code. As I said before, I
can hack it by commenting out str_replace( "_", " ", $s), but its not
a
good solution since;
1) I don't really know what other things could break if I do that
2) if there is an upgrade unbeknownst to me, the hack will be lost and
things can break.
Regards
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org
[mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of DanTMan
Sent: Friday, May 30, 2008 11:38 AM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] external authentication
Tis MediaWiki, Wikimedia is different.
But most of this should be able to be done with hooks and an AuthPlugin,
so you should be able to do it without hacking anything.
~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:
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
_______________________________________________
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
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l