Revision [16272]

This is an old revision of Webauth made by GuyEdwards on 2007-03-09 06:12:00.

 

Using Webauth to identify the users

The webauth Apache module, and any other apache authentication module should set $_SERVER[REMOTE_USER] once the user is authenticated.

E.g. to access the wiki directory Apache uses a module you have configured (basic auth via a .htaccess file, or auth via mod_webauth etc) challenges the user for a username and password, I think you will still need a users entry in the database.

so in approx line 808 in libs/Wakka.class.php

comment out the existing line and replace:

//      function GetUser() { return (isset($_SESSION["user"])) ? $_SESSION["user"] : NULL; }
		function GetUser() { return (isset($_SERVER["REMOTE_USER"])) ? $_SERVER["REMOTE_USER"] : NULL; }


Still to do: It now appears to be recognising that the user is already authenticated (e.g. not asking them to login) however the usernames used by webauth (at this location) aren't valid Wiki Formatted names so a username of deptname01234 appears as "d" in the top right of the wiki page currently.

Still to do: For "webauth" I also just need to make the logout redirect to a specific url e.g. https://webauth.mycompany.somewhere/logout which will kill the kerberos session.
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki