From 9e682fa2a633fd69ce2e6b4b987bda04f02424cc Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Tue, 13 Mar 2012 18:29:28 +0000 Subject: make whether or not to do case-sensitive filtering configurable (patch by Matthew L. Dailey) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1634 ef36b2f9-881f-0410-afb5-c4e39611909c --- nslcd/passwd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nslcd/passwd.c') diff --git a/nslcd/passwd.c b/nslcd/passwd.c index 73dd9f5..a6d0d5b 100644 --- a/nslcd/passwd.c +++ b/nslcd/passwd.c @@ -556,7 +556,7 @@ static int write_passwd(TFILE *fp,MYLDAP_ENTRY *entry,const char *requser, attmap_get_value(entry,attmap_passwd_loginShell,shell,sizeof(shell)); /* write the entries */ for (i=0;usernames[i]!=NULL;i++) - if ((requser==NULL)||(strcmp(requser,usernames[i])==0)) + if ((requser==NULL)||(STR_CMP(requser,usernames[i])==0)) { if (!isvalidname(usernames[i])) { -- cgit v1.2.3