LDAP_LIBDIR= ../../libraries
SLAP_DIR=
-SLAPD_STATIC_DEPENDS=@SLAPD_SLAPI_DEPEND@ @SLAPD_NO_STATIC@ libbackends.a
+SLAPD_STATIC_DEPENDS=@SLAPD_NO_STATIC@ libbackends.a
SLAPD_STATIC_BACKENDS=@SLAPD_STATIC_BACKENDS@
SLAPD_DYNAMIC_BACKENDS=@SLAPD_DYNAMIC_BACKENDS@
+SLAPD_SLAPI_DEPEND=@SLAPD_SLAPI_DEPEND@
XDEFS = $(MODULES_CPPFLAGS)
XLDFLAGS = $(MODULES_LDFLAGS)
dlltool --dllname slapd.exe --input-def slapd.def \
--base-file slapd.base --output-exp $@
-.slapi: FORCE
- $(AR) ruv slapi/libtmpslapd.a $(OBJS)
- (cd slapi; $(MAKE) $(MFLAGS) all)
-
libslapi.a: .slapi
cp slapi/.libs/libslapi.a .
+.slapi: slapd
+ $(AR) ruv slapi/libtmpslapd.a $(OBJS)
+ (cd slapi; $(MAKE) $(MFLAGS) all)
+
slapd: $(SLAPD_DEPENDS)
$(LTLINK) -o $@ $(SLAPD_OBJECTS) $(LIBS) \
$(WRAP_LIBS)
sslapd: version.o
$(LTLINK) -static -o $@ $(OBJS) version.o $(LIBS) $(WRAP_LIBS)
-tools $(SLAPD_DYNAMIC_BACKENDS): slapd
+tools $(SLAPD_DYNAMIC_BACKENDS) $(SLAPD_SLAPI_DEPEND): slapd
cd $@; $(MAKE) $(MFLAGS) all
@touch $@
#include "slap.h"
#include "slapi-plugin.h"
+#include "slapi_pblock.h"
#include "back-monitor.h"
#if defined(LDAP_SLAPI)
#define SLAPI_IBM_EVENT_SENTREG (FIRST_PARAM - 45)
#define SLAPI_IBM_CONN_DN_ORIG (FIRST_PARAM - 46)
#define SLAPI_PLUGIN_DB_DELETE_PROGRESS_FN (FIRST_PARAM - 47)
-#endif
+#endif /* _ibm_pblock_params_H */
/* Single threads access to routine */
ldap_pvt_thread_mutex_t slapi_printmessage_mutex;
-const char *slapi_log_file = NULL;
+char *slapi_log_file = NULL;
int slapi_log_level = SLAPI_LOG_PLUGIN;
int
#endif /* NO_PBLOCK_CLASS */
#include <plugin.h>
#include <slapi_ops.h>
+#if 0 /* unused (yet?) */
#include <slapi_cl.h>
+#endif /* 0 */
/*
* types of plugins
extern int slap_debug;
int
-dn_check(char *, int *);
-
+dn_check(char *, int *);
typedef struct strlist {
char *string;
\r
int bvptr2obj( struct berval **bvptr, struct berval **bvobj );\r
\r
-int\r
+static void\r
internal_result_v3(\r
- Connection *conn, \r
- Operation *op, \r
- int err,\r
- char *matched, \r
- char *text, \r
- char **referrals )\r
+ Connection *conn, \r
+ Operation *op, \r
+ ber_int_t err,\r
+ const char *matched, \r
+ const char *text, \r
+ BerVarray referrals,\r
+ LDAPControl **ctrls )\r
{\r
- return LDAP_SUCCESS;\r
+ return;\r
}\r
\r
-int\r
+static int\r
internal_search_entry(\r
- Backend *be, \r
- Connection *conn, \r
- Operation *op, \r
- Entry *e, \r
- char **attrs, \r
- int attrsonly, \r
- char **denied_attrs ) \r
+ Backend *be, \r
+ Connection *conn, \r
+ Operation *op, \r
+ Entry *e, \r
+ AttributeName *attrs, \r
+ int attrsonly, \r
+ LDAPControl **ctrls ) \r
{\r
char *ent2str = NULL;\r
int nentries = 0, len = 0, i = 0;\r
return LDAP_SUCCESS;\r
}\r
\r
-int\r
+static void\r
internal_search_result(\r
- Connection *conn, \r
- Operation *op,\r
- int err, \r
- char *matched, \r
- char *text, \r
- int nentries ) \r
+ Connection *conn, \r
+ Operation *op,\r
+ ber_int_t err, \r
+ const char *matched, \r
+ const char *text, \r
+ BerVarray refs,\r
+ LDAPControl **ctrls,\r
+ int nentries ) \r
{\r
slapi_pblock_set( (Slapi_PBlock *)op->o_pb,\r
SLAPI_NENTRIES, (void *)nentries );\r
\r
- return LDAP_SUCCESS;\r
+ return;\r
}\r
\r
-int\r
+static void\r
internal_result_ext(\r
- Connection *conn, \r
- Operation *op, \r
- int errnum, \r
- char *respname, \r
- struct berval *response )\r
+ Connection *conn, \r
+ Operation *op, \r
+ ber_int_t errnum, \r
+ const char *matched,\r
+ const char *text,\r
+ BerVarray refs,\r
+ const char *rspoid,\r
+ struct berval *rspdata,\r
+ LDAPControl **ctrls )\r
{\r
- return LDAP_SUCCESS;\r
+ return;\r
}\r
\r
-int\r
+static int\r
internal_search_reference(\r
- Connection *conn, \r
- Operation *op, \r
- char **ref ) \r
+ Backend *be,\r
+ Connection *conn, \r
+ Operation *op, \r
+ Entry *e,\r
+ BerVarray refs,\r
+ LDAPControl **ctrls,\r
+ BerVarray *v2refs )\r
{\r
return LDAP_SUCCESS;\r
}\r
\r
backend_connection_init( c );\r
\r
- pConn->c_send_ldap_result =\r
- (SEND_LDAP_RESULT) internal_result_v3;\r
- pConn->c_send_search_entry =\r
- (SEND_SEARCH_ENTRY) internal_search_entry;\r
- pConn->c_send_search_result =\r
- (SEND_SEARCH_RESULT) internal_search_result;\r
- pConn->c_send_ldap_extended =\r
- (SEND_LDAP_EXTENDED) internal_result_ext;\r
- pConn->c_send_search_reference =\r
- (SEND_SEARCH_REFERENCE) internal_search_reference;\r
+ pConn->c_send_ldap_result = internal_result_v3;\r
+ pConn->c_send_search_entry = internal_search_entry;\r
+ pConn->c_send_search_result = internal_search_result;\r
+ pConn->c_send_ldap_extended = internal_result_ext;\r
+ pConn->c_send_search_reference = internal_search_reference;\r
\r
return pConn;\r
}\r
#define SLAPI_OPS_H
Slapi_PBlock *slapi_search_internal( char *base, int scope, char *filter,
- LDAPControl **controls, char **attrs, int attrsonly );
-Slapi_PBlock *slapi_search_internal_bind( char *bindDN, char *base, int scope, char *filter,
- LDAPControl **controls, char **attrs, int attrsonly ); /* d58508 */
+ LDAPControl **controls, char **attrs, int attrsonly );
+Slapi_PBlock *slapi_search_internal_bind( char *bindDN, char *base,
+ int scope, char *filter, LDAPControl **controls,
+ char **attrs, int attrsonly ); /* d58508 */
Slapi_PBlock *slapi_modify_internal( char *dn, LDAPMod **mods,
LDAPControl **controls, int log_change );
-Slapi_PBlock *slapi_add_entry_internal( Slapi_Entry * e, LDAPControl **controls, int log_change );
-Slapi_PBlock *slapi_add_internal( char * dn, LDAPMod **attrs, LDAPControl **controls, int log_changes );
-Slapi_PBlock *slapi_add_entry_internal( Slapi_Entry * e, LDAPControl **controls, int log_change );
-Slapi_PBlock *slapi_delete_internal( char * dn, LDAPControl **controls, int log_change );
-Slapi_PBlock *slapi_modrdn_internal( char * olddn, char * newrdn, int deloldrdn, LDAPControl **controls, int log_change);
+Slapi_PBlock *slapi_add_entry_internal( Slapi_Entry * e,
+ LDAPControl **controls, int log_change );
+Slapi_PBlock *slapi_add_internal( char * dn, LDAPMod **attrs,
+ LDAPControl **controls, int log_changes );
+Slapi_PBlock *slapi_add_entry_internal( Slapi_Entry * e,
+ LDAPControl **controls, int log_change );
+Slapi_PBlock *slapi_delete_internal( char * dn, LDAPControl **controls,
+ int log_change );
+Slapi_PBlock *slapi_modrdn_internal( char * olddn, char * newrdn,
+ int deloldrdn, LDAPControl **controls, int log_change);
/*
-Slapi_PBlock *slapi_modrdn_internal( char * olddn, char * newrdn, char *newParent, int deloldrdn, LDAPControl **controls, int log_change);
+Slapi_PBlock *slapi_modrdn_internal( char * olddn, char * newrdn,
+ char *newParent, int deloldrdn, LDAPControl **controls,
+ int log_change);
*/
char **slapi_get_supported_extended_ops(void);
int duplicateBVMod( LDAPMod *pMod, LDAPMod **ppNewMod );
#define TCPIPPATH "SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters"
typedef struct _slapi_control {
- int s_ctrl_num;
- char **s_ctrl_oids;
- unsigned long *s_ctrl_ops;
+ int s_ctrl_num;
+ char **s_ctrl_oids;
+ unsigned long *s_ctrl_ops;
} Slapi_Control;
typedef struct _ExtendedOp {
- struct berval ext_oid;
- SLAPI_FUNC ext_func;
- Backend *ext_be;
- struct _ExtendedOp *ext_next;
+ struct berval ext_oid;
+ SLAPI_FUNC ext_func;
+ Backend *ext_be;
+ struct _ExtendedOp *ext_next;
} ExtendedOp;
int slapi_log_error( int severity, char *subsystem, char *fmt, ... );
extern ldap_pvt_thread_mutex_t slapi_hn_mutex;
extern ldap_pvt_thread_mutex_t slapi_time_mutex;
extern ldap_pvt_thread_mutex_t slapi_printmessage_mutex;
-extern const char *slapi_log_file;
+extern char *slapi_log_file;
extern int slapi_log_level;
#endif /* _SLAPI_UTILS_H */