Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

Location:
vendor/current/examples/auth
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/examples/auth/auth_skel.c

    r414 r988  
    2020
    2121#include "includes.h"
     22#include "auth.h"
    2223
    2324#undef DBGC_CLASS
     
    2728                                         void *my_private_data,
    2829                                         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)
    3132{
    3233        if (!user_info || !auth_context) {
     
    4243
    4344/* module initialisation */
    44 NTSTATUS auth_init_skel(struct auth_context *auth_context, const char *param, auth_methods **auth_method)
     45static NTSTATUS auth_init_skel(struct auth_context *auth_context, const char *param, auth_methods **auth_method)
    4546{
    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) {
    4751                return NT_STATUS_NO_MEMORY;
    4852        }
     53        result->name = "skel";
     54        result->auth = check_skel_security;
    4955
    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;
    5267        return NT_STATUS_OK;
    5368}
    5469
    55 NTSTATUS init_module(void)
     70NTSTATUS auth_skel_init(void);
     71NTSTATUS auth_skel_init(void)
    5672{
    5773        return smb_register_auth(AUTH_INTERFACE_VERSION, "skel", auth_init_skel);
Note: See TracChangeset for help on using the changeset viewer.