nss_getpwnam() fails to find the password entry when the DNS domain name has both upper and lower characters, which is wrong. Case need to be ignored when comparing domain names. Signed-off-by: Steve Dickson <steved@xxxxxxxxxx> --- nss.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/nss.c b/nss.c index 04aff19..b2b1227 100644 --- a/nss.c +++ b/nss.c @@ -141,7 +141,7 @@ static char *strip_domain(const char *name, const char *domain) if (c == NULL && domain == NULL) { len = strlen(name) + 1; } else { - if (domain && strcmp(c + 1, domain) != 0) + if (domain && strcasecmp(c + 1, domain) != 0) goto out; len = c - name; } -- 1.7.7 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html