From 4b539318232ffc077eaa882963b9788d686610cb Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 8 Sep 2007 15:19:07 +0000 Subject: 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 --- nslcd/util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nslcd/util.c') 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; -- cgit v1.2.3