Index: cas.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cas/cas.module,v
retrieving revision 1.74.2.1
diff -u -p -r1.74.2.1 cas.module
--- cas.module	16 Jul 2010 00:36:58 -0000	1.74.2.1
+++ cas.module	20 Jul 2010 06:48:34 -0000
@@ -323,6 +323,15 @@ function cas_login_check() {
       );
       $user = user_save($user, $user_up);
       
+      // If attributes are available let other modules use them.
+      if (method_exists("phpCAS","getAttributes")) {
+        $attributes = phpCAS::getAttributes();
+        
+        // Allow other modules process attributes. If a module wants to check if
+        // it's a new user then check $_SESSION['cas_first_login']
+        module_invoke_all('process_attributes_cas', $user, $attributes);
+      }
+      
       $edit = array();
       if (module_exists('persistent_login') && $_SESSION['cas_remember']) {
         $edit['persistent_login'] = 1;
