Hi,
Amith reported these two issues.
[PATCH 1/2] Save original name into the in-memory cache
We were saving the original name into the netgroup hash when the object
was first constructed but when no domain matched, we would save the cased
name. The first request that was constructed with the original name was never
marked as "ready", so another request with the same name was stuck waiting.
[PATCH 2/2]
setnetgrent return codes are handled in the _done callback, some of them
gracefully, such as ENOENT that sends an empty reply. This patch uses
tevent_req_post() to always call the callback and handle error conditions
there. In particular, Amith was able to trigger this error by requesting
a netgroup by raw name when all domains were marked as FQDN only