mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
73276e84ae
Includes support for update referral for each replicated backend. Reworked replication test to use update referral. Includes major rewrite of response encoding codes (result.c). Includes reworked alias support and eliminates old suffix alias codes (can be emulated using named alias). Includes (untested) support for the Manage DSA IT control. Works in LDAPv2 world. Still testing in LDAPv3 world. Added default referral (test009) test.
103 lines
1.3 KiB
C
103 lines
1.3 KiB
C
/*
|
|
* Mimic unused interfaces of slapd...
|
|
* needed for linking.
|
|
*/
|
|
#include "portable.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
#include "../slap.h"
|
|
|
|
#ifdef WIN32
|
|
time_t starttime;
|
|
#endif
|
|
|
|
/* bogus ../results.c */
|
|
int str2result(
|
|
char* s,
|
|
int *code,
|
|
char **matched,
|
|
char **info )
|
|
{
|
|
assert(0);
|
|
return 0;
|
|
}
|
|
|
|
void
|
|
send_ldap_disconnect(
|
|
Connection *conn,
|
|
Operation *op,
|
|
ber_int_t err,
|
|
char *text
|
|
)
|
|
{
|
|
assert(0);
|
|
}
|
|
|
|
void
|
|
send_ldap_result(
|
|
Connection *conn,
|
|
Operation *op,
|
|
int err,
|
|
char *matched,
|
|
char *text,
|
|
struct berval **refs,
|
|
LDAPControl **ctrls
|
|
)
|
|
{
|
|
assert(0);
|
|
}
|
|
|
|
void
|
|
send_search_result(
|
|
Connection *conn,
|
|
Operation *op,
|
|
int err,
|
|
char *matched,
|
|
char *text,
|
|
struct berval **refs,
|
|
LDAPControl **ctrls,
|
|
int nentries
|
|
)
|
|
{
|
|
assert(0);
|
|
}
|
|
|
|
int
|
|
send_search_entry(
|
|
Backend *be,
|
|
Connection *conn,
|
|
Operation *op,
|
|
Entry *e,
|
|
char **attrs,
|
|
int attrsonly,
|
|
int opattrs,
|
|
LDAPControl **ctrls
|
|
)
|
|
{
|
|
assert(0);
|
|
return -1;
|
|
}
|
|
|
|
int send_search_reference(
|
|
Backend *be,
|
|
Connection *conn,
|
|
Operation *op,
|
|
Entry *e,
|
|
struct berval **refs,
|
|
int scope,
|
|
LDAPControl **ctrls,
|
|
struct berval ***v2refs
|
|
)
|
|
{
|
|
assert(0);
|
|
return -1;
|
|
}
|
|
|
|
struct berval **get_entry_referrals(
|
|
Backend *be, Connection *conn, Operation *op, Entry *e )
|
|
{
|
|
assert(0);
|
|
return NULL;
|
|
}
|