Opened 9 years ago

Last modified 5 years ago

#5711 assigned defect

Running tracd, can't get XMLRPC login module to appear

Reported by: tj@… Owned by: txcraig
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!

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

paths = /xmlrpc, /tracproject/login/xmlrpc

Attachments (0)

Change History (3)

comment:1 Changed 9 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:

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.

comment:2 Changed 9 years ago by tj@…

Sorry, the path i put in my original email was incorrect. I was test driving that (and it still wasn't working). So the suggestion is to move this to httpauth then?

Thanks for the quick turnaround

comment:3 Changed 5 years ago by txcraig

Owner: changed from Noah Kantrowitz to txcraig
Status: newassigned

I am adopting maintenance of this plugin

(and it still wasn't working).

I know this ticket is kind of old - but do you have more details on what was not working? Were you getting a particular return code from your xmlrpc client?

Modify Ticket

Change Properties
Set your email in Preferences
as assigned The owner will remain txcraig.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.