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 30*c8ec8eeaSjose 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> 37da6c28aaSamw #include <smbsrv/smb_token.h> 38da6c28aaSamw #include <smbsrv/libsmb.h> 39da6c28aaSamw #include <smbsrv/libmlsvc.h> 40da6c28aaSamw 413db3f65cSamw extern int smbd_opipe_dsrv_start(void); 423db3f65cSamw extern void smbd_opipe_dsrv_stop(void); 43da6c28aaSamw 443ad684d6Sjb150015 extern int smb_share_dsrv_start(void); 453ad684d6Sjb150015 extern void smb_share_dsrv_stop(void); 46da6c28aaSamw 47da6c28aaSamw extern int smb_netlogon_init(void); 48faa1795aSjb150015 extern void smb_set_netlogon_cred(void); 49*c8ec8eeaSjose borrego extern int smbd_locate_dc_start(char *); 50da6c28aaSamw 51da6c28aaSamw extern smb_token_t *smbd_user_auth_logon(netr_client_t *); 52da6c28aaSamw extern void smbd_user_nonauth_logon(uint32_t); 53da6c28aaSamw extern void smbd_user_auth_logoff(uint32_t); 54faa1795aSjb150015 extern uint32_t smbd_join(smb_joininfo_t *); 55da6c28aaSamw 563ad684d6Sjb150015 57da6c28aaSamw typedef struct smbd { 58da6c28aaSamw const char *s_version; /* smbd version string */ 59da6c28aaSamw const char *s_pname; /* basename to use for messages */ 60da6c28aaSamw pid_t s_pid; /* process-ID of current daemon */ 61da6c28aaSamw uid_t s_uid; /* UID of current daemon */ 62da6c28aaSamw gid_t s_gid; /* GID of current daemon */ 63da6c28aaSamw int s_fg; /* Run in foreground */ 64da6c28aaSamw int s_drv_fd; /* Handle for SMB kernel driver */ 65da6c28aaSamw int s_shutdown_flag; /* Fields for shutdown control */ 66da6c28aaSamw int s_sigval; 676537f381Sas200622 boolean_t s_kbound; /* B_TRUE if bound to kernel */ 686537f381Sas200622 int s_door_lmshr; 696537f381Sas200622 int s_door_srv; 703db3f65cSamw int s_door_opipe; 716537f381Sas200622 int s_secmode; /* Current security mode */ 726537f381Sas200622 smb_kmod_cfg_t s_kcfg; /* Current Kernel configuration */ 73da6c28aaSamw } smbd_t; 74da6c28aaSamw 75da6c28aaSamw #ifdef __cplusplus 76da6c28aaSamw } 77da6c28aaSamw #endif 78da6c28aaSamw 79da6c28aaSamw #endif /* _SMBD_H */ 80