[opencms-dev] Multi Site Login problem

Christian Steinert christian_steinert at web.de
Mon Sep 11 12:29:04 CEST 2006


Mario D'Angelo schrieb:
>
> I have two Sites set: “/sites/Provincia_di_Napoli/” and
> “/sites/InfoNet/”, everything works great, but when I tried to perform
> a login from the online site for editing content it works only if the
> login is performed from the site set as default in the
> “opencms-workplace.xml” conf file es.:
>

I am surprised about this:
>
>  
>
>           cmsObject.getRequestContext().setSiteRoot("/sites/InfoNet");
>
and this:
>
>                           String login_redirect =
> "/opencms/opencms/system/workplace/commons/displayresource.jsp?resource=/opencms/opencms/sites/InfoNet"
> + curFolder + "index.html"; //DO NOT DELETE
>

It seems as if the code is written for only one of your sites.
I think especially your call of setSiteRoot should be dependent on the
URL for which the login was requested.

christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060911/c45ec7ce/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060911/c45ec7ce/attachment.bin>


More information about the opencms-dev mailing list