From 30d946959ed8d046af2a9817a3fdc24a4e42d233 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Tue, 21 Jan 2003 08:35:48 +0000 Subject: [PATCH] Set SLAPI_BIND_CREDENTIALS for bind preoperation plugin --- servers/slapd/bind.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 ); -- 2.39.5