Opened 15 years ago

Last modified 11 years ago

#5711 assigned defect

Running tracd, can't get XMLRPC login module to appear — at Version 1

Reported by: tj@… Owned by: Noah Kantrowitz
Priority: normal Component: HttpAuthPlugin
Severity: minor Keywords:
Cc: Trac Release: 0.11

Description (last modified by osimons)

Hi, I've recently installed Trac and have been loving it. Now that i've got the basics up and running and everyone happy, I'm trying to take advantage of some of the tools and am having trouble. Specifically, I'm trying to get XMLRPC running. I've got it installed and am now a little stumped by this directive in the documentation:


Problems when AccountManagerPlugin is enabled ¶

If you have the AccountManagerPlugin enabled and you followed their advice/example to disable the standard login module with

[components] trac.web.auth.LoginModule = disabled

the /login/xmlrpc URL for authorized access will not work as expected. Every access will look like anonymous access. You can use the HttpAuthPlugin to correct this.


I have HttpAuthPlugin and AccountManager both installed. However, i'm still unclear on exactly what I need to do in trac.ini to get this to work. I'm including the relevant sections of my .ini file. Can I get some clarity on what i'm doing wrong?

Note, I'm running tracd. I'm also posting here b/c i don't see a forums where this would go. Feel free to point me in the right direction. Thanks!

[components]
acct_mgr.admin.accountmanageradminpage = enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.db.sessionstore = enabled
acct_mgr.htfile.htdigeststore = enabled
acct_mgr.pwhash.htdigesthashmethod = enabled
acct_mgr.web_ui.accountmodule = enabled
acct_mgr.web_ui.loginmodule = enabled
acct_mgr.web_ui.registrationmodule = enabled
condfields.* = enabled
condfields.web_ui.* = enabled
iniadmin.iniadmin.iniadminplugin = enabled
navadd.navadd.navadd = enabled
tickettemplate.ttadmin.* = enabled
tickettemplate.ttadmin.tickettemplatemodule = disabled
trac.web.auth.loginmodule = disabled
tracrpc.* = enabled
httpauth.* = enabled

[httpauth]
paths = /xmlrpc, /tracproject/login/xmlrpc

Change History (1)

comment:1 Changed 15 years ago by osimons

Component: XmlRpcPluginHttpAuthPlugin
Description: modified (diff)
Owner: changed from osimons to Noah Kantrowitz

I don't use AccountManager myself, so can't really say. But from the example on HttpAuthPlugin, it uses project-internal paths - unlike your second path, and like this:

[httpauth]
paths = /xmlrpc, /login/xmlrpc

This is more a question for httpauth rather than xmlrpc, as xmlrpc can't support such a custom authentication mechanism seeing no xmlrpc client library exists for it.

Note: See TracTickets for help on using tickets.