auth_type, array('cookie','session'))) pla_error(sprintf(_('Unknown auth_type: %s'),htmlspecialchars($ldapserver->auth_type))); include './header.php'; echo ''; 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 '
'; printf('',$ldapserver->server_id); if (isset($_GET['redirect'])) printf('',rawurlencode($_GET['redirect'])); echo '
'; echo ''; printf('',$ldapserver->isLoginAttrEnabled() ? _('Login Name') : _('Login DN')); printf('', $ldapserver->isLoginAttrEnabled() ? 'uid' : 'login_dn', $ldapserver->isLoginAttrEnabled() ? '' : $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 ''; echo '
'; echo '
'; if( $ldapserver->isAnonBindAllowed() ) { ?> '; echo ''; ?>