auth_type, array('cookie','session'))) error(sprintf(_('Unknown auth_type: %s'),htmlspecialchars($ldapserver->auth_type)),'error','index.php'); printf('

%s %s

',_('Authenticate to server'),$ldapserver->name); # Check for a secure connection if (! isset($_SERVER['HTTPS']) || strtolower($_SERVER['HTTPS']) != 'on') { echo '
'; echo '
'; echo ''; printf('%s: %s.', _('You are not using \'https\'. Web browser will transmit login information in clear text.'), _('Warning'),_('This web connection is unencrypted')); echo ''; echo '
'; echo '
'; } # Login form. echo '
'; echo ''; printf('',$ldapserver->server_id); if (get_request('redirect','GET',false,false)) printf('',rawurlencode(get_request('redirect','GET'))); echo '
'; echo ''; printf('', $ldapserver->login_attr == 'dn' ? _('Login DN') : $_SESSION[APPCONFIG]->getFriendlyName($ldapserver->login_attr)); printf('', $ldapserver->login_attr, $ldapserver->login_attr == 'dn' ? $ldapserver->login_dn : ''); echo ''; printf('',_('Password')); echo ''; echo ''; # If Anon bind allowed, then disable the form if the user choose to bind anonymously. if ($ldapserver->isAnonBindAllowed()) printf('', _('Anonymous')); printf('', _('Authenticate')); echo '
%s:
 
%s:
 
%s
'; echo '
'; echo '
'; echo ''; if( $ldapserver->isAnonBindAllowed() ) { ?>