We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
Tags:
create new tag
, view all tags

Question

I recently switched to using template login (from Apache login) on my TWiki and ran into a problem. I have several scripts that update the information on my TWiki using curl. When using Apache login, that worked very well since you can specify user name and password to curl, but it ceased working when I switched to template login. Does anyone know how to script access (both read and edit/save) to TWiki when using template login?

Thanks.

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Fedora Core 5
Web server: Apache 2.2.2
Perl version: 5.8.8
Client OS: FC5
Web Browser: Firefox 1.0.5.6
Categories: Authentication

-- DavidBright - 01 Sep 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

I don't think there's any way to do that. Curl passes the username and password in HTTP headers, and by the time TemplateLogin gets a look in that info has probably gone. If you can find it in CGI, then it wouldn't be hard to use it.

Note that if you have an existing session, you can pass the session ID in the TWIKISID form parameter.

-- CrawfordCurrie - 04 Oct 2006

 
Change status to:
Topic revision: r3 - 21 Nov 2006 - 03:02:22 - PeterThoeny
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback