Greetings, I have an existing MySQL database for my customer portal website which includes customers' account info (usernames, and passwords). Now, I am configuring my MediaWiki on another machine in the same LAN for customers. How could I make use of the existing customer portal MySQL database for my MW user authentication? It seems the extension "Auth viaMySQL" could do a similar job, but it's for the same website (same machine), requires special login/logout script files for the website, and does NOT tell where/how to connect the existing database. What's the trick to use this extension for a MW on a different machine? Or, is there another way to do user authentication over MySQL? Thanks in advance, Ross
__________________________________________________________________ Looking for the perfect gift? Give the gift of Flickr!
Ross Xu wrote:
Greetings,
I have an existing MySQL database for my customer portal website which includes customers' account info (usernames, and passwords).
Now, I am configuring my MediaWiki on another machine in the same LAN for customers. How could I make use of the existing customer portal MySQL database for my MW user authentication?
It seems the extension "Auth viaMySQL" could do a similar job, but it's for the same website (same machine), requires special login/logout script files for the website, and does NOT tell where/how to connect the existing database.
What's the trick to use this extension for a MW on a different machine? Or, is there another way to do user authentication over MySQL?
Thanks in advance, Ross
Create an auth plugin, it will be easier http://www.mediawiki.org/wiki/AuthPlugin
Thank you Platonides for your help, but it seems the auth plugin is for a website which already has authentication. However, my MW is on another machine/website which does NOT have authentication. MachineA is my customer portal website, and is using a mysql database for user login. MachineB is my MediaWiki, and its main website does NOT need any authentication. What I want is to make use of the user account database on MachineA for my MW's authentication on MachineB. Is the auth plugin used for this kind of scenario? Thanks again, Ross
--- On Wed, 11/25/09, Platonides Platonides@gmail.com wrote:
From: Platonides Platonides@gmail.com Subject: Re: [Mediawiki-l] Use MySQL for User Login To: mediawiki-l@lists.wikimedia.org Received: Wednesday, November 25, 2009, 6:59 AM
Create an auth plugin, it will be easier http://www.mediawiki.org/wiki/AuthPlugin
__________________________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com.
Ross Xu schrieb:
MachineA is my customer portal website, and is using a mysql database for user login. MachineB is my MediaWiki, and its main website does NOT need any authentication. What I want is to make use of the user account database on MachineA for my MW's authentication on MachineB.
Is the auth plugin used for this kind of scenario?
yes, that is exactly what it is intended for. it can use pretty much any authentication mechanism, on any machine.
-- daniel
--- On Wed, 11/25/09, Daniel Kinzler daniel@brightbyte.de wrote:
yes, that is exactly what it is intended for. it can use pretty much any authentication mechanism, on any machine.
Sorry, I still don't get it, acctually am more confusing. On the auth plugin page http://www.mediawiki.org/wiki/AuthPlugin, it tells two kinds of plugins -- one is "Existing authentication plugins", and the other is "Creating new authentication plugins". The first one directs to Category:User identity extensions, which includes all different kind of extensions (and the Auth viaMySQL extension). The second one asks people to "write your own plugin", which is obviously not what I could do because I am not good at PHP coding. So, which one matches my need most? Thanks, Ross
__________________________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com.
Ross Xu wrote:
yes, that is exactly what it is intended for. it can use pretty much any authentication mechanism, on any machine.
Sorry, I still don't get it, acctually am more confusing.
On the auth plugin page http://www.mediawiki.org/wiki/AuthPlugin, it tells two kinds of plugins -- one is "Existing authentication plugins", and the other is "Creating new authentication plugins". The first one directs to Category:User identity extensions, which includes all different kind of extensions (and the Auth viaMySQL extension). The second one asks people to "write your own plugin", which is obviously not what I could do because I am not good at PHP coding.
So, which one matches my need most? Thanks, Ross
There doesn't seem to be an existing auth plugin doing what you want, so you need the second one. If you are not able to make it yourself, you would need to get someone to make it for you.
--- On Thu, 11/26/09, Platonides Platonides@gmail.com wrote:
There doesn't seem to be an existing auth plugin doing what you want, so you need the second one. If you are not able to make it yourself, you would need to get someone to make it for you.
Gotcha. Thank you, Platonides. Ross
__________________________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com.
mediawiki-l@lists.wikimedia.org