15331Samw /* 25331Samw * CDDL HEADER START 35331Samw * 45331Samw * The contents of this file are subject to the terms of the 55331Samw * Common Development and Distribution License (the "License"). 65331Samw * You may not use this file except in compliance with the License. 75331Samw * 85331Samw * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 95331Samw * or http://www.opensolaris.org/os/licensing. 105331Samw * See the License for the specific language governing permissions 115331Samw * and limitations under the License. 125331Samw * 135331Samw * When distributing Covered Code, include this CDDL HEADER in each 145331Samw * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 155331Samw * If applicable, add the following below this CDDL HEADER, with the 165331Samw * fields enclosed by brackets "[]" replaced with your own identifying 175331Samw * information: Portions Copyright [yyyy] [name of copyright owner] 185331Samw * 195331Samw * CDDL HEADER END 205331Samw */ 215331Samw 225331Samw /* 236030Sjb150015 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 245331Samw * Use is subject to license terms. 255331Samw */ 265331Samw 275331Samw #ifndef _SMBD_H 285331Samw #define _SMBD_H 295331Samw 307348SJose.Borrego@Sun.COM #pragma ident "@(#)smbd.h 1.8 08/07/17 SMI" 315331Samw 325331Samw #ifdef __cplusplus 335331Samw extern "C" { 345331Samw #endif 355331Samw 365331Samw #include <sys/types.h> 37*8167Samw@Sun.COM #include <smbsrv/smb_ioctl.h> 385331Samw #include <smbsrv/smb_token.h> 395331Samw #include <smbsrv/libsmb.h> 405331Samw #include <smbsrv/libmlsvc.h> 415331Samw 427052Samw extern int smbd_opipe_dsrv_start(void); 437052Samw extern void smbd_opipe_dsrv_stop(void); 445331Samw 456771Sjb150015 extern int smb_share_dsrv_start(void); 466771Sjb150015 extern void smb_share_dsrv_stop(void); 475331Samw 485331Samw extern int smb_netlogon_init(void); 496139Sjb150015 extern void smb_set_netlogon_cred(void); 507348SJose.Borrego@Sun.COM extern int smbd_locate_dc_start(char *); 515331Samw 525331Samw extern smb_token_t *smbd_user_auth_logon(netr_client_t *); 535331Samw extern void smbd_user_nonauth_logon(uint32_t); 545331Samw extern void smbd_user_auth_logoff(uint32_t); 556139Sjb150015 extern uint32_t smbd_join(smb_joininfo_t *); 565331Samw 57*8167Samw@Sun.COM extern int smbd_ioctl(int, smb_io_t *); 586771Sjb150015 595331Samw typedef struct smbd { 606432Sas200622 const char *s_version; /* smbd version string */ 616432Sas200622 const char *s_pname; /* basename to use for messages */ 626432Sas200622 pid_t s_pid; /* process-ID of current daemon */ 636432Sas200622 uid_t s_uid; /* UID of current daemon */ 646432Sas200622 gid_t s_gid; /* GID of current daemon */ 656432Sas200622 int s_fg; /* Run in foreground */ 666432Sas200622 int s_drv_fd; /* Handle for SMB kernel driver */ 676432Sas200622 int s_shutdown_flag; /* Fields for shutdown control */ 686432Sas200622 int s_sigval; 696432Sas200622 boolean_t s_kbound; /* B_TRUE if bound to kernel */ 706432Sas200622 int s_door_lmshr; 716432Sas200622 int s_door_srv; 727052Samw int s_door_opipe; 736432Sas200622 int s_secmode; /* Current security mode */ 746432Sas200622 smb_kmod_cfg_t s_kcfg; /* Current Kernel configuration */ 755331Samw } smbd_t; 765331Samw 775331Samw #ifdef __cplusplus 785331Samw } 795331Samw #endif 805331Samw 815331Samw #endif /* _SMBD_H */ 82