summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-10-07 17:20:33 +1100
committerAndrew Bartlett <abartlet@samba.org>2011-10-11 13:41:36 +1100
commit561d834123a2a8a96954f7cca556f8838ab38b72 (patch)
treea473eff62f409089a9bacdb5fe5742885c708223
parent1255383140a9b3fbd957c1f7ce47e89c17cc4eda (diff)
downloadsamba-561d834123a2a8a96954f7cca556f8838ab38b72.tar.gz
auth: move credentials layer to the top level
This will allow gensec_start.c to move to the top level. This does not change what code uses the cli_credentials code, but allows the gensec code to be more broadly. Andrew Bartlett
-rw-r--r--auth/credentials/credentials.c (renamed from source4/auth/credentials/credentials.c)0
-rw-r--r--auth/credentials/credentials.h (renamed from source4/auth/credentials/credentials.h)0
-rw-r--r--auth/credentials/credentials_krb5.c (renamed from source4/auth/credentials/credentials_krb5.c)0
-rw-r--r--auth/credentials/credentials_krb5.h (renamed from source4/auth/credentials/credentials_krb5.h)0
-rw-r--r--auth/credentials/credentials_ntlm.c (renamed from source4/auth/credentials/credentials_ntlm.c)0
-rw-r--r--auth/credentials/credentials_secrets.c (renamed from source4/auth/credentials/credentials_secrets.c)0
-rw-r--r--auth/credentials/pycredentials.c (renamed from source4/auth/credentials/pycredentials.c)0
-rw-r--r--auth/credentials/pycredentials.h (renamed from source4/auth/credentials/pycredentials.h)0
-rw-r--r--auth/credentials/samba-credentials.pc.in (renamed from source4/auth/credentials/samba-credentials.pc.in)0
-rwxr-xr-xauth/credentials/tests/bind.py (renamed from source4/auth/credentials/tests/bind.py)0
-rw-r--r--auth/credentials/tests/simple.c (renamed from source4/auth/credentials/tests/simple.c)0
-rw-r--r--auth/credentials/wscript_build (renamed from source4/auth/credentials/wscript_build)0
-rw-r--r--auth/wscript_build1
-rw-r--r--source3/auth/auth_samba4.c2
-rw-r--r--source4/auth/gensec/gensec_start.c4
-rw-r--r--source4/auth/wscript_build1
-rwxr-xr-xsource4/selftest/tests.py2
-rw-r--r--source4/torture/local/wscript_build2
18 files changed, 8 insertions, 4 deletions
diff --git a/source4/auth/credentials/credentials.c b/auth/credentials/credentials.c
index 83e90344bfc..83e90344bfc 100644
--- a/source4/auth/credentials/credentials.c
+++ b/auth/credentials/credentials.c
diff --git a/source4/auth/credentials/credentials.h b/auth/credentials/credentials.h
index f8fa2f864b9..f8fa2f864b9 100644
--- a/source4/auth/credentials/credentials.h
+++ b/auth/credentials/credentials.h
diff --git a/source4/auth/credentials/credentials_krb5.c b/auth/credentials/credentials_krb5.c
index 7130e4164d1..7130e4164d1 100644
--- a/source4/auth/credentials/credentials_krb5.c
+++ b/auth/credentials/credentials_krb5.c
diff --git a/source4/auth/credentials/credentials_krb5.h b/auth/credentials/credentials_krb5.h
index 36bf03d5ebd..36bf03d5ebd 100644
--- a/source4/auth/credentials/credentials_krb5.h
+++ b/auth/credentials/credentials_krb5.h
diff --git a/source4/auth/credentials/credentials_ntlm.c b/auth/credentials/credentials_ntlm.c
index 7f4af4f08cd..7f4af4f08cd 100644
--- a/source4/auth/credentials/credentials_ntlm.c
+++ b/auth/credentials/credentials_ntlm.c
diff --git a/source4/auth/credentials/credentials_secrets.c b/auth/credentials/credentials_secrets.c
index d86032a5648..d86032a5648 100644
--- a/source4/auth/credentials/credentials_secrets.c
+++ b/auth/credentials/credentials_secrets.c
diff --git a/source4/auth/credentials/pycredentials.c b/auth/credentials/pycredentials.c
index 5d21721490d..5d21721490d 100644
--- a/source4/auth/credentials/pycredentials.c
+++ b/auth/credentials/pycredentials.c
diff --git a/source4/auth/credentials/pycredentials.h b/auth/credentials/pycredentials.h
index 3a110fb09a5..3a110fb09a5 100644
--- a/source4/auth/credentials/pycredentials.h
+++ b/auth/credentials/pycredentials.h
diff --git a/source4/auth/credentials/samba-credentials.pc.in b/auth/credentials/samba-credentials.pc.in
index 9a0db509ee9..9a0db509ee9 100644
--- a/source4/auth/credentials/samba-credentials.pc.in
+++ b/auth/credentials/samba-credentials.pc.in
diff --git a/source4/auth/credentials/tests/bind.py b/auth/credentials/tests/bind.py
index 1529a475c71..1529a475c71 100755
--- a/source4/auth/credentials/tests/bind.py
+++ b/auth/credentials/tests/bind.py
diff --git a/source4/auth/credentials/tests/simple.c b/auth/credentials/tests/simple.c
index 6c722750d67..6c722750d67 100644
--- a/source4/auth/credentials/tests/simple.c
+++ b/auth/credentials/tests/simple.c
diff --git a/source4/auth/credentials/wscript_build b/auth/credentials/wscript_build
index 2c46b43b214..2c46b43b214 100644
--- a/source4/auth/credentials/wscript_build
+++ b/auth/credentials/wscript_build
diff --git a/auth/wscript_build b/auth/wscript_build
index 976e8ab0901..540317a4013 100644
--- a/auth/wscript_build
+++ b/auth/wscript_build
@@ -8,3 +8,4 @@ bld.SAMBA_LIBRARY('auth_sam_reply',
)
bld.RECURSE('gensec')
+bld.RECURSE('credentials')
diff --git a/source3/auth/auth_samba4.c b/source3/auth/auth_samba4.c
index 371d4b7a338..994bde17132 100644
--- a/source3/auth/auth_samba4.c
+++ b/source3/auth/auth_samba4.c
@@ -26,7 +26,7 @@
#include "source4/lib/events/events.h"
#include "source4/lib/messaging/messaging.h"
#include "auth/gensec/gensec.h"
-#include "source4/auth/credentials/credentials.h"
+#include "auth/credentials/credentials.h"
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH
diff --git a/source4/auth/gensec/gensec_start.c b/source4/auth/gensec/gensec_start.c
index d400685a49a..3150cced973 100644
--- a/source4/auth/gensec/gensec_start.c
+++ b/source4/auth/gensec/gensec_start.c
@@ -928,8 +928,12 @@ _PUBLIC_ NTSTATUS gensec_init(void)
{
static bool initialized = false;
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
+#if _SAMBA_BUILD_ == 4
STATIC_gensec_MODULES_PROTO;
init_module_fn static_init[] = { STATIC_gensec_MODULES };
+#else
+ init_module_fn *static_init = NULL;
+#endif
init_module_fn *shared_init;
if (initialized) return NT_STATUS_OK;
diff --git a/source4/auth/wscript_build b/source4/auth/wscript_build
index 079857dbb7e..ebee49b89c3 100644
--- a/source4/auth/wscript_build
+++ b/source4/auth/wscript_build
@@ -4,7 +4,6 @@ bld.RECURSE('gensec')
bld.RECURSE('kerberos')
bld.RECURSE('ntlmssp')
bld.RECURSE('ntlm')
-bld.RECURSE('credentials')
bld.SAMBA_SUBSYSTEM('auth_session',
source='session.c',
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index ce747cee9e5..7dae7a2e764 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -455,7 +455,7 @@ plantestsuite("samba4.blackbox.setpassword.py", "none", ["PYTHON=%s" % python, o
plantestsuite("samba4.blackbox.newuser.py", "none", ["PYTHON=%s" % python, os.path.join(samba4srcdir, "setup/tests/blackbox_newuser.sh"), '$PREFIX/provision'])
plantestsuite("samba4.blackbox.group.py", "none", ["PYTHON=%s" % python, os.path.join(samba4srcdir, "setup/tests/blackbox_group.sh"), '$PREFIX/provision'])
plantestsuite("samba4.blackbox.spn.py(dc:local)", "dc:local", ["PYTHON=%s" % python, os.path.join(samba4srcdir, "setup/tests/blackbox_spn.sh"), '$PREFIX/dc'])
-plantestsuite("samba4.ldap.bind(dc)", "dc", [python, os.path.join(samba4srcdir, "auth/credentials/tests/bind.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"'])
+plantestsuite("samba4.ldap.bind(dc)", "dc", [python, os.path.join(srcdir(), "auth/credentials/tests/bind.py"), '$SERVER', '-U"$USERNAME%$PASSWORD"'])
# DRS python tests
plansambapythontestsuite("samba4.blackbox.samba-tool.drs(vampire_dc)", "vampire_dc", os.path.join(samba4srcdir, 'scripting/python'), "samba.tests.blackbox.samba_tool_drs", environ={'DC1': '$DC_SERVER', 'DC2': '$VAMPIRE_DC_SERVER'}, extra_args=['-U$DOMAIN/$DC_USERNAME%$DC_PASSWORD'])
diff --git a/source4/torture/local/wscript_build b/source4/torture/local/wscript_build
index 0c269d73105..c5d897a1237 100644
--- a/source4/torture/local/wscript_build
+++ b/source4/torture/local/wscript_build
@@ -13,7 +13,7 @@ TORTURE_LOCAL_SOURCE = '''../../../lib/util/charset/tests/iconv.c
../../../lib/util/charset/tests/convert_string.c
../../libcli/security/tests/sddl.c ../../../lib/tdr/testsuite.c
../../../lib/tevent/testsuite.c ../../param/tests/share.c
- ../../param/tests/loadparm.c ../../auth/credentials/tests/simple.c local.c
+ ../../param/tests/loadparm.c ../../../auth/credentials/tests/simple.c local.c
dbspeed.c torture.c ../ldb/ldb.c ../../dsdb/common/tests/dsdb_dn.c
../../dsdb/schema/tests/schema_syntax.c
../../../lib/util/tests/anonymous_shared.c'''