Print this page
12513 SMB 3.1.1 support for server
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/cmd/smbsrv/smbd/server.xml
+++ new/usr/src/cmd/smbsrv/smbd/server.xml
1 1 <?xml version="1.0"?>
2 2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 3 <!--
4 4
5 5 CDDL HEADER START
6 6
7 7 The contents of this file are subject to the terms of the
8 8 Common Development and Distribution License (the "License").
9 9 You may not use this file except in compliance with the License.
10 10
11 11 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12 12 or http://www.opensolaris.org/os/licensing.
13 13 See the License for the specific language governing permissions
14 14 and limitations under the License.
15 15
16 16 When distributing Covered Code, include this CDDL HEADER in each
↓ open down ↓ |
16 lines elided |
↑ open up ↑ |
17 17 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18 18 If applicable, add the following below this CDDL HEADER, with the
19 19 fields enclosed by brackets "[]" replaced with your own identifying
20 20 information: Portions Copyright [yyyy] [name of copyright owner]
21 21
22 22 CDDL HEADER END
23 23
24 24 Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
25 25 Copyright 2018 Nexenta Systems, Inc. All rights reserved.
26 26 Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
27 -Copyright 2019 RackTop Systems.
27 +Copyright 2020 RackTop Systems.
28 28
29 29 NOTE: This service manifest is not editable; its contents will
30 30 be overwritten by package or patch operations, including
31 31 operating system upgrade. Make customizations in a different
32 32 file.
33 33
34 34 -->
35 35
36 36 <service_bundle type='manifest' name='SUNWsmbsr:smb-server'>
37 37
38 38 <!-- 1. Name the service to 'network/smb/server' -->
39 39 <service
40 40 name='network/smb/server'
41 41 type='service'
42 42 version='2'>
43 43
44 44 <!-- 2. Create default service instance. -->
45 45 <create_default_instance enabled='false' />
46 46
47 47 <!-- 3. Service has single instance -->
48 48 <single_instance/>
49 49
50 50 <!-- 4. Identify dependencies -->
51 51
52 52 <dependency name='network'
53 53 grouping='require_any'
54 54 restart_on='error'
55 55 type='service'>
56 56 <service_fmri value='svc:/milestone/network'/>
57 57 </dependency>
58 58
59 59 <!-- Must have all local filesystems mounted before we share them -->
60 60 <dependency name='filesystem-local'
61 61 grouping='require_all'
62 62 restart_on='error'
63 63 type='service'>
64 64 <service_fmri value='svc:/system/filesystem/local'/>
65 65 </dependency>
66 66
67 67 <!-- Must have idmap service started -->
68 68 <dependency name='idmap'
69 69 grouping='require_all'
70 70 restart_on='none'
71 71 type='service'>
72 72 <service_fmri value='svc:/system/idmap:default'/>
73 73 </dependency>
74 74
75 75 <!-- Must have SMB client service started -->
76 76 <dependency name='smb-client'
77 77 grouping='require_all'
78 78 restart_on='none'
79 79 type='service'>
80 80 <service_fmri value='svc:/network/smb/client:default'/>
81 81 </dependency>
82 82
83 83 <!--
84 84 Want to make sure that the network/shares/group service
85 85 starts after the smb/server service. It needs to be
86 86 optional in order to not cause failure if smb is
87 87 disabled.
88 88 -->
89 89 <dependent name='groups'
90 90 grouping="optional_all"
91 91 restart_on='error' >
92 92 <service_fmri value='svc:/network/shares/group'/>
93 93 </dependent>
94 94
95 95 <!-- 5. Identify start/stop/refresh methods -->
96 96 <exec_method
97 97 type='method'
98 98 name='start'
99 99 exec='/usr/lib/smbsrv/smbd %m'
100 100 timeout_seconds='60' >
101 101 <!-- XXX: need method_context? -->
102 102 </exec_method>
103 103
104 104 <exec_method
105 105 type='method'
106 106 name='stop'
107 107 exec=':kill'
108 108 timeout_seconds='60' />
109 109
110 110 <exec_method
111 111 type='method'
112 112 name='refresh'
113 113 exec=':kill -HUP'
114 114 timeout_seconds='60' />
115 115
116 116 <property_group name='general' type='framework'>
117 117 <!-- To Start/Stop/Refresh the service -->
118 118 <propval name='action_authorization' type='astring'
119 119 value='solaris.smf.manage.smb' />
120 120 <propval name='value_authorization' type='astring'
121 121 value='solaris.smf.manage.smb' />
122 122 </property_group>
123 123
124 124 <property_group name='firewall_context' type='com.sun,fw_definition'>
125 125 <propval name='ipf_method' type='astring'
126 126 value='/lib/svc/method/svc-smbd ipfilter' />
127 127 </property_group>
128 128
129 129 <property_group name='firewall_config' type='com.sun,fw_configuration'>
130 130 <propval name='policy' type='astring' value='use_global' />
131 131 <propval name='block_policy' type='astring'
132 132 value='use_global' />
133 133 <propval name='apply_to' type='astring' value='' />
134 134 <propval name='apply_to_6' type='astring' value='' />
135 135 <propval name='exceptions' type='astring' value='' />
136 136 <propval name='exceptions_6' type='astring' value='' />
137 137 <propval name='target' type='astring' value='' />
138 138 <propval name='target_6' type='astring' value='' />
139 139 <propval name='value_authorization' type='astring'
140 140 value='solaris.smf.value.firewall.config' />
141 141 </property_group>
142 142
143 143 <property_group name='read' type='application'>
144 144 <!-- To read protected parameters -->
145 145 <propval name='read_authorization' type='astring'
146 146 value='solaris.smf.read.smb' />
147 147 <propval name='value_authorization' type='astring'
148 148 value='solaris.smf.value.smb' />
149 149 <propval name='machine_passwd' type='astring' value='' />
150 150 </property_group>
151 151
152 152 <!-- SMB service-specific general configuration defaults -->
153 153 <property_group name='smbd' type='application'>
154 154 <stability value='Evolving' />
155 155 <propval name='value_authorization' type='astring'
156 156 value='solaris.smf.value.smb' />
157 157 <propval name='oplock_enable' type='boolean'
158 158 value='true' override='true'/>
159 159 <propval name='autohome_map' type='astring'
160 160 value='/etc' override='true'/>
161 161 <propval name='bypass_traverse_checking' type='boolean'
162 162 value='true' override='true'/>
163 163 <propval name='debug' type='integer'
164 164 value='0' override='true'/>
165 165 <propval name='domain_sid' type='astring'
166 166 value='' override='true'/>
167 167 <propval name='domain_member' type='boolean'
168 168 value='false' override='true'/>
169 169 <propval name='domain_name' type='astring'
170 170 value='WORKGROUP' override='true'/>
171 171 <propval name='fqdn' type='astring'
172 172 value='' override='true'/>
173 173 <propval name='forest' type='astring'
174 174 value='' override='true'/>
175 175 <propval name='domain_guid' type='astring'
176 176 value='' override='true'/>
177 177 <propval name='pdc' type='astring'
178 178 value='' override='true'/>
179 179 <propval name='wins_server_1' type='astring'
180 180 value='' override='true'/>
181 181 <propval name='wins_server_2' type='astring'
182 182 value='' override='true'/>
183 183 <propval name='wins_exclude' type='astring'
184 184 value='' override='true'/>
185 185 <propval name='max_workers' type='integer'
186 186 value='1024' override='true'/>
187 187 <propval name='max_connections' type='integer'
188 188 value='100000' override='true'/>
189 189 <propval name='keep_alive' type='integer'
190 190 value='0' override='true'/>
191 191 <propval name='restrict_anonymous' type='boolean'
192 192 value='false' override='true'/>
193 193 <propval name='signing_enabled' type='boolean'
194 194 value='true' override='true'/>
195 195 <propval name='signing_required' type='boolean'
196 196 value='true' override='true'/>
197 197 <propval name='sync_enable' type='boolean'
198 198 value='false' override='true'/>
199 199 <propval name='security' type='astring'
200 200 value='workgroup' override='true'/>
201 201 <propval name='netbios_enable' type='boolean'
202 202 value='false' override='true'/>
203 203 <propval name='netbios_scope' type='astring'
204 204 value='' override='true'/>
205 205 <propval name='system_comment' type='astring'
206 206 value='' override='true'/>
207 207 <propval name='lmauth_level' type='integer'
208 208 value='4' override='true'/>
209 209 <propval name='ads_site' type='astring'
210 210 value='' override='true'/>
211 211 <propval name='ddns_enable' type='boolean'
212 212 value='false' override='true'/>
213 213 <propval name='kpasswd_server' type='astring'
214 214 value='' override='true'/>
215 215 <propval name='kpasswd_domain' type='astring'
216 216 value='' override='true'/>
217 217 <propval name='kpasswd_seqnum' type='integer'
218 218 value='0' override='true'/>
219 219 <propval name='netlogon_seqnum' type='integer'
220 220 value='0' override='true'/>
221 221 <propval name='ipv6_enable' type='boolean'
222 222 value='false' override='true'/>
223 223 <propval name='sv_version' type='astring'
224 224 value='6.1' override='true'/>
225 225 <propval name='dfs_stdroot_num' type='integer'
226 226 value='0' override='true'/>
↓ open down ↓ |
189 lines elided |
↑ open up ↑ |
227 227 <propval name='print_enable' type='boolean'
228 228 value='false' override='true'/>
229 229 <propval name='traverse_mounts' type='boolean'
230 230 value='true' override='true'/>
231 231 <propval name='max_protocol' type='astring'
232 232 value='' override='true'/>
233 233 <propval name='min_protocol' type='astring'
234 234 value='' override='true'/>
235 235 <propval name='encrypt' type='astring'
236 236 value='disabled' override='true'/>
237 + <propval name='encrypt_cipher' type='astring'
238 + value='' override='true'/>
237 239 <propval name='initial_credits' type='integer'
238 240 value='20' override='true'/>
239 241 <propval name='maximum_credits' type='integer'
240 242 value='1000' override='true'/>
241 243 </property_group>
242 244
243 245 <!-- SMB service-specific shares exec configuration defaults -->
244 246 <property_group name='exec' type='application'>
245 247 <stability value='Evolving' />
246 248 <propval name='map' type='astring'
247 249 value='' override='true'/>
248 250 <propval name='unmap' type='astring'
249 251 value='' override='true'/>
250 252 <propval name='disposition' type='astring'
251 253 value='' override='true'/>
252 254 </property_group>
253 255
254 256 <!-- 6. Identify faults to be ignored. -->
255 257 <!-- 7. Identify service model. Default service model is 'contract' -->
256 258 <!-- 8. Identify dependents.
257 259 For Solaris NAS, we may want to have the smbd service start,
258 260 before it reaches the svc:/milestone/multi-user-server
259 261 milestone.
260 262 <dependent
261 263 name='smb-server_multi-user-server'
262 264 grouping='optional_all'
263 265 restart_on='none'>
264 266 <service_fmri value=
265 267 'svc:/milestone/multi-user-server'/>
266 268 </dependent>
267 269 -->
268 270 <!-- 9. Insert service milestones. None. -->
269 271
270 272 <stability value='Evolving' />
271 273
272 274 <!-- 10. Create Service Template information -->
273 275 <template>
274 276 <common_name>
275 277 <loctext xml:lang='C'> smbd daemon</loctext>
276 278 </common_name>
277 279 <documentation>
278 280 <manpage title='smbd' section='1M'
279 281 manpath='/usr/share/man' />
280 282 </documentation>
281 283 </template>
282 284
283 285 </service>
284 286
285 287 </service_bundle>
↓ open down ↓ |
39 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX