summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-05-21 14:52:18 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-05-21 14:52:18 +0000
commitfffc5e98f6efe65e9c680ed319fdd87e42e51c3e (patch)
treeb35f173843a8f769e6b41c1028560f74d443ea8c
parent35b169178f052af069cd2c65159d71987a97708e (diff)
fix problem with partial attribute name matches in DN (e.g. uid vs. uidNumber) (thanks to Timothy White for the fix)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1464 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r--nslcd/myldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nslcd/myldap.c b/nslcd/myldap.c
index 20e1083..f2f6770 100644
--- a/nslcd/myldap.c
+++ b/nslcd/myldap.c
@@ -1451,6 +1451,7 @@ static const char *find_rdn_value(char **exploded_rdn,const char *attr)
/* nothing here */;
/* ensure that we found an equals sign now */
if (exploded_rdn[i][j]!='=')
+ continue;
j++;
/* skip more spaces */
for (j++;isspace(exploded_rdn[i][j]);j++)