Re: Problem passing credentials to Roundup xmlrpc endpoint

Ralf Schlatterbeck <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
On Thu, Nov 26, 2015 at 01:09:54PM +0000, Hancock, David (DHANCOCK) wrote:
> >>> import xmlrpclib
> >>> url = "http://admin:adminpw@localhost/support/xmlrpc"
> >>> srv = xmlrpclib.ServerProxy(url, allow_none=True)
> >>> srv.lookup('user', 'dhancock')
Looks good.

> This yields a short stack trace ending with:
> 
> xmlrpclib.Fault: <Fault 1: "<class 'roundup.exceptions.Unauthorised'>:Permission to lookup user denied">
> 
> 2015-11-25 12:21:27,979 DEBUG SQL 'select id from _user where _username=%s and __retired__=%s' ('anonymous', 0)
> 
> Can anyone see what I'm doing wrong? I don't think it's a good idea to
> add permissions to the 'anonymous' user, but I do want to use xmlrpc
> to create issues, look up ids, etc. Roundup is running behind Apache,
> in case that's relevant (using mod_wsgi).

You need to turn on basic auth support in roundup, this is in config.ini
in the [web] section and is named "http_auth". You need to set it to
yes.

Let us know if this helps!

Ralf
-- 
Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
Open Source Consulting                  www:   http://www.runtux.com
Reichergasse 131, A-3411 Weidling       email: [email protected]

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.