diff options
Diffstat (limited to 'source4/ntptr')
-rw-r--r-- | source4/ntptr/config.mk | 1 | ||||
-rw-r--r-- | source4/ntptr/ntptr_base.c | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/source4/ntptr/config.mk b/source4/ntptr/config.mk index cbce1d66bd..37150211fc 100644 --- a/source4/ntptr/config.mk +++ b/source4/ntptr/config.mk @@ -15,6 +15,7 @@ REQUIRED_SUBSYSTEMS = \ ################################################ # Start SUBSYSTEM NTPTR [SUBSYSTEM::NTPTR] +INIT_FUNCTION = ntptr_init INIT_OBJ_FILES = \ ntptr_base.o ADD_OBJ_FILES = \ diff --git a/source4/ntptr/ntptr_base.c b/source4/ntptr/ntptr_base.c index f12a58cb4e..9f07ae597b 100644 --- a/source4/ntptr/ntptr_base.c +++ b/source4/ntptr/ntptr_base.c @@ -69,6 +69,19 @@ NTSTATUS ntptr_register(const void *_ops) return NT_STATUS_OK; } +NTSTATUS ntptr_init(void) +{ + init_module_fn static_init[] = STATIC_NTPTR_MODULES; + init_module_fn *shared_init = load_samba_modules(NULL, "ntptr"); + + run_init_functions(static_init); + run_init_functions(shared_init); + + talloc_free(shared_init); + + return NT_STATUS_OK; +} + /* return the operations structure for a named backend |