I had created a quiz. And had provided authentication using LDAP. It was working fine. Suddenly, LDAP stopped working. During debugging, I have deliberately checked a checkbox, after that username and password field got disabled. And an error message displayed on the home-screen saying,
You are accessing using an unencrypted connection. For your security, only supports account logins using a secure protocol such as HTTPS. You can switch to HTTPS by trying to view this page again after changing the URL in your browser's location bar to begin with "https" instead of "http". Please contact site admin for help if this error continues.
And if I use, https instead http, "This webpage is not available" error comes. Please, help me in this regard.
Please, go through the attachment for screen-shot.
Thank you in advance.
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot from 2013-06-05 12:04:08.png | 62.84 KB | kaizzy |
Comments
Comment #1
kaizzy commentedComment #2
kaizzy commentedIssue solved.
went to ../site/all/modules/ldap/ldap_servers/ldap_servers.module. Put some modification like
Make true to false, then unchecked the checkbox and made it true again.
function ldap_servers_disable_http_check(&$form) {
if (variable_get('ldap_servers_require_ssl_for_credentails', 0) == 1 && @$_SERVER['HTTPS'] != 'on') {
$tokens = array(
'site_name' => variable_get('site_name', 'this site'),
'site_mail' => variable_get('site_mail', ''),
);
drupal_set_message(t(theme('ldap_servers_https_required', $tokens)), 'error');
$form['#disabled'] = TRUE;
}
}
Comment #3
kaizzy commentedComment #5
panditvarun20 commentedwhich checkbox are you unckecking? i made it true to false then it enable the fields only but it does not login.