diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-03-25 13:00:50 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-03-28 11:42:47 -0400 |
commit | 95c3131ffeef889399f5afada8b8e47e7892d81f (patch) | |
tree | ce4f9aebdd3a3508dc28c1b89278786d54bf3e99 /src/providers/ldap/sdap_async_accounts.c | |
parent | 97bd239c546febf20008e4e2d8a959b91c738d1f (diff) | |
download | sssd-95c3131ffeef889399f5afada8b8e47e7892d81f.tar.gz sssd-95c3131ffeef889399f5afada8b8e47e7892d81f.tar.bz2 sssd-95c3131ffeef889399f5afada8b8e47e7892d81f.zip |
RFC2307: Ignore zero-length member names in group lookups
Diffstat (limited to 'src/providers/ldap/sdap_async_accounts.c')
-rw-r--r-- | src/providers/ldap/sdap_async_accounts.c | 4 |
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); |