Re: [users@httpd] Dynamic authentication rules

2022-02-11 Thread stormy

On 2022-02-11 2:52 p.m., Marc SCHAEFER wrote:

Hello,

In general, I would handle that kind of authentification tricks in a
perl script, however in this case I would need to protect a script
directly in Apache.

What presumably would work:


AuthType Basic
AuthName "Login Required for testing"
AuthUserFile /shared/testing/htpasswd
Require valid-user



Maybe I'm missing something that you refer to as "tricks" and 
"presumably"?  Proof of concept?  Context?


To "protect a script" is normally at system level.  Why do you "need" to 
do this "directly in Apache"?  Users?  Permissions?  It doesn't really 
matter whether you write in perl or my favourites fortran and cobol.


Best -- Paul
Tired old sys-admin.



What I would like to do:


AuthType Basic
AuthName "Login Required for $1"
AuthUserFile /shared/$1/htpasswd
Require valid-user


Is there a way to do something dynamic like this ?

Thank you for any pointer.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Dynamic authentication rules

2022-02-11 Thread Marc SCHAEFER
Hello,

In general, I would handle that kind of authentification tricks in a
perl script, however in this case I would need to protect a script
directly in Apache.

What presumably would work:


   AuthType Basic
   AuthName "Login Required for testing"
   AuthUserFile /shared/testing/htpasswd
   Require valid-user


What I would like to do:


   AuthType Basic
   AuthName "Login Required for $1"
   AuthUserFile /shared/$1/htpasswd
   Require valid-user


Is there a way to do something dynamic like this ?

Thank you for any pointer.

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org