[389-commits] ldap/servers

Nathan Kinder nkinder at fedoraproject.org
Fri Jan 7 22:51:38 UTC 2011


 ldap/servers/slapd/saslbind.c |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 186137e184bd12c4b2b68750cf50f9f4e8c149b2
Author: Nathan Kinder <nkinder at redhat.com>
Date:   Fri Jan 7 14:38:09 2011 -0800

    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.

diff --git a/ldap/servers/slapd/saslbind.c b/ldap/servers/slapd/saslbind.c
index 401a82f..5204b56 100644
--- a/ldap/servers/slapd/saslbind.c
+++ b/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;




More information about the 389-commits mailing list