[openSRS-PHP-dev] Can't authenticate
Brought to you by:
cviebrock
From: John S. <jo...@sc...> - 2001-10-11 13:53:05
|
Hi, I'm trying to get the opensrs-php code running, and I am having problems. OpenSRS is cutting me off after I have returned the challenge. I have generated and tried several different private keys and changed the case o= f the username (is it case sensitive?), but still nothing. I have tried both DES and BLOWFISH encryption. I have also tried getting OpenSRS's perl interface running but get the sa= me result (I think). What I need to know is: 1) Are there any crypt or any other libraries which both the perl and php= use which maybe causing the problem? 2) Is the username case sensitive? 3) In the perl interface when I run the verify_install.cgi script the res= ults say that the OpenSRS Client IP Address is 192.168.1.1 which is the addres= s on our local network and not the Internet address, could this be part of the problem? 4) HOW DO I FIX IT? If you can't work anything out from my description the log output is belo= w. Thanks in advance to anyone who is able and willing to help me out. Tom OpenSRS Log: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D [ Info ] Initialized: 11-Oct-2001 14:26:17 [ Info ] Socket initialized [ Read ] Array ( [object] =3D> VERSION [attributes] =3D> Array ( [state] =3D> ready [version] =3D> XML:0.1 [sender] =3D> OpenSRS SERVER ) [protocol] =3D> XCP [action] =3D> CHECK [_OPS_version] =3D> 0.9 [_OPS_msg_id] =3D> 1.45267504923153 [_OPS_msg_type] =3D> standard ) [ Sent ] Array ( [action] =3D> check [object] =3D> version [attributes] =3D> Array ( [sender] =3D> OpenSRS CLIENT [version] =3D> XML:pre0.1 [state] =3D> ready ) [protocol] =3D> XCP ) [ Sent ] Array ( [action] =3D> authenticate [object] =3D> user [attributes] =3D> Array ( [crypt_type] =3D> des [username] =3D> <our username> [password] =3D> <our username> ) [protocol] =3D> XCP ) [ Read ] <random looking chars> [ Sent - DES ENCRYPTED ] <smaller string of random looking chars> [ Info ] Array ( [error] =3D> Read error ) [ Info ] Socket closed [ Info ] Array ( [is_success] =3D>=20 [response_code] =3D> 400 [response_text] =3D> Authentication Error: Authentication failed ) ------------------------------------------------------- *************************************************** John Sutton SCL Computer Services URL http://www.scl.co.uk/ Tel. +44 (0) 1239 711 888 *************************************************** |