]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/group.c
Update to latest devel codes
[openldap] / servers / slapd / back-ldbm / group.c
index d5b8aad4397db60140d1b8c9af01d835054eced1..512f8e6b80c5a4f698b6ae0be0e595bdc5647fef 100644 (file)
@@ -102,7 +102,7 @@ ldbm_back_group(
                goto return_results;
        }
 
-       if( is_entry_objectclass( e, group_oc ) ) {
+       if( !is_entry_objectclass( e, group_oc ) ) {
                Debug( LDAP_DEBUG_ACL,
                        "<= ldbm_back_group: failed to find %s in objectClass\n", 
                                group_oc_name, 0, 0 ); 
@@ -123,7 +123,7 @@ ldbm_back_group(
        bv.bv_val = (char *) op_ndn;
        bv.bv_len = strlen( op_ndn );         
 
-       if( value_find( group_at, attr->a_vals, &bv ) == 0 ) {
+       if( value_find( group_at, attr->a_vals, &bv ) != LDAP_SUCCESS ) {
                Debug( LDAP_DEBUG_ACL,
                        "<= ldbm_back_group: \"%s\" not in \"%s\": %s\n", 
                        op_ndn, gr_ndn, group_at_name );