Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-05-21 16:54:17 +0200
committerArthur de Jong <arthur@arthurdejong.org>2011-05-21 16:54:17 +0200
commit64a0e51aca91723e1a441b96c92c5b02b32e84ce (patch)
tree0b12bb34b08e8ac7866b79d44d7110576bc30b2b
parentb959ed9d64a7ff43903ac1ec41463dcf891ac290 (diff)
fix problem with partial attribute name matches in DN (e.g. uid vs. uidNumber) (thanks to Timothy White for the fix) (r1464 from trunk)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd-0.7@1465 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 6a7da54..872764a 100644
--- a/nslcd/myldap.c
+++ b/nslcd/myldap.c
@@ -1448,6 +1448,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++)