1da6c28aaSamw<?xml version="1.0"?> 2da6c28aaSamw<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> 3da6c28aaSamw<!-- 4da6c28aaSamw 5da6c28aaSamwCDDL HEADER START 6da6c28aaSamw 7da6c28aaSamwThe contents of this file are subject to the terms of the 8da6c28aaSamwCommon Development and Distribution License (the "License"). 9da6c28aaSamwYou may not use this file except in compliance with the License. 10da6c28aaSamw 11da6c28aaSamwYou can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 12da6c28aaSamwor http://www.opensolaris.org/os/licensing. 13da6c28aaSamwSee the License for the specific language governing permissions 14da6c28aaSamwand limitations under the License. 15da6c28aaSamw 16da6c28aaSamwWhen distributing Covered Code, include this CDDL HEADER in each 17da6c28aaSamwfile and include the License file at usr/src/OPENSOLARIS.LICENSE. 18da6c28aaSamwIf applicable, add the following below this CDDL HEADER, with the 19da6c28aaSamwfields enclosed by brackets "[]" replaced with your own identifying 20da6c28aaSamwinformation: Portions Copyright [yyyy] [name of copyright owner] 21da6c28aaSamw 22da6c28aaSamwCDDL HEADER END 23da6c28aaSamw 24148c5f43SAlan WrightCopyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 25a90cf9f2SGordon RossCopyright 2015 Nexenta Systems, Inc. All rights reserved. 26*7ddce999SHans RosenfeldCopyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org> 27da6c28aaSamw 28da6c28aaSamwNOTE: This service manifest is not editable; its contents will 29da6c28aaSamwbe overwritten by package or patch operations, including 30da6c28aaSamwoperating system upgrade. Make customizations in a different 31da6c28aaSamwfile. 32da6c28aaSamw 33da6c28aaSamw--> 34da6c28aaSamw 35da6c28aaSamw<service_bundle type='manifest' name='SUNWsmbsr:smb-server'> 36da6c28aaSamw 37da6c28aaSamw<!-- 1. Name the service to 'network/smb/server' --> 38da6c28aaSamw<service 39da6c28aaSamw name='network/smb/server' 40da6c28aaSamw type='service' 41da6c28aaSamw version='1'> 42da6c28aaSamw 43da6c28aaSamw <!-- 2. Create default service instance. --> 44da6c28aaSamw <create_default_instance enabled='false' /> 45da6c28aaSamw 46da6c28aaSamw <!-- 3. Service has single instance --> 47da6c28aaSamw <single_instance/> 48da6c28aaSamw 49da6c28aaSamw <!-- 4. Identify dependencies --> 50da6c28aaSamw 51da6c28aaSamw <dependency name='network' 52da6c28aaSamw grouping='require_any' 53da6c28aaSamw restart_on='error' 54da6c28aaSamw type='service'> 55da6c28aaSamw <service_fmri value='svc:/milestone/network'/> 56da6c28aaSamw </dependency> 57da6c28aaSamw 58da6c28aaSamw <!-- Must have all local filesystems mounted before we share them --> 59da6c28aaSamw <dependency name='filesystem-local' 60da6c28aaSamw grouping='require_all' 61da6c28aaSamw restart_on='error' 62da6c28aaSamw type='service'> 63da6c28aaSamw <service_fmri value='svc:/system/filesystem/local'/> 64da6c28aaSamw </dependency> 65da6c28aaSamw 66da6c28aaSamw <!-- Must have idmap service started --> 67da6c28aaSamw <dependency name='idmap' 68da6c28aaSamw grouping='require_all' 691fdeec65Sjoyce mcintosh restart_on='none' 70da6c28aaSamw type='service'> 71da6c28aaSamw <service_fmri value='svc:/system/idmap:default'/> 72da6c28aaSamw </dependency> 73da6c28aaSamw 74ed9aabc7SGordon Ross <!-- Must have SMB client service started --> 75ed9aabc7SGordon Ross <dependency name='smb-client' 76ed9aabc7SGordon Ross grouping='require_all' 77ed9aabc7SGordon Ross restart_on='none' 78ed9aabc7SGordon Ross type='service'> 79ed9aabc7SGordon Ross <service_fmri value='svc:/network/smb/client:default'/> 80ed9aabc7SGordon Ross </dependency> 81ed9aabc7SGordon Ross 82da6c28aaSamw <!-- 83da6c28aaSamw Want to make sure that the network/shares/group service 84da6c28aaSamw starts after the smb/server service. It needs to be 85da6c28aaSamw optional in order to not cause failure if smb is 86da6c28aaSamw disabled. 87da6c28aaSamw --> 88da6c28aaSamw <dependent name='groups' 89da6c28aaSamw grouping="optional_all" 90da6c28aaSamw restart_on='error' > 91da6c28aaSamw <service_fmri value='svc:/network/shares/group'/> 92da6c28aaSamw </dependent> 93da6c28aaSamw 94da6c28aaSamw <!-- 5. Identify start/stop/refresh methods --> 95da6c28aaSamw <exec_method 96da6c28aaSamw type='method' 97da6c28aaSamw name='start' 98da6c28aaSamw exec='/usr/lib/smbsrv/smbd %m' 99da6c28aaSamw timeout_seconds='60' > 1008622ec45SGordon Ross <!-- XXX: need method_context? --> 101da6c28aaSamw </exec_method> 102da6c28aaSamw 103da6c28aaSamw <exec_method 104da6c28aaSamw type='method' 105da6c28aaSamw name='stop' 106da6c28aaSamw exec=':kill' 107da6c28aaSamw timeout_seconds='60' /> 108da6c28aaSamw 109da6c28aaSamw <exec_method 110da6c28aaSamw type='method' 111da6c28aaSamw name='refresh' 112da6c28aaSamw exec=':kill -HUP' 113da6c28aaSamw timeout_seconds='60' /> 114da6c28aaSamw 115da6c28aaSamw <property_group name='general' type='framework'> 116da6c28aaSamw <!-- To Start/Stop/Refresh the service --> 117da6c28aaSamw <propval name='action_authorization' type='astring' 118da6c28aaSamw value='solaris.smf.manage.smb' /> 119da6c28aaSamw <propval name='value_authorization' type='astring' 120da6c28aaSamw value='solaris.smf.manage.smb' /> 121da6c28aaSamw </property_group> 122da6c28aaSamw 123eb1a3463STruong Nguyen <property_group name='firewall_context' type='com.sun,fw_definition'> 124eb1a3463STruong Nguyen <propval name='ipf_method' type='astring' 125eb1a3463STruong Nguyen value='/lib/svc/method/svc-smbd ipfilter' /> 126eb1a3463STruong Nguyen </property_group> 127eb1a3463STruong Nguyen 128eb1a3463STruong Nguyen <property_group name='firewall_config' type='com.sun,fw_configuration'> 129eb1a3463STruong Nguyen <propval name='policy' type='astring' value='use_global' /> 130*7ddce999SHans Rosenfeld <propval name='block_policy' type='astring' 131*7ddce999SHans Rosenfeld value='use_global' /> 132eb1a3463STruong Nguyen <propval name='apply_to' type='astring' value='' /> 133*7ddce999SHans Rosenfeld <propval name='apply_to_6' type='astring' value='' /> 134eb1a3463STruong Nguyen <propval name='exceptions' type='astring' value='' /> 135*7ddce999SHans Rosenfeld <propval name='exceptions_6' type='astring' value='' /> 136*7ddce999SHans Rosenfeld <propval name='target' type='astring' value='' /> 137*7ddce999SHans Rosenfeld <propval name='target_6' type='astring' value='' /> 138eb1a3463STruong Nguyen <propval name='value_authorization' type='astring' 139eb1a3463STruong Nguyen value='solaris.smf.value.firewall.config' /> 140eb1a3463STruong Nguyen </property_group> 141eb1a3463STruong Nguyen 142da6c28aaSamw <property_group name='read' type='application'> 143da6c28aaSamw <!-- To read protected parameters --> 144da6c28aaSamw <propval name='read_authorization' type='astring' 145da6c28aaSamw value='solaris.smf.read.smb' /> 146da6c28aaSamw <propval name='value_authorization' type='astring' 147da6c28aaSamw value='solaris.smf.value.smb' /> 148da6c28aaSamw <propval name='machine_passwd' type='astring' value='' /> 149da6c28aaSamw </property_group> 150da6c28aaSamw 151da6c28aaSamw <!-- SMB service-specific general configuration defaults --> 152da6c28aaSamw <property_group name='smbd' type='application'> 153da6c28aaSamw <stability value='Evolving' /> 154da6c28aaSamw <propval name='value_authorization' type='astring' 155da6c28aaSamw value='solaris.smf.value.smb' /> 156da6c28aaSamw <propval name='oplock_enable' type='boolean' 157eb1d736bSafshin salek ardakani - Sun Microsystems - Irvine United States value='true' override='true'/> 158da6c28aaSamw <propval name='autohome_map' type='astring' 159da6c28aaSamw value='/etc' override='true'/> 160b819cea2SGordon Ross <propval name='debug' type='integer' 161b819cea2SGordon Ross value='0' override='true'/> 162da6c28aaSamw <propval name='domain_sid' type='astring' 163da6c28aaSamw value='' override='true'/> 164da6c28aaSamw <propval name='domain_member' type='boolean' 165da6c28aaSamw value='false' override='true'/> 166da6c28aaSamw <propval name='domain_name' type='astring' 167da6c28aaSamw value='WORKGROUP' override='true'/> 1688d7e4166Sjose borrego <propval name='fqdn' type='astring' 1698d7e4166Sjose borrego value='' override='true'/> 1708d7e4166Sjose borrego <propval name='forest' type='astring' 1718d7e4166Sjose borrego value='' override='true'/> 1728d7e4166Sjose borrego <propval name='domain_guid' type='astring' 1738d7e4166Sjose borrego value='' override='true'/> 174da6c28aaSamw <propval name='pdc' type='astring' 175da6c28aaSamw value='' override='true'/> 176da6c28aaSamw <propval name='wins_server_1' type='astring' 177da6c28aaSamw value='' override='true'/> 178da6c28aaSamw <propval name='wins_server_2' type='astring' 179da6c28aaSamw value='' override='true'/> 180da6c28aaSamw <propval name='wins_exclude' type='astring' 181da6c28aaSamw value='' override='true'/> 182da6c28aaSamw <propval name='max_workers' type='integer' 1832c2961f8Sjose borrego value='1024' override='true'/> 184da6c28aaSamw <propval name='max_connections' type='integer' 1854163af6aSjose borrego value='100000' override='true'/> 186da6c28aaSamw <propval name='keep_alive' type='integer' 187da6c28aaSamw value='5400' override='true'/> 188da6c28aaSamw <propval name='restrict_anonymous' type='boolean' 189da6c28aaSamw value='false' override='true'/> 190da6c28aaSamw <propval name='signing_enabled' type='boolean' 19112b65585SGordon Ross value='true' override='true'/> 192da6c28aaSamw <propval name='signing_required' type='boolean' 193da6c28aaSamw value='false' override='true'/> 194da6c28aaSamw <propval name='signing_check' type='boolean' 195da6c28aaSamw value='false' override='true'/> 196da6c28aaSamw <propval name='sync_enable' type='boolean' 197da6c28aaSamw value='false' override='true'/> 198da6c28aaSamw <propval name='security' type='astring' 199da6c28aaSamw value='workgroup' override='true'/> 20083d2dfe6SGordon Ross <propval name='netbios_enable' type='boolean' 20183d2dfe6SGordon Ross value='false' override='true'/> 202da6c28aaSamw <propval name='netbios_scope' type='astring' 203da6c28aaSamw value='' override='true'/> 204da6c28aaSamw <propval name='system_comment' type='astring' 205da6c28aaSamw value='' override='true'/> 206da6c28aaSamw <propval name='lmauth_level' type='integer' 207da6c28aaSamw value='4' override='true'/> 208da6c28aaSamw <propval name='ads_site' type='astring' 209da6c28aaSamw value='' override='true'/> 210da6c28aaSamw <propval name='ddns_enable' type='boolean' 211da6c28aaSamw value='false' override='true'/> 212faa1795aSjb150015 <propval name='kpasswd_server' type='astring' 213faa1795aSjb150015 value='' override='true'/> 214faa1795aSjb150015 <propval name='kpasswd_domain' type='astring' 215faa1795aSjb150015 value='' override='true'/> 216faa1795aSjb150015 <propval name='kpasswd_seqnum' type='integer' 217faa1795aSjb150015 value='0' override='true'/> 218faa1795aSjb150015 <propval name='netlogon_seqnum' type='integer' 219faa1795aSjb150015 value='0' override='true'/> 2207f667e74Sjose borrego <propval name='ipv6_enable' type='boolean' 2217f667e74Sjose borrego value='false' override='true'/> 2229fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States <propval name='sv_version' type='astring' 2239fb67ea3Safshin salek ardakani - Sun Microsystems - Irvine United States value='5.0' override='true'/> 224148c5f43SAlan Wright <propval name='dfs_stdroot_num' type='integer' 225148c5f43SAlan Wright value='0' override='true'/> 226a90cf9f2SGordon Ross <propval name='print_enable' type='boolean' 227a90cf9f2SGordon Ross value='false' override='true'/> 2285f1ef25cSAram Hăvărneanu <propval name='traverse_mounts' type='boolean' 2295f1ef25cSAram Hăvărneanu value='true' override='true'/> 230a90cf9f2SGordon Ross <propval name='max_protocol' type='astring' 231a90cf9f2SGordon Ross value='' override='true'/> 232a90cf9f2SGordon Ross <propval name='initial_credits' type='integer' 233a90cf9f2SGordon Ross value='20' override='true'/> 234a90cf9f2SGordon Ross <propval name='maximum_credits' type='integer' 235a90cf9f2SGordon Ross value='1000' override='true'/> 236da6c28aaSamw </property_group> 237da6c28aaSamw 23829bd2886SAlan Wright <!-- SMB service-specific shares exec configuration defaults --> 23929bd2886SAlan Wright <property_group name='exec' type='application'> 24029bd2886SAlan Wright <stability value='Evolving' /> 24129bd2886SAlan Wright <propval name='map' type='astring' 24229bd2886SAlan Wright value='' override='true'/> 24329bd2886SAlan Wright <propval name='unmap' type='astring' 24429bd2886SAlan Wright value='' override='true'/> 24529bd2886SAlan Wright <propval name='disposition' type='astring' 24629bd2886SAlan Wright value='' override='true'/> 24729bd2886SAlan Wright </property_group> 24829bd2886SAlan Wright 249da6c28aaSamw <!-- 6. Identify faults to be ignored. --> 250da6c28aaSamw <!-- 7. Identify service model. Default service model is 'contract' --> 251da6c28aaSamw <!-- 8. Identify dependents. 252da6c28aaSamw For Solaris NAS, we may want to have the smbd service start, 253da6c28aaSamw before it reaches the svc:/milestone/multi-user-server 254da6c28aaSamw milestone. 255da6c28aaSamw <dependent 256da6c28aaSamw name='smb-server_multi-user-server' 257da6c28aaSamw grouping='optional_all' 258da6c28aaSamw restart_on='none'> 259da6c28aaSamw <service_fmri value= 260da6c28aaSamw 'svc:/milestone/multi-user-server'/> 261da6c28aaSamw </dependent> 262da6c28aaSamw --> 263da6c28aaSamw <!-- 9. Insert service milestones. None. --> 264da6c28aaSamw 265da6c28aaSamw <stability value='Evolving' /> 266da6c28aaSamw 267da6c28aaSamw <!-- 10. Create Service Template information --> 268da6c28aaSamw <template> 269da6c28aaSamw <common_name> 270da6c28aaSamw <loctext xml:lang='C'> smbd daemon</loctext> 271da6c28aaSamw </common_name> 272da6c28aaSamw <documentation> 273da6c28aaSamw <manpage title='smbd' section='1M' 274da6c28aaSamw manpath='/usr/share/man' /> 275da6c28aaSamw </documentation> 276da6c28aaSamw </template> 277da6c28aaSamw 278da6c28aaSamw</service> 279da6c28aaSamw 280da6c28aaSamw</service_bundle> 281