Yes, I know the weakness of my code, and I use that only in intranet 
environment through https.
Gregory's pointer is nice, I will probably move to that way of doing system 
operations.

Thx for help

Stephane 

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Matteo Pelucco
Sent: Friday, March 13, 2009 12:50 PM
To: [email protected]
Subject: [magnolia-user] Re: Force superuser actions


Gauthier, Stephane (CH) ha scritto:
> Hi Matteo,
> 
> I don't if this could help but, I used something to force a servlet, that 
> receive data from a third party application, to store data to the repository.
> 
> I pass the credentials by url ?mgnlUserId=superuser&mgnlUserPSWD=superuser 
> Then I trap the credential just like the FormLogin does
> 
> FormLogin formLogin = new FormLogin ();
> formLogin formLogin.handle(request, response);
> 
> After that your HierarchyManager comes with the good rights to manipulate the 
> repository
> 
> Hope this helps

Thanks for your help!
It can be a good idea but in this case you say to external systems 
(maybe also sniffer) superuser pwd!

I managed to solve that with Grégory pointer...

Matteo


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to