summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-10 18:41:38 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:49:13 +0100
commit7f0e8252e76b506c8164c14819ca491752bb2526 (patch)
treeab37e6f1f673e42e46d1413b65e6ad2d56dcfc82 /source4/auth
parenteede6b87e1dac018035bb68a675f80d6b25c20e3 (diff)
downloadsamba-7f0e8252e76b506c8164c14819ca491752bb2526.tar.gz
samba-7f0e8252e76b506c8164c14819ca491752bb2526.tar.bz2
samba-7f0e8252e76b506c8164c14819ca491752bb2526.zip
r26379: Remove more global_loadparm instances.
(This used to be commit b6f66eb5e00ed01029fa81f408d6154ab01e74e7)
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/auth.c10
-rw-r--r--source4/auth/gensec/gensec_krb5.c2
-rw-r--r--source4/auth/ntlmssp/ntlmssp.c2
3 files changed, 4 insertions, 10 deletions
diff --git a/source4/auth/auth.c b/source4/auth/auth.c
index 0068c3bde7..918890b3f6 100644
--- a/source4/auth/auth.c
+++ b/source4/auth/auth.c
@@ -512,27 +512,21 @@ const struct auth_critical_sizes *auth_interface_version(void)
return &critical_sizes;
}
-NTSTATUS auth_init(struct loadparm_context *lp_ctx)
+NTSTATUS auth_init(void)
{
static bool initialized = false;
init_module_fn static_init[] = STATIC_auth_MODULES;
- init_module_fn *shared_init;
if (initialized) return NT_STATUS_OK;
initialized = true;
- shared_init = load_samba_modules(NULL, lp_ctx, "auth");
-
run_init_functions(static_init);
- run_init_functions(shared_init);
-
- talloc_free(shared_init);
return NT_STATUS_OK;
}
NTSTATUS server_service_auth_init(void)
{
- return auth_init(global_loadparm);
+ return auth_init();
}
diff --git a/source4/auth/gensec/gensec_krb5.c b/source4/auth/gensec/gensec_krb5.c
index 282be5a001..ca289f24d3 100644
--- a/source4/auth/gensec/gensec_krb5.c
+++ b/source4/auth/gensec/gensec_krb5.c
@@ -779,7 +779,7 @@ NTSTATUS gensec_krb5_init(void)
{
NTSTATUS ret;
- auth_init(global_loadparm);
+ auth_init();
ret = gensec_register(&gensec_krb5_security_ops);
if (!NT_STATUS_IS_OK(ret)) {
diff --git a/source4/auth/ntlmssp/ntlmssp.c b/source4/auth/ntlmssp/ntlmssp.c
index e30d1986ee..efb1e63047 100644
--- a/source4/auth/ntlmssp/ntlmssp.c
+++ b/source4/auth/ntlmssp/ntlmssp.c
@@ -428,7 +428,7 @@ NTSTATUS gensec_ntlmssp_init(void)
{
NTSTATUS ret;
- auth_init(global_loadparm);
+ auth_init();
ret = gensec_register(&gensec_ntlmssp_security_ops);
if (!NT_STATUS_IS_OK(ret)) {