No joy with armaauth

Post here if you need help setting up your server, etc.
User avatar
~z~
On Lightcycle Grid
Posts: 22
Joined: Sat Jul 18, 2009 5:46 pm

No joy with armaauth

Post by ~z~ »

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?
Attachments
obligatory screenshot
obligatory screenshot
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Re: No joy with armaauth

Post by Tank Program »

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.
Image
User avatar
~z~
On Lightcycle Grid
Posts: 22
Joined: Sat Jul 18, 2009 5:46 pm

Re: No joy with armaauth

Post by ~z~ »

Should also mention that I'm running phpbb3.
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Re: No joy with armaauth

Post by Tank Program »

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.
Image
User avatar
~z~
On Lightcycle Grid
Posts: 22
Joined: Sat Jul 18, 2009 5:46 pm

Re: No joy with armaauth

Post by ~z~ »

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.
No, I have not modified phpbb3 for auth. Could you please point me the right direction?

Does this have any relevance to my problem (or will I run into this in the future)?
http://forums3.armagetronad.net/viewtop ... bb#p210279
User avatar
AI-team
Shutout Match Winner
Posts: 1020
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: No joy with armaauth

Post by AI-team »

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)
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 
User avatar
Tank Program
Forum & Project Admin, PhD
Posts: 6712
Joined: Thu Dec 18, 2003 7:03 pm

Re: No joy with armaauth

Post by Tank Program »

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:

Code: Select all

echo mysql_error();
Step 3: Repeat step 2 up the chain of errors until the root of the problem is worked out.
Image
User avatar
~z~
On Lightcycle Grid
Posts: 22
Joined: Sat Jul 18, 2009 5:46 pm

Re: No joy with armaauth

Post by ~z~ »

EDIT: managed to get it to PRECONDITION_FAILED: Login again at the authority.

I'm guessing this isn't happening:
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)
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=phpbb
Will report back later.
User avatar
~z~
On Lightcycle Grid
Posts: 22
Joined: Sat Jul 18, 2009 5:46 pm

Re: No joy with armaauth

Post by ~z~ »

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?
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Re: No joy with armaauth

Post by dlh »

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.
User avatar
~z~
On Lightcycle Grid
Posts: 22
Joined: Sat Jul 18, 2009 5:46 pm

Re: No joy with armaauth

Post by ~z~ »

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. :D
User avatar
AI-team
Shutout Match Winner
Posts: 1020
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: No joy with armaauth

Post by AI-team »

gz \o/
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 
User avatar
~z~
On Lightcycle Grid
Posts: 22
Joined: Sat Jul 18, 2009 5:46 pm

Re: No joy with armaauth

Post by ~z~ »

Thanks to everyone who helped/put up with me. :D

@AI: could I get you to add nyxclan.co.cc to to your authority_whitelist on your servers please?
User avatar
AI-team
Shutout Match Winner
Posts: 1020
Joined: Tue Jun 23, 2009 6:17 pm
Location: Germany/Munich
Contact:

Re: No joy with armaauth

Post by AI-team »

~z~ wrote:@AI: could I get you to add nyxclan.co.cc to to your authority_whitelist on your servers please?
No (need to).I don't have any whitelist/blacklist ;)
  
 
"95% of people believe in every quote you post on the internet" ~ Abraham Lincoln
 
 
User avatar
~z~
On Lightcycle Grid
Posts: 22
Joined: Sat Jul 18, 2009 5:46 pm

Re: No joy with armaauth

Post by ~z~ »

AI-team wrote:
~z~ wrote:@AI: could I get you to add nyxclan.co.cc to to your authority_whitelist on your servers please?
No (need to).I don't have any whitelist/blacklist ;)
o_O Who runs Pru servers then?
Post Reply