summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2011-03-25 13:00:50 -0400
committerStephen Gallagher <sgallagh@redhat.com>2011-03-28 11:42:47 -0400
commit95c3131ffeef889399f5afada8b8e47e7892d81f (patch)
treece4f9aebdd3a3508dc28c1b89278786d54bf3e99 /src
parent97bd239c546febf20008e4e2d8a959b91c738d1f (diff)
downloadsssd-95c3131ffeef889399f5afada8b8e47e7892d81f.tar.gz
sssd-95c3131ffeef889399f5afada8b8e47e7892d81f.tar.xz
sssd-95c3131ffeef889399f5afada8b8e47e7892d81f.zip
RFC2307: Ignore zero-length member names in group lookups
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/sdap_async_accounts.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/providers/ldap/sdap_async_accounts.c b/src/providers/ldap/sdap_async_accounts.c
index 8447942c..07bf5153 100644
--- a/src/providers/ldap/sdap_async_accounts.c
+++ b/src/providers/ldap/sdap_async_accounts.c
@@ -1236,6 +1236,10 @@ sdap_process_group_members_2307(struct sdap_process_group_state *state,
for (i=0; i < memberel->num_values; i++) {
member_name = (char *)memberel->values[i].data;
+
+ /* We need to skip over zero-length usernames */
+ if (member_name[0] == '\0') continue;
+
ret = sysdb_search_user_by_name(state, state->sysdb,
state->dom, member_name,
NULL, &msg);