Code: Select all
<?php
/* http-auth-server -- Implementation of the Authentication server reference implementation 0.1
* This config file is free of use.
*/
$dbs = array(
// Replace forums with the name of your AAGID authority.
// This is what the users will type when loging in, it is usually your DNS.
// The main script (armaauth.php) should be accessible by using this address: <http://authority/armaauth/0.1/>.
'shenanaboosh.zzl.org'
=> array(
// MySQL server location
'host' => 'shenanaboosh.zzl.org',
// MySQL DB name
'name' => 'shenanaboosh_zzl_website',
// MySQL user
'user' => '708701_admin',
// MySQL password
'passwd' => '*****',
// MySQL table name
'table' => 'smf_members',
// Username column
'user_row' => 'member_name',
// Methods to allow. Current valid methods are md5, bmd5, and webform. You can use sha1 as well, but it isn't used.
'validMethods' => array( 'bmd5', 'md5' ),
'params' => array(
// Prefix/Suffix to append/prepend to the password before hashing
// (You need to change the hashes in your DB if you change these!)
'prefix' => '',
'suffix' => ''
),
// Method-specific settings. They can override stuff defined earlier in this file.
'methods' => array(
'bmd5' => array(
// MySQL Column containing the bmd5 hash
'row' => 'bmd5_hash'
),
'md5' => array(
// MySQL Column containing the md5 hash
'row' => 'md5_hash'
),
'sha1' => array(
// MySQL Column containing the sha1 hash
'row' => 'sha1_hash'
),
// If you're not serving webform authentication, you can forget about this.
'webform' => array(
// To use the webform method, you have to use a separate table.
'table' => 'AAGID-webform',
// Time in seconds until a server authentication key expires so that a login process won't be valid anymore.
'siteKeyTimeout' => 5 * 60,
// Column containing the authority contacted, so you can use the same table for more authorities.
'authority_row' => 'authority',
// Column containing the contacting site's login process key
// (unique for each authentication process)
'user_row' => 'site_key',
// Column containing the md5 hash of the site's key
'site_key_hash_row' => 'site_key_hash',
// Column containing the time the site's key was created
'site_key_time_row' => 'site_key_time',
// Column containing way to contact the site itself
'site_row' => 'site',
// Column containing the username of the user that's
// currently being authenticated
'username_row' => 'username',
// Column containing the hash of the site's and user's keys
'row' => 'hash',
),
),
),
// Repeat this whole section if you want to setup this for more authorities.
);
// DO NOT CHANGE THIS UNLESS YOU KNOW WHAT YOU'RE DOING
// This will change the address trough shorthand authorities will be contacted.
// Changing this setting is only useful if you're exporting AAGID to something else than armagetronad
// Shorthand authorities(those with which you don't have to type the whole name) are contacted
// by appending $rootDomain preceeded with a dot to the shorthand authority's name. Example:
// g.authentication.armagetronad.net // Here, g is the name of the shorthand authority, so
// the users can use user@g to authenticate with g.authentication.armagetronad.net
$rootDomain = 'authentication.armagetronad.net';
?>
In the database there is a 'passwd' column with md5 passwords I believe, and there is also a 'salt' column, but the script didn't request those.
Edit, It did ask. But I don't know the difference between md5 bd5 sha1 all those so... not sure.