From 989fa91059ce27773ff279a2098ea81108682eab Mon Sep 17 00:00:00 2001 From: martinlanghoff Date: Wed, 16 Mar 2005 10:23:16 +0000 Subject: [PATCH] Now CAS-supplied tokens can override LDAP auth - fixed --- auth/ldap/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/ldap/lib.php b/auth/ldap/lib.php index 39bd042720f..563e8ad029d 100644 --- a/auth/ldap/lib.php +++ b/auth/ldap/lib.php @@ -52,7 +52,7 @@ function auth_user_login ($username, $password) { } // CAS-supplied auth tokens override LDAP auth - if (AUTH_LDAP_NAME === 'cas' && $CFG->use_cas == 1) { + if ($CFG->auth == "cas" && !empty($CFG->cas_enabled)) { return cas_ldap_auth_user_login($username, $password); }