Tags:
create new tag
, view all tags

Question

I'm trying to use the RequireRegistration plugin with an External LDAP and need to rewrite the HTTP header in order to force authentication through the web server while passing the user to the Registration page.

Users arrive at the wiki anonymously, and as long as they are just viewing they do not need to authenticate. As soon as they try to edit, I am wanting to force authentication to the web server so I can get the "loginName" to use for their TWiki account.

How do I use modifyHeaderHandler to pass this into the HTTP header?

header('WWW-Authenticate: Basic realm="'.$realm.'"')

That HTTP header entry forces an authentication back to the web server (LDAP backend).

Thanks, Matt

Environment

TWiki version: TWikiRelease04x02x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris 10
Web server: Sun Java
Perl version: 5.8.8
Client OS: any
Web Browser: any
Categories: Authorisation, Browser Issue, Plugins

-- MattMencel - 07 Jul 2008

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.

Sorry, closing this question after more than 30 days of inactivity. Feel free to re-open if needed.

-- PeterThoeny - 02 Sep 2008

 
Change status to:
Topic revision: r2 - 2008-09-02 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.