diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-04-20 21:43:37 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-04-20 21:43:37 +0200 |
commit | dbc26827cca506111622f78cf15e29bf526c3dec (patch) | |
tree | 19b692bf455eef25d22dc4da495b720d8efc3753 /nslcd/group.c | |
parent | 6f82bab3ef6c3ebf7777fc93eb852d7ccc7b6556 (diff) |
only support uniqueMember containing DN values
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@688 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/group.c')
-rw-r--r-- | nslcd/group.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/nslcd/group.c b/nslcd/group.c index ac23a77..d8a8d5d 100644 --- a/nslcd/group.c +++ b/nslcd/group.c @@ -202,20 +202,9 @@ static SET *getmembers(MYLDAP_ENTRY *entry,MYLDAP_SESSION *session) if (values!=NULL) for (i=0;values[i]!=NULL;i++) { - /* check the value */ - if (values[i][0]=='\0') - { /* silently ignore empty values */ } - else if (strchr(values[i],'=')==NULL) - { - /* just add the value, it doesn't look like a DN */ - set_add(set,values[i]); - } - else - { - /* transform the DN into a uid */ - if (dn2uid(session,values[i],buf,sizeof(buf))!=NULL) - set_add(set,buf); - } + /* transform the DN into a uid */ + if (dn2uid(session,values[i],buf,sizeof(buf))!=NULL) + set_add(set,buf); } /* terminate the list with an empty string */ return set; |