From: Luke Howard Date: Tue, 21 Jan 2003 08:35:48 +0000 (+0000) Subject: Set SLAPI_BIND_CREDENTIALS for bind preoperation plugin X-Git-Tag: NO_SLAP_OP_BLOCKS~572 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=30d946959ed8d046af2a9817a3fdc24a4e42d233;p=openldap Set SLAPI_BIND_CREDENTIALS for bind preoperation plugin --- diff --git a/servers/slapd/bind.c b/servers/slapd/bind.c index fca299d6f8..d7b1cf36ec 100644 --- a/servers/slapd/bind.c +++ b/servers/slapd/bind.c @@ -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 );