No joy with armaauth
No joy with armaauth
I have uploaded the files in http://code.launchpad.net/~armagetronad ... erver-work to http://nyxclan.co.cc/armaauth/0.1/, changing armaauth.php to index.php. I also have renamed config.php.example to config.php and set the DB settings accordingly. I have set the authority_whitelist to add nyxclan.co.cc. However, when I attempt to login (/login z@nyxclan.co.cc), the server/client/etc can't seem to find the user. Attached is the obligatory screenshot.
Looking at the config.php, I'm assuming that the DB name, user, and password are correct because I got to the login prompt. The nyxclan forum database data is prefixed with "nyxclan_", and I've added that to table (nyxclan_users) and kept user_row the same. Any tips/leads on how to debug this?
Looking at the config.php, I'm assuming that the DB name, user, and password are correct because I got to the login prompt. The nyxclan forum database data is prefixed with "nyxclan_", and I've added that to table (nyxclan_users) and kept user_row the same. Any tips/leads on how to debug this?
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
Re: No joy with armaauth
That almost looks like it either couldn't connect to the database, or possibly how you've described the database in the configuration is wrong.

- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
Re: No joy with armaauth
That's definitely an error caused by it not liking the mysql query. The only reason that would be the case would be if it was incorrectly configured. Specifically, validmethods, user_row, or table must be set incorrectly. You should note that to set up an authority with phpbb, some modification of phpbb is necessary to add the columns for the methods. Have you done this? There should be a thread or two about it on the forums.

Re: No joy with armaauth
No, I have not modified phpbb3 for auth. Could you please point me the right direction?Tank Program wrote:That's definitely an error caused by it not liking the mysql query. The only reason that would be the case would be if it was incorrectly configured. Specifically, validmethods, user_row, or table must be set incorrectly. You should note that to set up an authority with phpbb, some modification of phpbb is necessary to add the columns for the methods. Have you done this? There should be a thread or two about it on the forums.
Does this have any relevance to my problem (or will I run into this in the future)?
http://forums3.armagetronad.net/viewtop ... bb#p210279
- AI-team
- Shutout Match Winner
- Posts: 1020
- Joined: Tue Jun 23, 2009 6:17 pm
- Location: Germany/Munich
- Contact:
Re: No joy with armaauth
It's pretty simple;
whenever a user logs in and his login data is correct , write the md5'ed/bm5'ed pw into phpbb_users (just add a 2 new rows)
whenever a user logs in and his login data is correct , write the md5'ed/bm5'ed pw into phpbb_users (just add a 2 new rows)
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
- Tank Program
- Forum & Project Admin, PhD
- Posts: 6712
- Joined: Thu Dec 18, 2003 7:03 pm
Re: No joy with armaauth
The only thing going then is to test it out manually and modify the code to print the exact error message so that the root of the problem can be back tracked.
Step 1: Work out the http link needed to simulate a login.
Step 2: Go to the line in the php file where the error is first reported. Add in:
Step 3: Repeat step 2 up the chain of errors until the root of the problem is worked out.
Step 1: Work out the http link needed to simulate a login.
Step 2: Go to the line in the php file where the error is first reported. Add in:
Code: Select all
echo mysql_error();

Re: No joy with armaauth
EDIT: managed to get it to PRECONDITION_FAILED: Login again at the authority.
I'm guessing this isn't happening:
Will report back later.
I'm guessing this isn't happening:
EDIT: More fiddling and RTFMing has led me here: http://www.phpbb.com/community/viewtopi ... 65&start=0 to solve this: http://forums3.armagetronad.net/viewtop ... ilit=phpbbwhenever a user logs in and his login data is correct , write the md5'ed/bm5'ed pw into phpbb_users (just add a 2 new rows)
Will report back later.
Re: No joy with armaauth
I now have phpbb3 generating md5 hashes of users' passwords and /armaauth/0.1/config.php set up correctly to access it. However, it says my password is wrong ('PASSWORD_FAIL'). 
Perhaps this has something to do with it? http://forums3.armagetronad.net/viewtop ... 49&t=19819
Though it was supposedly fixed.
How would I debug this?

Perhaps this has something to do with it? http://forums3.armagetronad.net/viewtop ... 49&t=19819
Though it was supposedly fixed.
How would I debug this?
Re: No joy with armaauth
It looks like you're using an empty prefix and suffix for params. What version of armagetronad are you running? There was a bug related to empty prefixes/suffixes that was fixed.
Note: it's a bad idea to not use a prefix or suffix.
Note: it's a bad idea to not use a prefix or suffix.
Re: No joy with armaauth
I'm using the 2.8.3.1 client, which I thought had the fix that you mentioned. If I do use prefixes/suffixes, do I just change it in the db and the confg.php?
EDIT: added prefixes/suffixes and it works.
EDIT: added prefixes/suffixes and it works.

- AI-team
- Shutout Match Winner
- Posts: 1020
- Joined: Tue Jun 23, 2009 6:17 pm
- Location: Germany/Munich
- Contact:
Re: No joy with armaauth
gz \o/
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
Re: No joy with armaauth
Thanks to everyone who helped/put up with me. 
@AI: could I get you to add nyxclan.co.cc to to your authority_whitelist on your servers please?

@AI: could I get you to add nyxclan.co.cc to to your authority_whitelist on your servers please?
- AI-team
- Shutout Match Winner
- Posts: 1020
- Joined: Tue Jun 23, 2009 6:17 pm
- Location: Germany/Munich
- Contact:
Re: No joy with armaauth
No (need to).I don't have any whitelist/blacklist~z~ wrote:@AI: could I get you to add nyxclan.co.cc to to your authority_whitelist on your servers please?

"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
Re: No joy with armaauth
o_O Who runs Pru servers then?AI-team wrote:No (need to).I don't have any whitelist/blacklist~z~ wrote:@AI: could I get you to add nyxclan.co.cc to to your authority_whitelist on your servers please?