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:
committed by
Gerald (Jerry) Carter
parent
0efc729318
commit
26af14c39b
@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user