]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/saslauthz.c
cleanup bind
[openldap] / servers / slapd / saslauthz.c
index 3dc0158afc8e950f7ecd1ed5f8deca70bf8de592..775979bf1dc0914d952d2e16b375d8cb069de927 100644 (file)
@@ -474,6 +474,7 @@ int slap_sasl_match(Connection *conn, struct berval *rule, struct berval *assert
        op.o_callback = &cb;
        op.o_time = slap_get_time();
        op.o_do_not_cache = 1;
+       op.o_is_auth_check = 1;
        op.o_threadctx = conn->c_sasl_bindop->o_threadctx;
 
        (*be->be_search)( be, conn, &op, /*base=*/NULL, &searchbase,
@@ -634,6 +635,7 @@ void slap_sasl2dn( Connection *conn,
        op.o_callback = &cb;
        op.o_time = slap_get_time();
        op.o_do_not_cache = 1;
+       op.o_is_auth_check = 1;
        op.o_threadctx = conn->c_sasl_bindop ? conn->c_sasl_bindop->o_threadctx:
                ldap_pvt_thread_pool_context( &connection_pool );