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/rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nslcd/rpc.c') diff --git a/nslcd/rpc.c b/nslcd/rpc.c index 90cb89e..e8691c6 100644 --- a/nslcd/rpc.c +++ b/nslcd/rpc.c @@ -124,9 +124,9 @@ static int write_rpc(TFILE *fp,MYLDAP_ENTRY *entry,const char *reqname) if (name==NULL) name=aliases[0]; /* check case of returned rpc entry */ - if ((reqname!=NULL)&&(strcmp(reqname,name)!=0)) + if ((reqname!=NULL)&&(STR_CMP(reqname,name)!=0)) { - for (i=0;(aliases[i]!=NULL)&&(strcmp(reqname,aliases[i])!=0);i++) + for (i=0;(aliases[i]!=NULL)&&(STR_CMP(reqname,aliases[i])!=0);i++) /* nothing here */ ; if (aliases[i]==NULL) return 0; /* neither the name nor any of the aliases matched */ -- cgit v1.2.3