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/pdb
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/examples/pdb/test.c

    r740 r988  
    1919
    2020#include "includes.h"
     21#include "passdb.h"
    2122
    2223static int testsam_debug_level = DBGC_ALL;
     
    2425#undef DBGC_CLASS
    2526#define DBGC_CLASS testsam_debug_level
    26 
    27 /***************************************************************
    28  Start enumeration of the passwd list.
    29 ****************************************************************/
    30 
    31 static NTSTATUS testsam_setsampwent(struct pdb_methods *methods, BOOL update, uint32 acb_mask)
    32 {
    33         DEBUG(10, ("testsam_setsampwent called\n"));
    34         return NT_STATUS_NOT_IMPLEMENTED;
    35 }
    36 
    37 /***************************************************************
    38  End enumeration of the passwd list.
    39 ****************************************************************/
    40 
    41 static void testsam_endsampwent(struct pdb_methods *methods)
    42 {
    43         DEBUG(10, ("testsam_endsampwent called\n"));
    44 }
    45 
    46 /*****************************************************************
    47  Get one struct samu from the list (next in line)
    48 *****************************************************************/
    49 
    50 static NTSTATUS testsam_getsampwent(struct pdb_methods *methods, struct samu *user)
    51 {
    52         DEBUG(10, ("testsam_getsampwent called\n"));
    53         return NT_STATUS_NOT_IMPLEMENTED;
    54 }
    5527
    5628/******************************************************************
     
    10476}
    10577
    106 NTSTATUS testsam_init(struct pdb_methods **pdb_method, const char *location)
     78static NTSTATUS testsam_init(struct pdb_methods **pdb_method, const char *location)
    10779{
    10880        NTSTATUS nt_status;
     
    11789           set, make_pdb_methods() already provide suitable defaults for missing functions */
    11890
    119         (*pdb_method)->setsampwent = testsam_setsampwent;
    120         (*pdb_method)->endsampwent = testsam_endsampwent;
    121         (*pdb_method)->getsampwent = testsam_getsampwent;
    12291        (*pdb_method)->getsampwnam = testsam_getsampwnam;
    12392        (*pdb_method)->getsampwsid = testsam_getsampwsid;
     
    139108}
    140109
    141 NTSTATUS init_module(void) {
     110static_decl_pdb;
     111NTSTATUS pdb_test_init(void)
     112{
    142113        return smb_register_passdb(PASSDB_INTERFACE_VERSION, "testsam",
    143114                                   testsam_init);
Note: See TracChangeset for help on using the changeset viewer.