mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-02-05 13:40:08 +08:00
Added slap_null_cb
This commit is contained in:
parent
90d6902ad5
commit
42d8c0a39d
@ -919,6 +919,7 @@ LDAP_SLAPD_F (void) slap_send_ldap_intermediate LDAP_P(( Operation *op, SlapRepl
|
||||
LDAP_SLAPD_F (void) slap_send_search_result LDAP_P(( Operation *op, SlapReply *rs ));
|
||||
LDAP_SLAPD_F (int) slap_send_search_reference LDAP_P(( Operation *op, SlapReply *rs ));
|
||||
LDAP_SLAPD_F (int) slap_send_search_entry LDAP_P(( Operation *op, SlapReply *rs ));
|
||||
LDAP_SLAPD_F (int) slap_null_cb LDAP_P(( Operation *op, SlapReply *rs ));
|
||||
|
||||
LDAP_SLAPD_V( const struct berval ) slap_pre_read_bv;
|
||||
LDAP_SLAPD_V( const struct berval ) slap_post_read_bv;
|
||||
|
@ -41,6 +41,11 @@
|
||||
#include "slapi.h"
|
||||
#endif
|
||||
|
||||
int slap_null_cb( Operation *op, SlapReply *rs )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static char *v2ref( BerVarray ref, const char *text )
|
||||
{
|
||||
size_t len = 0, i = 0;
|
||||
|
@ -323,7 +323,7 @@ typedef struct lookup_info {
|
||||
sasl_server_params_t *sparams;
|
||||
} lookup_info;
|
||||
|
||||
static slap_response sasl_ap_lookup, sasl_ap_store, sasl_cb_checkpass;
|
||||
static slap_response sasl_ap_lookup, sasl_cb_checkpass;
|
||||
|
||||
static int
|
||||
sasl_ap_lookup( Operation *op, SlapReply *rs )
|
||||
@ -473,12 +473,6 @@ slap_auxprop_lookup(
|
||||
}
|
||||
|
||||
#if SASL_VERSION_FULL >= 0x020110
|
||||
static int
|
||||
sasl_ap_store( Operation *op, SlapReply *rs )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
slap_auxprop_store(
|
||||
void *glob_context,
|
||||
@ -493,7 +487,7 @@ slap_auxprop_store(
|
||||
Connection *conn = NULL;
|
||||
const struct propval *pr;
|
||||
Modifications *modlist = NULL, **modtail = &modlist, *mod;
|
||||
slap_callback cb = { sasl_ap_store, NULL };
|
||||
slap_callback cb = { slap_null_cb, NULL };
|
||||
char textbuf[SLAP_TEXT_BUFLEN];
|
||||
const char *text;
|
||||
size_t textlen = sizeof(textbuf);
|
||||
|
Loading…
Reference in New Issue
Block a user