summaryrefslogtreecommitdiffstats
path: root/source3/include/auth.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-05-16 14:29:43 +1200
committerAndrew Bartlett <abartlet@samba.org>2014-05-16 10:23:26 +0200
commit6c37cd65445f3acf4f41f375017ae7f5f1e34bde (patch)
treeef35b6947e8f0087d03fc6eeb6b8d0f507eca2d3 /source3/include/auth.h
parent66c099cc58e3140d08ef0890550c647e51a4a641 (diff)
downloadsamba-6c37cd65445f3acf4f41f375017ae7f5f1e34bde.tar.gz
samba-6c37cd65445f3acf4f41f375017ae7f5f1e34bde.tar.xz
samba-6c37cd65445f3acf4f41f375017ae7f5f1e34bde.zip
auth: Allow auth_samba4 to be forced to run a specific auth module
This will allow new tests to be written to validate winbindd authentication results Andrew Bartlett Change-Id: I008eba1de349b17ee4eb9f11be08338557dffecc Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/include/auth.h')
-rw-r--r--source3/include/auth.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/source3/include/auth.h b/source3/include/auth.h
index 07f8b9eee1..acae5a83c6 100644
--- a/source3/include/auth.h
+++ b/source3/include/auth.h
@@ -66,10 +66,14 @@ struct auth_serversupplied_info {
char *unix_name;
};
-typedef NTSTATUS (*prepare_gensec_fn)(TALLOC_CTX *mem_ctx,
+struct auth_context;
+
+typedef NTSTATUS (*prepare_gensec_fn)(const struct auth_context *auth_context,
+ TALLOC_CTX *mem_ctx,
struct gensec_security **gensec_context);
-typedef NTSTATUS (*make_auth4_context_fn)(TALLOC_CTX *mem_ctx,
+typedef NTSTATUS (*make_auth4_context_fn)(const struct auth_context *auth_context,
+ TALLOC_CTX *mem_ctx,
struct auth4_context **auth4_context);
struct auth_context {
@@ -83,6 +87,7 @@ struct auth_context {
prepare_gensec_fn prepare_gensec;
make_auth4_context_fn make_auth4_context;
+ const char *forced_samba4_methods;
};
typedef struct auth_methods