mlsvc.h revision 13082:81ec56bf6147
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* 22 * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. 23 */ 24 25#ifndef _SMBSRV_MLSVC_H 26#define _SMBSRV_MLSVC_H 27 28#include <smbsrv/smb_share.h> 29#include <smbsrv/ndl/netlogon.ndl> 30 31#ifdef __cplusplus 32extern "C" { 33#endif 34 35int smb_dclocator_init(void); 36void dssetup_initialize(void); 37void srvsvc_initialize(void); 38void wkssvc_initialize(void); 39void lsarpc_initialize(void); 40void logr_initialize(void); 41void netr_initialize(void); 42void samr_initialize(void); 43void svcctl_initialize(void); 44void winreg_initialize(void); 45int srvsvc_gettime(unsigned long *); 46void msgsvcsend_initialize(void); 47void spoolss_initialize(void); 48void netdfs_initialize(void); 49 50void logr_finalize(void); 51void svcctl_finalize(void); 52void spoolss_finalize(void); 53void netdfs_finalize(void); 54 55int netr_open(char *, char *, mlsvc_handle_t *); 56int netr_close(mlsvc_handle_t *); 57DWORD netlogon_auth(char *, mlsvc_handle_t *, DWORD); 58int netr_setup_authenticator(netr_info_t *, struct netr_authenticator *, 59 struct netr_authenticator *); 60DWORD netr_validate_chain(netr_info_t *, struct netr_authenticator *); 61 62void ndr_srvsvc_timecheck(char *, char *); 63 64/* Generic functions to get/set windows Security Descriptors */ 65uint32_t srvsvc_sd_get(smb_share_t *, uint8_t *, uint32_t *); 66uint32_t srvsvc_sd_set(smb_share_t *, uint8_t *); 67 68uint32_t smb_logon_init(void); 69void smb_logon_fini(void); 70 71/* Locking for process-wide settings (i.e. privileges) */ 72void smb_proc_initsem(void); /* init (or re-init in child) */ 73int smb_proc_takesem(void); /* parent before */ 74void smb_proc_givesem(void); /* parent after */ 75 76/* Quota */ 77void smb_quota_init(void); 78void smb_quota_fini(void); 79void smb_quota_add_fs(const char *); 80void smb_quota_remove_fs(const char *); 81 82#ifdef __cplusplus 83} 84#endif 85 86 87#endif /* _SMBSRV_MLSVC_H */ 88