Question
I'm not a web programmer and have not been able to get the standard Apache authentication to work. I've done plenty of RTFM, and trial and error, but only errors have resulted. For example, if I take the
.htaccess.txt file, plug in my local variable values and remove the file extension, none of the graphics (e.g. the TWiki logo in the upper left corner) work. I have to remove all the lines starting with:
SetHandler cgi-script
to get the graphics working again. So then I never get the login dialog box to log in with.
My employer (Dartmouth College) has a public domain authentication scheme (Kerberos) that's used by a number of colleges and links to our LDAP directory. I'd love to use this authentication means, since everyone already uses it. But I don't have the perl chops to hack up the authentication code in Twiki myself. I also hesitate to drag in someone local who knows perl, but not Twiki.
However, the Kerberos interface is published and it seems it could provide a suitable LAN login_name value. I sure can't get REMOTE_USER to be recognized...
Could I beg some kind soul to take a look at the API description and sample code and suggest
how big a job it would be to implement this in TWiki? Heck, while I'm dreaming, maybe someone could do it for me???
Kerberos API and Sample
- TWiki version: 01 Dec 2001
- Web server: Apache/1.3.6 (Unix) mod_perl/1.20
- Server OS:
- Web browser: IE
- Client OS: Win2000
Thanks!
--
StewStryker - 10 Jul 2002
Since I didn't get any answers, let me try another whack at it.
I think the following statements are true:
- Twiki uses the variable REMOTE_USER to authenticate the username, generally created by Apache authentication.
- I can't get Apache to do the Basic Authentication.
- I have the code needed to get the user's process name from Kerberos (see above example link).
- Twiki.cfg is called whenever a page request is made.
If all the above are true, then I'm thinking I might be able to edit
Twiki.cfg to:
- Create the REMOTE_USER variable in Perl.
- Call the Kerberos authentication routine and have it give me the username
- Assign that username to REMOTE_USER
- Twiki would try to match REMOTE_USER to the value the user had set in their user setup.
Does this make sense?
Or is it ludicrous to add a call to get the Kerberos value each time a page is requested, just to do authentication?
Or can I not create the REMOTE_USER variable in Perl and expect Twiki to read it as if it was created by Apache authentication?
Finally, if I'm going to hack
Twiki.cfg this way, I'm seriously thinking about installing the current
beta version, so I'll be less likely to have to hack a different version in the future. Any thoughts on that idea?
Any chance there's a new spot for an authentication plug-in in the beta, that would facilitate this w/o hacking
Twiki.cfg?
Thanks, Stew
--
StewStryker - 14 Aug 2002
Answer
.