summaryrefslogtreecommitdiffstats
path: root/source3/include/auth.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-05-24 03:43:52 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-05-24 03:43:52 +0000
commit40669777a5f74617fdd80dea3ff5a45a9e9a1aa4 (patch)
tree5b9f16db2a15723ae6623b7bd5cacd91f25d21b5 /source3/include/auth.h
parentb270d2d3ababe0b84e3e7f05573bf673082ba6b8 (diff)
downloadsamba-40669777a5f74617fdd80dea3ff5a45a9e9a1aa4.tar.gz
samba-40669777a5f74617fdd80dea3ff5a45a9e9a1aa4.tar.xz
samba-40669777a5f74617fdd80dea3ff5a45a9e9a1aa4.zip
Move the authenticaion subsystem over to the same 'module:options' syntax
that the passdb code now uses. Similarly, move the 'pluggable' stuff over from passdb as well, allowing runtime loading of new authenticaion modules. (NOTE: The interfaces here can *and do* change - module writers are not assured source-level compatibilty, and certainly not binary compatibility). (This used to be commit 3897cf5e048f50be91ae434f636affc6d539d0d1)
Diffstat (limited to 'source3/include/auth.h')
-rw-r--r--source3/include/auth.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/include/auth.h b/source3/include/auth.h
index 5c8bc8edfe..66b317d643 100644
--- a/source3/include/auth.h
+++ b/source3/include/auth.h
@@ -141,11 +141,12 @@ typedef struct auth_methods
} auth_methods;
-struct auth_init_function {
+typedef NTSTATUS (*auth_init_function)(struct auth_context *, const char *, struct auth_methods **);
+
+struct auth_init_function_entry {
char *name;
/* Function to create a member of the authmethods list */
- BOOL (*init)(struct auth_context *auth_context, struct auth_methods **auth_method);
-};
-
+ auth_init_function init;
+};
#endif /* _SMBAUTH_H_ */