Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

auth_skel.c File Reference

#include "includes.h"

Go to the source code of this file.

Defines

#define DBGC_CLASS   DBGC_AUTH

Functions

static NTSTATUS check_skel_security (const struct auth_context *auth_context, void *my_private_data, TALLOC_CTX *mem_ctx, const auth_usersupplied_info *user_info, auth_serversupplied_info **server_info)
NTSTATUS auth_init_skel (struct auth_context *auth_context, const char *param, auth_methods **auth_method)
NTSTATUS init_module (void)


Define Documentation

#define DBGC_CLASS   DBGC_AUTH
 

Definition at line 25 of file auth_skel.c.

Referenced by set_sec_ctx().


Function Documentation

NTSTATUS auth_init_skel struct auth_context auth_context,
const char *  param,
auth_methods **  auth_method
 

Definition at line 45 of file auth_skel.c.

References check_skel_security(), make_auth_methods(), NT_STATUS_NO_MEMORY, and NT_STATUS_OK.

Referenced by init_module().

00046 {
00047         if (!make_auth_methods(auth_context, auth_method)) {
00048                 return NT_STATUS_NO_MEMORY;
00049         }
00050 
00051         (*auth_method)->auth = check_skel_security;
00052         (*auth_method)->name = "skel";
00053         return NT_STATUS_OK;
00054 }

static NTSTATUS check_skel_security const struct auth_context auth_context,
void *  my_private_data,
TALLOC_CTX mem_ctx,
const auth_usersupplied_info user_info,
auth_serversupplied_info **  server_info
[static]
 

Definition at line 27 of file auth_skel.c.

References NT_STATUS_LOGON_FAILURE.

Referenced by auth_init_skel().

00032 {
00033         if (!user_info || !auth_context) {
00034                 return NT_STATUS_LOGON_FAILURE;
00035         }
00036 
00037         /* Insert your authentication checking code here, 
00038          * and return NT_STATUS_OK if authentication succeeds */
00039 
00040         /* For now, just refuse all connections */
00041         return NT_STATUS_LOGON_FAILURE;
00042 }

NTSTATUS init_module void   ) 
 

Definition at line 56 of file auth_skel.c.

00057 {
00058         return smb_register_auth(AUTH_INTERFACE_VERSION, "skel", auth_init_skel);
00059 }


© sourcejam.com 2005-2008