--- ldapsync.module	2008-08-15 08:49:48.000000000 -0400
+++ ldapsync.module.new	2009-11-12 09:38:38.000000000 -0500
@@ -116,10 +116,7 @@
 
   if ( $ldapgroups_sync ) {
     // Call init hook (see above).
-    module_invoke("ldapgroups", "init");
-    
-    // Synchronize LDAP groups
-    module_invoke("ldapgroups", "user_login", $user);
+    module_invoke("ldapgroups", "user", "login", null, $user);
   }
 
   // Reset the authmap to cas authentication.
