Re: Problem passing credentials to Roundup xmlrpc endpoint

"Hancock, David (DHANCOCK)" <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
Many thanks. Simply adding "WSGIPassAuthorization On" in the Apache configuration, followed by a restart, took care of the problem.

>>> import xmlrpclib
>>> url = 'http://dhancock:password@localhost/support/xmlrpc'
>>> srv = xmlrpclib.ServerProxy(url, allow_none=True)
>>> srv.lookup('user', 'implact')
'326'
>>>

Thank you again.

Cheers!
--
David Hancock | [email protected]

Ralf Schlatterbeck wrote:

On Fri, Nov 27, 2015 at 12:56:42PM +0000, Hancock, David (DHANCOCK) wrote:
> Hmm, this was already set to "yes" and isn't working. Is there
> something I need to configure in Apache to pass basic_auth through?

Hmm, probably yes, I'm on the road in some minutes, no time to look. The
setup I'm using (which also uses wsgi behind apache) uses kerberos auth
which falls back to basic auth if configured. So I have no basic-auth
setup here I can look at...

Maybe that helps?:
http://stackoverflow.com/questions/13377103/http-basic-auth-using-mod-wsgi
Roundup should already do the auth, so maybe you need to set
WSGIPassAuthorization in your wsgi config

------------------------------------------------------------------------------

_______________________________________________
Roundup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-users
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.