/* group.c - ldap backend acl group routine */
/* $OpenLDAP$ */
/*
- * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
+ * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
if (group_oc_name.bv_val)
group_oc_name.bv_len = strlen(group_oc_name.bv_val);
- if (target != NULL && target->e_nname.bv_len == gr_ndn->bv_len &&
- strcmp(target->e_nname.bv_val, gr_ndn->bv_val) == 0) {
+ if (target != NULL && dn_match( &target->e_nname, gr_ndn ) ) {
/* we already have a copy of the entry */
/* attribute and objectclass mapping has already been done */
/*
* Now we can check for the group objectClass value
*/
- if( !is_entry_objectclass( target, group_oc ) ) {
+ if( !is_entry_objectclass( target, group_oc, 0 ) ) {
return(1);
}