[horde] Bypass Login with pre-auth because Language Selection on Login unnecessary

Will Parker will.parker at sourcepoint.com.au
Tue Oct 13 22:37:33 UTC 2009


Hi horde

I have been reading on the lists and find a lot of information related  
to the language selection drop down on login.

The suggestions I have tried from this has focused on the following  
two observations:

login.php

/* Build the <select> widget containing the available languages. */
if (!$prefs->isLocked('language')) {
     $_SESSION['horde_language'] = NLS::select();
     $langs = '<select name="new_lang" onchange="selectLang()">';
     foreach ($nls['languages'] as $key => $val) {
         $sel = ($key == $_SESSION['horde_language']) ? '  
selected="selected"' : '';
         $langs .= "<option value=\"$key\"$sel>$val</option>";
     }
     $langs .= '</select>';
}

and

config/prefs.php

// user language
$_prefs['language'] = array(
     'value' => '',
     'locked' => true,
     'shared' => true,
     'type' => 'select',
     'escaped' => true,
     'desc' => _("Select your preferred language:")
);

The changing of the 'value' for language and/or the 'locked' value  
work for me in so much as they define the value in advance and remove  
the dropdown selector for language on the login page respectively.

However the crux of my question is how does one bypass the necessity  
for a user who has been pre-authenticated (using the webmail  
redirection scheme of cPanel/WHM - username and password in a popup on  
approach to webmai.mydomain.com) and subsequently presented with a  
login page with a <Log In> button only.

ie once the language is locked off and predefined the login page  
requires nothing more than a <Log In> click from the user - no  
authentication is required and it is therefore a matter of  
interrupting an otherwise automated login to the chosen portal page  
within the horde.

Sorry if this is one of those things that has been answered ad-nauseum  
but I have not been able to find it easily in the lists or web beyond  
the type of answers I have alluded to above.

Best regards,
Will



More information about the horde mailing list