This is the mail archive of the
mailing list for the Cygwin project.
timeout in LDAP access
- From: Denis Excoffier <cygwin at Denis-Excoffier dot org>
- To: Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Mon, 16 Jun 2014 22:39:45 +0200
- Subject: timeout in LDAP access
- Authentication-results: sourceware.org; auth=none
I’ve exercised ‘getent' a little bit those days (with 'db_enum: all’ in /etc/nsswitch.conf), and it seems to me
that the timeout ‘tv' (3 seconds, in ldap.cc) is probably too small for servers not so quickly responsive
or with many (500000, fake or real) users around (see the call to ldap_get_next_page_s()). 300 seconds should be
enough i suppose.
Also it is a pity that LDAP_TIMEOUT is not announced to the user (except under strace: 0x55). I don’t know the
general policy for timeouts, but i consider that the user would like to be informed when the passwd/group list was
Another (unrelated and less important) problem is that 'getent' happily produces lines with some extra ‘:’, in
particular when the gecos field itself contains ‘:’.
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple