XMLRPC Woes

2009-10-21 Thread Brian Bouterse
I am trying to drive VCL via XMLRPC and am having a lot of trouble.  I  
have correctly attached the X-User, X-Pass, and X-APIVERSION headers  
along with my HTTP transport, with the following values:


X-User:  ad...@local
X-Pass:  thecorrectpassword
X-APIVERSION is correct

I know most of it's working because the error message I get is:   
xmlrpclib.Fault: Fault 6: 'Unable to authenticate passed in X-User'


Which line of code verifies this value?
Any ideas why this isn't working?

Thanks!
Brian

Brian Bouterse
NEXT Services
919.698.8796



Re: XMLRPC Woes

2009-10-21 Thread Josh Thompson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Brian,

You're hitting printXMLRPCerror(6); in utils.php, function checkAccess.  
That makes me think one of 2 things:

(1) in conf.php, for your Local Account entry in $authMechs, type is not 
set to local (case important)

or

(2) the foreach loop a little higher in the function, right 
after elseif($apiver == 2) is completing without setting $authtype.  For 
some reason, I have a commented out check to see if it isn't set.  I'll 
create a JIRA issue to correct that.  To debug this case, you can add an 
entry to $XMLRPCERRORS in errors.php, then uncomment those few lines and 
change the print statement to printXMLRPCerror passing it the id of the new 
line you added in errors.php.

Josh

On Wednesday October 21, 2009, Brian Bouterse wrote:
 I am trying to drive VCL via XMLRPC and am having a lot of trouble.  I
 have correctly attached the X-User, X-Pass, and X-APIVERSION headers
 along with my HTTP transport, with the following values:

 X-User:  ad...@local
 X-Pass:  thecorrectpassword
 X-APIVERSION is correct

 I know most of it's working because the error message I get is:
 xmlrpclib.Fault: Fault 6: 'Unable to authenticate passed in X-User'

 Which line of code verifies this value?
 Any ideas why this isn't working?

 Thanks!
 Brian

 Brian Bouterse
 NEXT Services
 919.698.8796
- -- 
- ---
Josh Thompson
Systems Programmer
Advanced Computing | VCL Developer
North Carolina State University

josh_thomp...@ncsu.edu
919-515-5323

my GPG/PGP key can be found at pgp.mit.edu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFK3zNrV/LQcNdtPQMRAtqyAJ4kgFODY+2qvN4seHSIPe++TRWftACeN3N1
Qef9npY3zSroKSGv+CXNzNo=
=DTve
-END PGP SIGNATURE-