Thank you for your response.

This is I thought...

Does a PHP script can switch from an user to an other ?

The mechanism :

Authentification against Active Directory
I store the username
I launch my script under a privilege account.
And then in my script I switch from this "super" user to an other <=== how we 
do that ?

Thank you for all.

-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de [EMAIL PROTECTED]
Envoyé : jeudi 26 juillet 2007 14:52
À : [email protected]
Objet : Re: [suPHP] suPHP_UserGroup dynamic ? is it possible ?

Hi,

> If I switch suPHP_UserGroup CDA+%{USER} staff
> 
> in suPHP_UserGroup CDA+j.rautureau staff
> 
> There is no problem. The script is correctly executed by
> CDA+j.rautureau.
>  
> All I would like is to make in dynamic...you see ?

That causes a hell lot of trouble. Y
our configuration file is parsed when the apache server process starts.
SuPHP is then readily configured and knows the user ids it has to switch to.
But you are trying to make this depend on the request itself. So to serve
the request you first would have to know the contents of that request.
Obviously that can't work right away. You'd have to serve the request as a
privileged user account and then drop privileges and switch to the desired
user id in the process of serving that request. As far as I know that isn't
supported by suPHP.

Olli


_______________________________________________
suPHP mailing list
[email protected]
http://lists.marsching.biz/mailman/listinfo/suphp

_______________________________________________
suPHP mailing list
[email protected]
http://lists.marsching.biz/mailman/listinfo/suphp

Reply via email to