]> git.sur5r.net Git - openldap/commitdiff
Set SLAPI_BIND_CREDENTIALS for bind preoperation plugin
authorLuke Howard <lukeh@openldap.org>
Tue, 21 Jan 2003 08:35:48 +0000 (08:35 +0000)
committerLuke Howard <lukeh@openldap.org>
Tue, 21 Jan 2003 08:35:48 +0000 (08:35 +0000)
servers/slapd/bind.c

index fca299d6f86860ce145368515886c5db587cbdf5..d7b1cf36ec52eb90781b3bfcdbee17c0294106eb 100644 (file)
@@ -102,8 +102,8 @@ do_bind(
         *      }
         *
         *      SaslCredentials ::= SEQUENCE {
-     *         mechanism           LDAPString,
-     *         credentials         OCTET STRING OPTIONAL
+        *              mechanism           LDAPString,
+        *              credentials         OCTET STRING OPTIONAL
         *      }
         */
 
@@ -542,6 +542,7 @@ do_bind(
        slapi_x_operation_set_pb( pb, op );
        slapi_pblock_set( pb, SLAPI_BIND_TARGET, (void *)dn.bv_val );
        slapi_pblock_set( pb, SLAPI_BIND_METHOD, (void *)method );
+       slapi_pblock_set( pb, SLAPI_BIND_CREDENTIALS, (void *)&cred );
        slapi_pblock_set( pb, SLAPI_MANAGEDSAIT, (void *)(1) );
 
        rc = doPluginFNs( be, SLAPI_PLUGIN_PRE_BIND_FN, pb );