Index: ldapgroups.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ldap_integration/ldapgroups.inc,v
retrieving revision 1.2
diff -u -p -r1.2 ldapgroups.inc
--- ldapgroups.inc	25 Aug 2009 13:53:20 -0000	1.2
+++ ldapgroups.inc	25 Oct 2010 07:05:15 -0000
@@ -28,6 +28,7 @@ function ldapgroups_user_login(&$account
 
   // Apply groups restrictions.
   if (count($groups_allow = _ldapgroups_ldap_info($account, 'ldapgroups_groups')) > 0 && count(array_intersect($groups, $groups_allow)) == 0) {
+    watchdog('ldapauth', 'Attempt to login LDAP user with DN %dn denied as not member of an LDAP group which allow automatic account creation', array('%dn' => $dn), WATCHDOG_ERROR);
     $account = user_load(0);
     return;
   }
