$NetBSD: patch-aa,v 1.2 2005/09/03 17:00:07 adrianp Exp $ --- login.php.orig 2005-04-15 14:16:59.000000000 +0100 +++ login.php @@ -30,7 +30,9 @@ $ldapserver = new LDAPServer($server_id) $dn = isset( $_POST['login_dn'] ) ? $_POST['login_dn'] : null; $uid = isset( $_POST['uid'] ) ? $_POST['uid'] : null; $pass = isset( $_POST['login_pass'] ) ? $_POST['login_pass'] : null; -$anon_bind = isset( $_POST['anonymous_bind'] ) && $_POST['anonymous_bind'] == 'on' ? true : false; +$anon_bind = isset( $_POST['anonymous_bind'] ) && + $_POST['anonymous_bind'] == 'on' && + $ldapserver->isAnonBindAllowed() ? true : false; if( ! $anon_bind ) strlen($pass) or pla_error( $lang['password_blank'] ); @@ -149,9 +151,6 @@ include realpath( 'header.php' ); parent.left_frame.location.reload(); - - parent.right_frame.location.href='welcome.php'; -