Re: [Phplib-users] Basic authentication
Brought to you by:
nhruby,
richardarcher
From: nathan r. h. <dst...@ds...> - 2002-01-31 14:01:12
|
On Thu, 31 Jan 2002, Tarique Sani <ta...@sa...> wrote: > On Wed, 30 Jan 2002, Chris Johnson wrote: > > > Has anybody modified PHPLIB to use HTTP basic authentication (i.e. "realms") > > instead of the default standalone login page stuff? > > Err ... If you read the manual you must have noted that in-line > authentication of PHPlib was written the over come the short commings of > Basic HTTP authentication > > Care to explain why you want to turn the wheel back? > You can sort of simulate HTTP basic auth by creting a script that looks like: <?php // This is the acces modifier script include("prepend.inc"); page_open(array("sess"=>"someSess", "auth"=>"someAuth")); // If you want some perms stuff here, feel free to use it. page_close(); ?> and making the following change in your httpd.conf (of course, you're using apache, right :) <Directory /path/to/someDir/> php_value auto_prepend_file "/path/to/access_modifier.php" </Directory> This will force the phplib login mechanism into loading every time anything in that directoy is hit (you can also use this in a File directive or a vhost directive.. :). Instead of using the standard system dialog from the browser, it will use the settings set in the "someAuth" subclass of the Auth object, thus having the same net effect as HHTP basic auth, but with finer granularity. You'll need to setup the standard phplib ath stuff -n (Been offline for a while I know.. problems with old hosting provider) |