]> git.sur5r.net Git - openldap/commitdiff
bvmatch
authorKurt Zeilenga <kurt@openldap.org>
Fri, 6 Sep 2002 03:35:49 +0000 (03:35 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 6 Sep 2002 03:35:49 +0000 (03:35 +0000)
servers/slapd/acl.c
servers/slapd/bind.c
servers/slapd/extended.c

index fdb4cd1b6375ef892079f9eda457a4c10066b701..3db4fd14e7a8ef160146691494275374ffdffc9e 100644 (file)
@@ -605,17 +605,17 @@ acl_mask(
                         * user is bound as somebody in the same namespace as
                         * the entry, OR the given dn matches the dn pattern
                         */
-                       if ( ber_bvcmp( &b->a_dn_pat, &aci_bv_anonymous ) == 0 ) {
+                       if ( bvmatch( &b->a_dn_pat, &aci_bv_anonymous ) ) {
                                if ( op->o_ndn.bv_len != 0 ) {
                                        continue;
                                }
 
-                       } else if ( ber_bvcmp( &b->a_dn_pat, &aci_bv_users ) == 0 ) {
+                       } else if ( bvmatch( &b->a_dn_pat, &aci_bv_users ) ) {
                                if ( op->o_ndn.bv_len == 0 ) {
                                        continue;
                                }
 
-                       } else if ( ber_bvcmp( &b->a_dn_pat, &aci_bv_self ) == 0 ) {
+                       } else if ( bvmatch( &b->a_dn_pat, &aci_bv_self ) ) {
                                if ( op->o_ndn.bv_len == 0 ) {
                                        continue;
                                }
index e27873b8d1ac89c055b84a751c2f0e4fe568c987..646b72f657ceec50b444242951c51e4818898a6e 100644 (file)
@@ -277,7 +277,7 @@ do_bind(
 
                ldap_pvt_thread_mutex_lock( &conn->c_mutex );
                if ( conn->c_sasl_bind_in_progress ) {
-                       if((ber_bvcmp(&conn->c_sasl_bind_mech, &mech) != 0)) {
+                       if( !bvmatch( &conn->c_sasl_bind_mech, &mech ) ) {
                                /* mechanism changed between bind steps */
                                slap_sasl_reset(conn);
                        }
index 2d315f36ce1a5b12dbb01bc6952ecf4afb1bed53..0da22bdfbbfdc46db73a3fb9282832524ba66a81 100644 (file)
@@ -288,7 +288,7 @@ find_extop( struct extop_list *list, struct berval *oid )
        struct extop_list *ext;
 
        for (ext = list; ext; ext = ext->next) {
-               if (ber_bvcmp(&ext->oid, oid) == 0)
+               if (bvmatch(&ext->oid, oid))
                        return(ext);
        }
        return(NULL);