SqlAuth
10/04/2006
Heriniaina Eugene
This component is released under the GNU/GPL License
hery@serasera.org
hery.serasera.org
0.9.3
Using a remote mysql user table.<br />This is used with the mod_sqlauth module. <br />Be sure to set up the database info in settings.
sqlauth.php
DROP TABLE IF EXISTS `#__sqlauth`
CREATE TABLE `#__sqlauth` (
id mediumint(7) NOT NULL AUTO_INCREMENT,
`name` tinytext NOT NULL,
`value` text NOT NULL,
`label` text NOT NULL,
`description` text NOT NULL,
UNIQUE KEY id (id))
INSERT INTO `#__sqlauth` (name,value,label,description) VALUES ('sqlauth_dbhost','localhost', 'Mysql host', 'SQL Host where there is the username table')
INSERT INTO `#__sqlauth` (name,value,label,description) VALUES ('sqlauth_dbname','dbname', 'Database name', 'Name of the database')
INSERT INTO `#__sqlauth` (name,value,label,description) VALUES ('sqlauth_user','username', 'Mysql username', 'Mysql User')
INSERT INTO `#__sqlauth` (name,value,label,description) VALUES ('sqlauth_password','xxxxx', 'Mysql password', 'Mysql password')
INSERT INTO `#__sqlauth` (name,value,label,description) VALUES ('sqlauth_getuserinfo','SELECT uid, concat(lname, \' \', fname) as name, username, email FROM users WHERE username=\'%{user}\' and password=MD5(\'%{pass}\')', 'Getuserinfo query', 'The query to get the user info. <br />. This should at least return the fields <b>name</b>, <b>username</b> and <b>email</b>.<br /> * Following patterns will be replaced:<br /> * <b>%{user}</b> username<br /> * <b>%{pass}</b> the text password if it is encrypted in your user table then put <b>password=MD5(\'%{pass}\')</b> instead of <b>password=\'%{pass}\'</b>')
DROP TABLE `#__sqlauth`
install.sqlauth.php
uninstall.sqlauth.php
admin.sqlauth.php
admin.sqlauth.html.php
class.sqlauth.php
toolbar.sqlauth.php
toolbar.sqlauth.html.php