View Single Post
Old 04-13-2006, 03:43 AM   #10
yanhl
Human being with feelings
 
Join Date: Apr 2006
Location: Paris, France
Posts: 7
Default still have probs

Thanks for the exe but unfortunately my server is running under Debian, so i can't use it.

I tried to find something in the ninjamserver source code but i'm not a c++ coder so it's almost chinese to me.

Anyway, the ninjamsrv.cpp indicates that a StatusUserPass must be defined in the config file :

StatusUserPass statususerlogin statususerpwd

So i added a StatusUserPass line in my config file but it still doesn't work.
Config file is well parsed, the StatusUserPass is used (i have put traces to check that).

So i continued my investigations, and now i think that the problem is located in the auth part.
Maybe the php code sends a malformed message, i really don't know.


in ninjamsrv.cpp, line 203 :
if (g_status_user.Get()[0] && !strcmp( username.Get(),g_status_user.Get()))

compares a [code+username] instead of the [username] specified in the $user string of show.php.
so i guess there's a data problem somewhere, i tried to find where for a few hours but i really can't understand why the username is not my username only, at line 203.

in the logfile, i can see :
"got login request for '4368c984efd4c00bab68status'
this line is put by ninjamsrv.cpp @ line 198 and, of course, my Status username is 'status'.

Can anybody help me and tell me what to change in parse.php or in the ninjamsrv source code to allow a status user to login corectly ?

Or did i miss something ? Maybe i'm on the wrong way ?

Please... heeeelp !

Last edited by yanhl; 04-13-2006 at 10:01 AM.
yanhl is offline   Reply With Quote