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.

CommentFileSizeAuthor
Screenshot from 2013-06-05 12:04:08.png62.84 KBkaizzy

Comments

kaizzy’s picture

Title: Username and Password got disabled » Username and Password field got disabled
Project: Drupal core » LDAP integration
Version: 7.2 » master
Component: configuration system » Miscellaneous
kaizzy’s picture

Issue 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;
}
}

kaizzy’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

panditvarun20’s picture

which checkbox are you unckecking? i made it true to false then it enable the fields only but it does not login.