From: Paul L. <pa...@sq...> - 2006-10-26 10:56:56
|
On 10/26/06, Jan Hugo Prins <jh...@jh...> wrote: > Paul Lesniewski wrote: > > On 10/26/06, Jan Hugo Prins <jh...@jh...> wrote: > > > >> Paul Lesniewski wrote: > >> > >>> On 10/26/06, Jan Hugo Prins <jh...@jh...> wrote: > >>> > >>>> Jan Hugo Prins wrote: > >>>> > >>>>> Als ik dit doe krijg ik de volgende melding als ik probeer te > >>>>> > >>>> connecten: > >>>> > >>>>> The page isn't redirecting properly > >>>>> Firefox has detected that the server is redirecting the request for > >>>>> > >>>> this > >>>> > >>>>> address in a way that will never complete. > >>>>> * This problem can sometimes be caused by disabling or > >>>>> > >>>> refusing to > >>>> > >>>>> accept > >>>>> cookies. > >>>>> > >>> How are you configuring the login page URI? I have just completed a > >>> modification of the plugin to allow dynamic domain replacement, but > >>> did you find a way to do this without needing such functionality? > >>> > >> This is a typical Virtual Domain array as I want to implement it in > >> Squirrelmail vlogin. > >> > >> $virtualDomains = array( > >> 'customer.com' => array( > >> 'domain' => 'customer.com', > >> 'org_name' => 'Better.be BV', > >> 'provider_uri' => 'http://www.customer.com/', > >> 'signout_page' => 'https://secure.provider.com/customer/', > >> 'custom_login_URI' => > >> 'https://secure.provider.com/squirrelmail/src/login.php?domain=customer.com', > >> 'org_logo' => SM_PATH . 'images/Customerlogo.gif', > >> 'org_logo_width' => '280', > >> 'org_logo_height' => '70', > >> 'org_title' => 'Customre WebMail / SquirrelMail $version', > >> 'motd' => '<H1>Customer Webmail</H1>', > >> 'ldap_server' => array( > >> 0 => array( > >> 'host' => 'ldaprepl.lan.provider.com', > >> 'base' => 'ou=Users,ou=customer,dc=provider,dc=com', > >> 'name' => 'Customer Users', > >> )), > >> 'settingsWithEmbeddedPHP' => array( > >> ) > >> ) > >> ); > >> > >> This are the rewrite rules on the default httpd of the webserver that > >> has to handle all this. > >> > >> RewriteCond %{HTTP_HOST} ^webmail[a-zA-Z0-9\.]* > >> RewriteRule ^(.+) %{HTTP_HOST}$1 [C] > >> RewriteRule ^webmail[a-zA-Z0-9]*\.([a-zA-Z0-9\.]*)\/(.*) > >> https://secure.provider.com/squirrelmail/src/login.php?domain=$1 > >> > >> RewriteCond %{HTTP_HOST} ^squirrel[a-zA-Z0-9\.]* > >> RewriteRule ^(.+) %{HTTP_HOST}$1 [C] > >> RewriteRule ^squirrel[a-zA-Z0-9]*\.([a-zA-Z0-9\.]*)\/(.*) > >> https://secure.provider.com/squirrelmail/src/login.php?domain=$1 > >> > > > > Can you make it work by temporarily removing the rewrite rules? Can > > you see what is causing the Firefox error at all? > > > I have removed the rewrite rules in httpd and this does not make any > difference. > > For the rest, if I enable the plugin and don't configure any > custom_login_URI all the Squirrelmails break. See below. > I have put a config.php in the login_redirect directory containing just > the following: You don't need to have a config file at all if you only use vlogin to change the URIs. The problem that I neglected to mention is that the plugin fires on a hook in the login page, so you get an endless loop. It was originally intended to point the browser to a custom page without that hook in it. I have now changed the plugin so that it will NOT redirect if the target URI is the same as the current one. Sending offlist. -paul |