[Mediawiki-l] Additional User Attributes

Fernando Correia fernandoacorreia at gmail.com
Fri Dec 8 17:53:10 UTC 2006


You can use the events in the AuthPlugin to update the user table, or
any other table for that matter.

You can write a new special page or an extension to retrieve
information from any database table as well.

2006/12/8, Dan Davis <hokie99cpe+wiki at gmail.com>:
> OK, I know that I've seen information on doing what I am about to ask, but,
> for the life of me, I can't seem to locate any of it!
>
> I handle authentication of users through a corporate SSO portal. This portal
> supplies me with information about the user beyond what is normally stored
> in the MW database. What I'd like to do is define additional fields in the
> MySQL database to store some of this info. The user need not ever see it, so
> there should be no reason to update the Preferences page, or any other page,
> for that matter.
>
> I think I can handle updating the MySQL table, but what I need guidance on,
> is (1) how do Iupdate these new fields via my authentication plugin? And,
> (2) how do I access these fields from other pages? Specifically, I want to
> access them from Special:Listusers. I'm sure I can update the SQL statement
> in getSQL(), but not sure where to edit the code to retrieve the new field
> from the result.
>
> Any help would be appreciated.
>
> Dan
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>



More information about the MediaWiki-l mailing list