--- pdb_ldap.c.ori 2007-11-01 08:24:26.972698528 +0100 +++ pdb_ldap.c 2007-11-01 08:26:10.467380763 +0100 @@ -2231,7 +2231,8 @@ count = ldap_count_entries(priv2ld(ldap_state), result); if (count < 1) { - DEBUG(4, ("ldapsam_getgroup: Did not find group\n")); + DEBUG(4, ("ldapsam_getgroup: Did not find group, filter was %s\n", + filter)); ldap_msgfree(result); return NT_STATUS_NO_SUCH_GROUP; }