Opened 13 years ago

Closed 11 years ago

#6035 closed defect (worksforme)

/login/xmlrpc authorization required

Reported by: ddhanlon@… Owned by: osimons
Priority: high Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Fredrik Wendt Trac Release: 0.11



If I'm not using the httpauth plugin for paths /xmlrpc and /login/xmlrpc and I attempt to access those paths, I get the following error returned <Fault 1: 'XML_RPC privleges are required to perform this operation'>. However when I do enable httpauth and I attempt to access /login/xmlrpc using the same credentials I use to access the trac system, I get the following error returned: 401 Authorization Required. What could I be doing wrong? If you need more information, please let me know.

Attachments (0)

Change History (8)

comment:1 Changed 13 years ago by anonymous

IS there any update to this problem? I am also having the same problem (getting 401 when accesses /projectname/login.xmlrpc.

comment:2 Changed 13 years ago by osimons

Component: XmlRpcPluginHttpAuthPlugin
Owner: changed from osimons to Noah Kantrowitz

No idea, as I don't use AccountManagerPlugin and HttpAuthPlugin. Your setup / config issues are really not an issue with the XmlRpcPlugin as that is completely unaware of whatever auth happens (if any).

Tempted to change Component to HttpAuthPlugin, but will just leave it as-is until someone provides the answer for the benefit of everyone - and perhaps also updates wiki docs if needed.

comment:3 Changed 13 years ago by osimons

Component: HttpAuthPluginXmlRpcPlugin
Owner: changed from Noah Kantrowitz to osimons

Ooops. Seems I managed to switch Component anyway. Switching back for now...

comment:4 Changed 12 years ago by Luis Felipe

Owner: changed from osimons to Luis Felipe
Status: newassigned

comment:5 Changed 12 years ago by Luis Felipe

Owner: changed from Luis Felipe to osimons
Status: assignednew

hmmm, accidentally assigned it to myself, reverting.

comment:6 Changed 12 years ago by Fredrik Wendt

Cc: Fredrik Wendt added; anonymous removed

I'm getting the same error (401 Authorization Required) using the sample code that lists available xmlrpc methods. If I put the exact same URL in a browser, I get the same behaviour. Changing path to /trac/wiki instead of /trac/login/xmlrpc things works as expected.

If I instead access /trac/login/rpc I get this error: "XML_RPC privileges are required to perform this operation"

After enabling logging (DEBUG) I see that I've got TracXMLRPC, httpauth.filter and acct_mgr.admin (and more) installed. The trac.ini file contains this:

root@server:/srv/trac/ad10gbg/log# egrep -C 2 "(http|xml)" ../conf/trac.ini

httpauth.* = enabled
tracrpc.* = enabled

paths = /xmlrpc, /login/xmlrpc

When I use Firefox with a logging proxy (sprout) the Authentication headers contains the string "Basic". (I reccon this means that Digest is not in play?)

comment:7 in reply to:  6 Changed 12 years ago by Fredrik Wendt

Replying to frekwent:

I'm getting the same error ![...]

My solution to this problem was/is to:

  • disable httpauth component (and configuration) - basically all the configuration lines with httpauth or xmlrpc in them were removed (or commented out)
  • add proper permissions to all users in the group !"authenticated": trac-admin /path/to/trac/dir permission add authenticated XML_RPC

This works fine for me and I've not yet seen it break anything else.

comment:8 Changed 11 years ago by osimons

Resolution: worksforme
Status: newclosed

Looks like this is configuration issues. Seeing RPC plugin is not involved in any aspect of authentication I don't think there is more to do at this point.

Reopen and reassign to other plugin+owner if anyone has a different opinion.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain osimons.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

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

Note: See TracTickets for help on using tickets.