[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Redirecting to a index page depending on group membership on Apache 1.3
> At 19:02 26/08/03 +0100, you wrote:
> >I can use mod_pam to get access to the same user names passwords etc, but
I
> >can`t see how to do the redirect.
> >
> >It IIS4 works by running as the web user (as apposed to the web server
user)
> >and checks if it can access a file, if yes
> >they are staff.
> >
> >As far as I know apache runs php scripts etc as the apache user, so this
> >wouldn't`t work. It looks like I need to be using
> >apache authentication directives but what should I use?
>
> There's lots of ways to achieve what you want, but without more details of
> your setup then it's hard to know which is best.
>
> Could you have
> http://mysite.com/index.php
> that checks the username and password and redirects using
> header('Location: /staff/index.php');
> to the appropriate place?
>
> Gary
>
Yes, that`s how I did it with IIS, though the file was start.asp, I ensured
that the user had to be authenticated before
they ran the script, then used the script to branch (via a redirect) to
either the staff or student home pages.
What would be nice to be able to do, is to have a three way redirect, so
that un-authenticated users were dropped into a
public home page,with instructions on how to change their password etc. but
that could be a link from a custom error page!
The main thing is that it autheticates on the unix passwd database, which
happens to include our NT users via winbind.
I am hoping to use mod_pamauth to use these with apache.
Any comments welcome.
Rob Keeling
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.