diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-09-08 17:19:07 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-09-08 17:19:07 +0200 |
commit | 4b539318232ffc077eaa882963b9788d686610cb (patch) | |
tree | ee200bf041a84ff883270309064e6284d6f421be /nslcd/util.c | |
parent | 30423d96ecd243663906a3a1c13f1f0e90ac6330 (diff) |
move filters definitions to the database modules themselves (and already define base and scope but don't use them yet)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@383 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/util.c')
-rw-r--r-- | nslcd/util.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nslcd/util.c b/nslcd/util.c index 368d78c..96fa256 100644 --- a/nslcd/util.c +++ b/nslcd/util.c @@ -282,6 +282,7 @@ dn2uid_cache_get (const char *dn, char **uid, char **buffer, size_t * buflen) return NSS_STATUS_SUCCESS; } +/* TODO: move to group.c */ enum nss_status _nss_ldap_dn2uid(const char *dn,char **uid,char **buffer, size_t * buflen,int *pIsNestedGroup, LDAPMessage **pRes) @@ -308,7 +309,8 @@ enum nss_status _nss_ldap_dn2uid(const char *dn,char **uid,char **buffer, LDAPMessage *e = _nss_ldap_first_entry (res); if (e != NULL) { - if (has_objectclass(e,attmap_group_objectClass)) + /* FIXME: somehow replace this with the dynamic stuff in group.c */ + if (has_objectclass(e,"posixGroup")) { *pIsNestedGroup = 1; *pRes = res; |