summaryrefslogtreecommitdiffstats
path: root/source3/include/auth.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-03-27 12:58:05 +1300
committerAndrew Bartlett <abartlet@samba.org>2014-06-11 10:18:26 +0200
commit597d2a7a29f768f51cbcbc13de56a4dc349e20e4 (patch)
tree905e3d34a91965eec4d08e77227e2cd9adcdf5a2 /source3/include/auth.h
parent2e961bf598e58178ce0d4ed5e35553acd882e436 (diff)
downloadsamba-597d2a7a29f768f51cbcbc13de56a4dc349e20e4.tar.gz
samba-597d2a7a29f768f51cbcbc13de56a4dc349e20e4.tar.xz
samba-597d2a7a29f768f51cbcbc13de56a4dc349e20e4.zip
auth: Provide a way to use the auth stack for winbindd authentication
This adds in flags that allow winbindd to request authentication without directly calling into the auth_sam module. That in turn will allow winbindd to call auth_samba4 and so permit winbindd operation in the AD DC. Andrew Bartlett Change-Id: I27d11075eb8e1a54f034ee2fdcb05360b4203567 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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/include/auth.h b/source3/include/auth.h
index acae5a83c6..d35936b243 100644
--- a/source3/include/auth.h
+++ b/source3/include/auth.h
@@ -107,6 +107,8 @@ typedef struct auth_methods
/* Used to keep tabs on things like the cli for SMB server authentication */
void *private_data;
+ uint32_t flags;
+
} auth_methods;
typedef NTSTATUS (*auth_init_function)(struct auth_context *, const char *, struct auth_methods **);
@@ -130,7 +132,8 @@ enum session_key_use_intent {
/* Changed from 1 -> 2 to add the logon_parameters field. */
/* Changed from 2 -> 3 when we reworked many auth structures to use IDL or be in common with Samba4 */
-#define AUTH_INTERFACE_VERSION 3
+/* Changed from 3 -> 4 when we reworked added the flags */
+#define AUTH_INTERFACE_VERSION 4
#include "auth/proto.h"