lists.arthurdejong.org
RSS feed

Re: [PATCH] Include query results in debug output

[Date Prev][Date Next] [Thread Prev][Thread Next]

Re: [PATCH] Include query results in debug output



On Thu, 2011-10-06 at 23:21 +0200, Matthijs Kooijman wrote:
> while debugging a configuration issue recently, I was surprised at the
> lack of debug output regarding query results. The attached patch fixes
> this by outputting the dn of every result returned.

Thanks for your patch and sorry for not getting back to you sooner. The
reason that the DN isn't logged is that it can produce a lot of output
for directories with a lot of users.

If you can come up with a patch that logs something like:

nslcd: [e8944a] <passwd(all)> DEBUG: uid=arthur, ou=people, dc=example, dc=com
nslcd: [e8944a] <passwd(all)> DEBUG: uid=fred, ou=people, dc=example, dc=com
nslcd: [e8944a] <passwd(all)> DEBUG: uid=steve, ou=people, dc=example, dc=com
nslcd: [e8944a] <passwd(all)> DEBUG: 513 more entries were matched

So log the first X (say 10) entries with a DN and log a summary at the
end of the results. The test_myldap.c file already does something like
that so some parts can perhaps be re-used.

Thanks,

-- 
-- arthur - arthur@arthurdejong.org - http://arthurdejong.org --
-- 
To unsubscribe send an email to
nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-users/