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

%s %s

',_('Authenticate to server'),$ldapserver->name); # Check for a secure connection if (! isset($_SERVER['HTTPS']) || $_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 (isset($_GET['redirect'])) printf('',rawurlencode($_GET['redirect'])); 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() ) { ?>