Maybe I'll post this on the wiki, I think it's a little more comprehensive than most. It's mainly here to gauge the response first.
Armathentication guide
YOU WILL NEED:
Access to FTP or a file manager
Access to your mysql database
A degree of patience, this will almost definitely not work first time.
Step one
For this project, we're going to use the simpler php version of the auth that was edited by fman23, which can be found at his launchpad directory. Go ahead and copy "Config" and "index", and put them somewhere safe.
Step two
We're going to have to edit that config file, just to make it play nice with a mysql installation. Open it up and find the line that talks about the login information table. Edit the file so that it looks more like the following:
Code: Select all
//Table containing login information
'table' => 'phpbb_users',
//Username column
'user_col' => 'username',
//Hash column, contains the md5 of the password after appending the prefixes and suffixes
'pass_prefix' => '',
'pass_suffix' => '',
'hash_col' => 'user_password',
//Role column, optionally contains the index of the user role (blank if disabled), it is designed to fit in with forums
'role_col' => 'group_id',
Whilst you're knee deep in confusion, go ahead and change "Host", "User", "Pass" and "Database" to the values that match your website.
Step three
Whilst we still have the config open, we're going to amend all the columns to match our database. For example: Your "user" column may be represented by "user", "php_user", "phpbb"user", you get the picture. Make sure everything matches up.
Save that shit, close that shit.
Step four
Here comes the scary bit. We're going to edit the files in your phpbb installation to enable your forum users passwords to be stored in md5. Go to the root of your ftp folder (public_html), and find the following path:
Code: Select all
/includes/functions.php
Edit it so that it looks like so:
Code: Select all
function phpbb_hash($password)
{
return md5($password);
}
Step five
Go back to the root of public_html and create the following folder paths:
Code: Select all
armaauth/0.1/
Step six
Now, logout of the forum, login again, and request a password change. Change it to whatever, you can change it back to whatever was your previous password if you want to. For this to work, however, you must change the password at least once, for all users.
Open up your arma client, and see if you can login. For extra merit, cross your fingers. For even more good luck, cut off a rabbit's foot and hang it precariously over your PC.