1da6c28aaSamw /* 2da6c28aaSamw * CDDL HEADER START 3da6c28aaSamw * 4da6c28aaSamw * The contents of this file are subject to the terms of the 5da6c28aaSamw * Common Development and Distribution License (the "License"). 6da6c28aaSamw * You may not use this file except in compliance with the License. 7da6c28aaSamw * 8da6c28aaSamw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9da6c28aaSamw * or http://www.opensolaris.org/os/licensing. 10da6c28aaSamw * See the License for the specific language governing permissions 11da6c28aaSamw * and limitations under the License. 12da6c28aaSamw * 13da6c28aaSamw * When distributing Covered Code, include this CDDL HEADER in each 14da6c28aaSamw * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15da6c28aaSamw * If applicable, add the following below this CDDL HEADER, with the 16da6c28aaSamw * fields enclosed by brackets "[]" replaced with your own identifying 17da6c28aaSamw * information: Portions Copyright [yyyy] [name of copyright owner] 18da6c28aaSamw * 19da6c28aaSamw * CDDL HEADER END 20da6c28aaSamw */ 21da6c28aaSamw 22da6c28aaSamw /* 237b59d02dSjb150015 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24da6c28aaSamw * Use is subject to license terms. 25da6c28aaSamw */ 26da6c28aaSamw 27da6c28aaSamw #ifndef _SMBD_H 28da6c28aaSamw #define _SMBD_H 29da6c28aaSamw 30c8ec8eeaSjose borrego #pragma ident "@(#)smbd.h 1.8 08/07/17 SMI" 31da6c28aaSamw 32da6c28aaSamw #ifdef __cplusplus 33da6c28aaSamw extern "C" { 34da6c28aaSamw #endif 35da6c28aaSamw 36da6c28aaSamw #include <sys/types.h> 37*94fff790SAlan Wright #include <smbsrv/smb_ioctl.h> 38da6c28aaSamw #include <smbsrv/smb_token.h> 39da6c28aaSamw #include <smbsrv/libsmb.h> 40da6c28aaSamw #include <smbsrv/libmlsvc.h> 41da6c28aaSamw 423db3f65cSamw extern int smbd_opipe_dsrv_start(void); 433db3f65cSamw extern void smbd_opipe_dsrv_stop(void); 44da6c28aaSamw 453ad684d6Sjb150015 extern int smb_share_dsrv_start(void); 463ad684d6Sjb150015 extern void smb_share_dsrv_stop(void); 47da6c28aaSamw 48da6c28aaSamw extern int smb_netlogon_init(void); 49faa1795aSjb150015 extern void smb_set_netlogon_cred(void); 50c8ec8eeaSjose borrego extern int smbd_locate_dc_start(char *); 51da6c28aaSamw 52da6c28aaSamw extern smb_token_t *smbd_user_auth_logon(netr_client_t *); 53da6c28aaSamw extern void smbd_user_nonauth_logon(uint32_t); 54da6c28aaSamw extern void smbd_user_auth_logoff(uint32_t); 55faa1795aSjb150015 extern uint32_t smbd_join(smb_joininfo_t *); 56da6c28aaSamw 57*94fff790SAlan Wright extern int smbd_ioctl(int, smb_io_t *); 583ad684d6Sjb150015 59da6c28aaSamw typedef struct smbd { 60da6c28aaSamw const char *s_version; /* smbd version string */ 61da6c28aaSamw const char *s_pname; /* basename to use for messages */ 62da6c28aaSamw pid_t s_pid; /* process-ID of current daemon */ 63da6c28aaSamw uid_t s_uid; /* UID of current daemon */ 64da6c28aaSamw gid_t s_gid; /* GID of current daemon */ 65da6c28aaSamw int s_fg; /* Run in foreground */ 66da6c28aaSamw int s_drv_fd; /* Handle for SMB kernel driver */ 67da6c28aaSamw int s_shutdown_flag; /* Fields for shutdown control */ 68da6c28aaSamw int s_sigval; 696537f381Sas200622 boolean_t s_kbound; /* B_TRUE if bound to kernel */ 706537f381Sas200622 int s_door_lmshr; 716537f381Sas200622 int s_door_srv; 723db3f65cSamw int s_door_opipe; 736537f381Sas200622 int s_secmode; /* Current security mode */ 746537f381Sas200622 smb_kmod_cfg_t s_kcfg; /* Current Kernel configuration */ 75da6c28aaSamw } smbd_t; 76da6c28aaSamw 77da6c28aaSamw #ifdef __cplusplus 78da6c28aaSamw } 79da6c28aaSamw #endif 80da6c28aaSamw 81da6c28aaSamw #endif /* _SMBD_H */ 82