2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
7 The contents of this file are subject to the terms of the
8 Common Development and Distribution License (the "License").
9 You may not use this file except in compliance with the License.
11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12 or http://www.opensolaris.org/os/licensing.
13 See the License for the specific language governing permissions
14 and limitations under the License.
16 When distributing Covered Code, include this CDDL HEADER in each
17 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18 If applicable, add the following below this CDDL HEADER, with the
19 fields enclosed by brackets "[]" replaced with your own identifying
20 information: Portions Copyright [yyyy] [name of copyright owner]
24 Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
25 Copyright 2015 Nexenta Systems, Inc. All rights reserved.
26 Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
28 NOTE: This service manifest is not editable; its contents will
29 be overwritten by package or patch operations, including
30 operating system upgrade. Make customizations in a different
35 <service_bundle type='manifest' name='SUNWsmbsr:smb-server'>
37 <!-- 1. Name the service to 'network/smb/server' -->
39 name='network/smb/server'
43 <!-- 2. Create default service instance. -->
44 <create_default_instance enabled='false' />
46 <!-- 3. Service has single instance -->
49 <!-- 4. Identify dependencies -->
51 <dependency name='network'
52 grouping='require_any'
55 <service_fmri value='svc:/milestone/network'/>
58 <!-- Must have all local filesystems mounted before we share them -->
59 <dependency name='filesystem-local'
60 grouping='require_all'
63 <service_fmri value='svc:/system/filesystem/local'/>
66 <!-- Must have idmap service started -->
67 <dependency name='idmap'
68 grouping='require_all'
71 <service_fmri value='svc:/system/idmap:default'/>
74 <!-- Must have SMB client service started -->
75 <dependency name='smb-client'
76 grouping='require_all'
79 <service_fmri value='svc:/network/smb/client:default'/>
83 Want to make sure that the network/shares/group service
84 starts after the smb/server service. It needs to be
85 optional in order to not cause failure if smb is
88 <dependent name='groups'
89 grouping="optional_all"
91 <service_fmri value='svc:/network/shares/group'/>
94 <!-- 5. Identify start/stop/refresh methods -->
98 exec='/usr/lib/smbsrv/smbd %m'
99 timeout_seconds='60' >
100 <!-- XXX: need method_context? -->
107 timeout_seconds='60' />
113 timeout_seconds='60' />
115 <property_group name='general' type='framework'>
116 <!-- To Start/Stop/Refresh the service -->
117 <propval name='action_authorization' type='astring'
118 value='solaris.smf.manage.smb' />
119 <propval name='value_authorization' type='astring'
120 value='solaris.smf.manage.smb' />
123 <property_group name='firewall_context' type='com.sun,fw_definition'>
124 <propval name='ipf_method' type='astring'
125 value='/lib/svc/method/svc-smbd ipfilter' />
128 <property_group name='firewall_config' type='com.sun,fw_configuration'>
129 <propval name='policy' type='astring' value='use_global' />
130 <propval name='block_policy' type='astring'
131 value='use_global' />
132 <propval name='apply_to' type='astring' value='' />
133 <propval name='apply_to_6' type='astring' value='' />
134 <propval name='exceptions' type='astring' value='' />
135 <propval name='exceptions_6' type='astring' value='' />
136 <propval name='target' type='astring' value='' />
137 <propval name='target_6' type='astring' value='' />
138 <propval name='value_authorization' type='astring'
139 value='solaris.smf.value.firewall.config' />
142 <property_group name='read' type='application'>
143 <!-- To read protected parameters -->
144 <propval name='read_authorization' type='astring'
145 value='solaris.smf.read.smb' />
146 <propval name='value_authorization' type='astring'
147 value='solaris.smf.value.smb' />
148 <propval name='machine_passwd' type='astring' value='' />
151 <!-- SMB service-specific general configuration defaults -->
152 <property_group name='smbd' type='application'>
153 <stability value='Evolving' />
154 <propval name='value_authorization' type='astring'
155 value='solaris.smf.value.smb' />
156 <propval name='oplock_enable' type='boolean'
157 value='true' override='true'/>
158 <propval name='autohome_map' type='astring'
159 value='/etc' override='true'/>
160 <propval name='debug' type='integer'
161 value='0' override='true'/>
162 <propval name='domain_sid' type='astring'
163 value='' override='true'/>
164 <propval name='domain_member' type='boolean'
165 value='false' override='true'/>
166 <propval name='domain_name' type='astring'
167 value='WORKGROUP' override='true'/>
168 <propval name='fqdn' type='astring'
169 value='' override='true'/>
170 <propval name='forest' type='astring'
171 value='' override='true'/>
172 <propval name='domain_guid' type='astring'
173 value='' override='true'/>
174 <propval name='pdc' type='astring'
175 value='' override='true'/>
176 <propval name='wins_server_1' type='astring'
177 value='' override='true'/>
178 <propval name='wins_server_2' type='astring'
179 value='' override='true'/>
180 <propval name='wins_exclude' type='astring'
181 value='' override='true'/>
182 <propval name='max_workers' type='integer'
183 value='1024' override='true'/>
184 <propval name='max_connections' type='integer'
185 value='100000' override='true'/>
186 <propval name='keep_alive' type='integer'
187 value='5400' override='true'/>
188 <propval name='restrict_anonymous' type='boolean'
189 value='false' override='true'/>
190 <propval name='signing_enabled' type='boolean'
191 value='true' override='true'/>
192 <propval name='signing_required' type='boolean'
193 value='false' override='true'/>
194 <propval name='signing_check' type='boolean'
195 value='false' override='true'/>
196 <propval name='sync_enable' type='boolean'
197 value='false' override='true'/>
198 <propval name='security' type='astring'
199 value='workgroup' override='true'/>
200 <propval name='netbios_enable' type='boolean'
201 value='false' override='true'/>
202 <propval name='netbios_scope' type='astring'
203 value='' override='true'/>
204 <propval name='system_comment' type='astring'
205 value='' override='true'/>
206 <propval name='lmauth_level' type='integer'
207 value='4' override='true'/>
208 <propval name='ads_site' type='astring'
209 value='' override='true'/>
210 <propval name='ddns_enable' type='boolean'
211 value='false' override='true'/>
212 <propval name='kpasswd_server' type='astring'
213 value='' override='true'/>
214 <propval name='kpasswd_domain' type='astring'
215 value='' override='true'/>
216 <propval name='kpasswd_seqnum' type='integer'
217 value='0' override='true'/>
218 <propval name='netlogon_seqnum' type='integer'
219 value='0' override='true'/>
220 <propval name='ipv6_enable' type='boolean'
221 value='false' override='true'/>
222 <propval name='sv_version' type='astring'
223 value='5.0' override='true'/>
224 <propval name='dfs_stdroot_num' type='integer'
225 value='0' override='true'/>
226 <propval name='print_enable' type='boolean'
227 value='false' override='true'/>
228 <propval name='traverse_mounts' type='boolean'
229 value='true' override='true'/>
230 <propval name='max_protocol' type='astring'
231 value='' override='true'/>
232 <propval name='initial_credits' type='integer'
233 value='20' override='true'/>
234 <propval name='maximum_credits' type='integer'
235 value='1000' override='true'/>
238 <!-- SMB service-specific shares exec configuration defaults -->
239 <property_group name='exec' type='application'>
240 <stability value='Evolving' />
241 <propval name='map' type='astring'
242 value='' override='true'/>
243 <propval name='unmap' type='astring'
244 value='' override='true'/>
245 <propval name='disposition' type='astring'
246 value='' override='true'/>
249 <!-- 6. Identify faults to be ignored. -->
250 <!-- 7. Identify service model. Default service model is 'contract' -->
251 <!-- 8. Identify dependents.
252 For Solaris NAS, we may want to have the smbd service start,
253 before it reaches the svc:/milestone/multi-user-server
256 name='smb-server_multi-user-server'
257 grouping='optional_all'
260 'svc:/milestone/multi-user-server'/>
263 <!-- 9. Insert service milestones. None. -->
265 <stability value='Evolving' />
267 <!-- 10. Create Service Template information -->
270 <loctext xml:lang='C'> smbd daemon</loctext>
273 <manpage title='smbd' section='1M'
274 manpath='/usr/share/man' />