From 5565fcd24dcbe2283a4b111fd2ac5b073df10546 Mon Sep 17 00:00:00 2001
From: Tim Steiner <tsteiner2@unl.edu>
Date: Tue, 10 Mar 2009 19:06:53 +0000
Subject: [PATCH] Fix user import if a brand new user logs in via CAS.

---
 application/modules/auth/controllers/IndexController.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/modules/auth/controllers/IndexController.php b/application/modules/auth/controllers/IndexController.php
index 79fd4811..27864716 100644
--- a/application/modules/auth/controllers/IndexController.php
+++ b/application/modules/auth/controllers/IndexController.php
@@ -70,7 +70,7 @@ class Auth_IndexController extends App_Controller_Action {
 		
 		$user = Auth_UserModel::findCurrentUser();
 		if (!$user) {
-			$user = Auth_UserModel::fetchNewFromLdap($username);
+			$user = Auth_UserModel::fetchNewFromLdap($auth->getIdentity());
 		}
 		
 		$this->_redirect('/');
-- 
GitLab