Changeset 988 for vendor/current/examples/auth
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- Location:
- vendor/current/examples/auth
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/examples/auth/auth_skel.c
r414 r988 20 20 21 21 #include "includes.h" 22 #include "auth.h" 22 23 23 24 #undef DBGC_CLASS … … 27 28 void *my_private_data, 28 29 TALLOC_CTX *mem_ctx, 29 const auth_usersupplied_info *user_info,30 auth_serversupplied_info **server_info)30 const struct auth_usersupplied_info *user_info, 31 struct auth_serversupplied_info **server_info) 31 32 { 32 33 if (!user_info || !auth_context) { … … 42 43 43 44 /* module initialisation */ 44 NTSTATUS auth_init_skel(struct auth_context *auth_context, const char *param, auth_methods **auth_method) 45 static NTSTATUS auth_init_skel(struct auth_context *auth_context, const char *param, auth_methods **auth_method) 45 46 { 46 if (!make_auth_methods(auth_context, auth_method)) { 47 struct auth_methods *result; 48 49 result = talloc_zero(auth_context, struct auth_methods); 50 if (result == NULL) { 47 51 return NT_STATUS_NO_MEMORY; 48 52 } 53 result->name = "skel"; 54 result->auth = check_skel_security; 49 55 50 (*auth_method)->auth = check_skel_security; 51 (*auth_method)->name = "skel"; 56 if (param && *param) { 57 /* we load the 'fallback' module - if skel isn't here, call this 58 module */ 59 auth_methods *priv; 60 if (!load_auth_module(auth_context, param, &priv)) { 61 return NT_STATUS_UNSUCCESSFUL; 62 } 63 result->private_data = (void *)priv; 64 } 65 66 *auth_method = result; 52 67 return NT_STATUS_OK; 53 68 } 54 69 55 NTSTATUS init_module(void) 70 NTSTATUS auth_skel_init(void); 71 NTSTATUS auth_skel_init(void) 56 72 { 57 73 return smb_register_auth(AUTH_INTERFACE_VERSION, "skel", auth_init_skel);
Note:
See TracChangeset
for help on using the changeset viewer.