1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-02 00:22:11 +03:00

r13786: [merge] Add registration functions for LDB modules

Applications that use LDB modules will now have to run ldb_global_init()
before they can use LDB.

The next step will be adding support for loading LDB modules from .so
files. This will also allow us to use one LDB without difference between the
standalone and the Samba-specific build
(This used to be commit 52a2356505)
This commit is contained in:
Jelmer Vernooij
2006-03-02 16:32:53 +00:00
committed by Gerald (Jerry) Carter
parent 0efc729318
commit 26af14c39b
44 changed files with 327 additions and 397 deletions

View File

@ -26,6 +26,7 @@
#include "lib/appweb/ejs/ejsInternal.h"
#include "scripting/ejs/smbcalls.h"
#include "auth/gensec/gensec.h"
#include "ldb/include/ldb.h"
static EjsId eid;
@ -37,7 +38,7 @@ void ejs_exception(const char *reason)
exit(127);
}
int main(int argc, const char **argv)
int main(int argc, const char **argv)
{
EjsHandle handle = 0;
MprVar result;
@ -50,6 +51,9 @@ void ejs_exception(const char *reason)
int exit_status, i;
fault_setup(argv[0]);
ldb_global_init();
gensec_init();
mprSetCtx(mem_ctx);