29 #include <smbsrv/smb_share.h>
30 #include <smbsrv/ndl/netlogon.ndl>
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
36 struct netr_info;
37
38 int smb_dclocator_init(void);
39 void smbrdr_initialize(void);
40 void dssetup_initialize(void);
41 void srvsvc_initialize(void);
42 void wkssvc_initialize(void);
43 void lsarpc_initialize(void);
44 void logr_initialize(void);
45 void netr_initialize(void);
46 void samr_initialize(void);
47 void svcctl_initialize(void);
48 void winreg_initialize(void);
49 int srvsvc_gettime(unsigned long *);
50 void msgsvcsend_initialize(void);
51 void spoolss_initialize(void);
52 void netdfs_initialize(void);
53
54 void logr_finalize(void);
55 void svcctl_finalize(void);
56 void spoolss_finalize(void);
57 void netdfs_finalize(void);
58
59 /* netr_auth.c */
60 DWORD netr_open(char *, char *, mlsvc_handle_t *);
61 int netr_close(mlsvc_handle_t *);
62 DWORD netlogon_auth(char *, mlsvc_handle_t *, DWORD);
63 int netr_setup_authenticator(struct netr_info *, struct netr_authenticator *,
64 struct netr_authenticator *);
65 DWORD netr_validate_chain(struct netr_info *, struct netr_authenticator *);
66
67 void ndr_srvsvc_timecheck(char *, char *);
68
69 /* Generic functions to get/set windows Security Descriptors */
70 uint32_t srvsvc_sd_get(smb_share_t *, uint8_t *, uint32_t *);
71 uint32_t srvsvc_sd_set(smb_share_t *, uint8_t *);
72
73 uint32_t smb_logon_init(void);
74 void smb_logon_fini(void);
75
76 /* Locking for process-wide settings (i.e. privileges) */
77 void smb_proc_initsem(void); /* init (or re-init in child) */
78 int smb_proc_takesem(void); /* parent before */
79 void smb_proc_givesem(void); /* parent after */
80
81 /* Quota */
82 void smb_quota_init(void);
83 void smb_quota_fini(void);
84 void smb_quota_add_fs(const char *);
85 void smb_quota_remove_fs(const char *);
86
87 uint32_t smb_ddiscover_main(char *, smb_domainex_t *);
|
29 #include <smbsrv/smb_share.h>
30 #include <smbsrv/ndl/netlogon.ndl>
31
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35
36 struct netr_info;
37
38 int smb_dclocator_init(void);
39 void smbrdr_initialize(void);
40 void dssetup_initialize(void);
41 void srvsvc_initialize(void);
42 void wkssvc_initialize(void);
43 void lsarpc_initialize(void);
44 void logr_initialize(void);
45 void netr_initialize(void);
46 void samr_initialize(void);
47 void svcctl_initialize(void);
48 void winreg_initialize(void);
49 void msgsvcsend_initialize(void);
50 void spoolss_initialize(void);
51 void netdfs_initialize(void);
52
53 void logr_finalize(void);
54 void svcctl_finalize(void);
55 void spoolss_finalize(void);
56 void netdfs_finalize(void);
57
58 /* netr_auth.c */
59 DWORD netr_open(char *, char *, mlsvc_handle_t *);
60 int netr_close(mlsvc_handle_t *);
61 DWORD netlogon_auth(char *, mlsvc_handle_t *, DWORD);
62 int netr_setup_authenticator(struct netr_info *, struct netr_authenticator *,
63 struct netr_authenticator *);
64 DWORD netr_validate_chain(struct netr_info *, struct netr_authenticator *);
65
66 int srvsvc_gettime(unsigned long *);
67 void srvsvc_timecheck(char *, char *);
68
69 /* Generic functions to get/set windows Security Descriptors */
70 uint32_t srvsvc_sd_get(smb_share_t *, uint8_t *, uint32_t *);
71 uint32_t srvsvc_sd_set(smb_share_t *, uint8_t *);
72
73 uint32_t smb_logon_init(void);
74 void smb_logon_fini(void);
75
76 /* Locking for process-wide settings (i.e. privileges) */
77 void smb_proc_initsem(void); /* init (or re-init in child) */
78 int smb_proc_takesem(void); /* parent before */
79 void smb_proc_givesem(void); /* parent after */
80
81 /* Quota */
82 void smb_quota_init(void);
83 void smb_quota_fini(void);
84 void smb_quota_add_fs(const char *);
85 void smb_quota_remove_fs(const char *);
86
87 uint32_t smb_ddiscover_main(char *, smb_domainex_t *);
|