瀏覽代碼

Bug 193297 - Call pre-bind plug-ins for all SASL bind steps

A pre-bind plug-in is currently only called after the final step
has been completed in a multi-step SASL bind operation.  We need
to call the pre-bind functions for each step of the bind.
Nathan Kinder 15 年之前
父節點
當前提交
186137e184
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ldap/servers/slapd/saslbind.c

+ 4 - 0
ldap/servers/slapd/saslbind.c

@@ -1043,6 +1043,10 @@ void ids_sasl_check_bind(Slapi_PBlock *pb)
     case SASL_CONTINUE:         /* another step needed */
         pb->pb_conn->c_flags |= CONN_FLAG_SASL_CONTINUE;
 
+        if (plugin_call_plugins( pb, SLAPI_PLUGIN_PRE_BIND_FN ) != 0){
+            break;
+        }
+
         /* attach the sasl data */
         bvr.bv_val = (char*)sdata;
         bvr.bv_len = slen;