[Bug nscd/2132] Use nscd to support disconnected LDAP operation

arthur at arthurdejong dot org sourceware-bugzilla@sourceware.org
Sun Nov 1 14:49:00 GMT 2009


------- Additional Comments From arthur at arthurdejong dot org  2009-11-01 14:49 -------
According to http://www.gnu.org/software/libc/manual/html_node/NSS-Modules-Interface.html there 
are four error conditions that can be returned by an NSS module:

NSS_STATUS_TRYAGAIN+EAGAIN
NSS_STATUS_TRYAGAIN+ERANGE
NSS_STATUS_UNAVAIL+ENOENT
NSS_STATUS_NOTFOUND+ENOENT

Is it really correct for an NSS module to return NSS_STATUS_TRYAGAIN+EAGAIN when the LDAP server 
is unavailable or would NSS_STATUS_UNAVAIL+EAGAIN be better (or perhaps something else)?

Wouln't it be better if nscd only enters data in the cache on NSS_STATUS_SUCCESS and 
NSS_STATUS_NOTFOUND? (that should also solve this problem and probably be more consistent)

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=2132

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Glibc-bugs mailing list