Index: Ldap.php =================================================================== --- Ldap.php (revision 600) +++ Ldap.php (revision 601) @@ -49,6 +49,7 @@ $retval = false; $filter = $AUTHCFG['ldap_account'] . '=' . $authUser; + ldap_set_option($conn, LDAP_OPT_REFERRALS, 0); $ident = @ldap_search($conn, $AUTHCFG['ldap_basedn'], $filter); if ($ident) { @@ -74,7 +75,7 @@ $conn = ldapConnectServer(); if ($conn == NULL) return NULL; - + ldap_set_option($conn, LDAP_OPT_REFERRALS, 0); $ident = @ldap_search($conn, $AUTHCFG['ldap_basedn'], $filter, $required); if ($ident) {