11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
|
# File '../../src/include/auth-server/widgets.rb', line 11
def initialize_auth_server_widgets(include_target)
textdomain "auth-server"
Yast.import "CWMFirewallInterfaces"
Yast.import "Label"
Yast.import "Popup"
Yast.import "Wizard"
@firewall_settings = {
"services" => ["service:openldap", "service:kdc", "service:kadmind"],
"display_details" => true
}
@enc_types = [
Item(Id("CRYPT"), "CRYPT"),
Item(Id("SMD5"), "SMD5"),
Item(Id("SHA"), "SHA"),
Item(Id("SSHA"), "SSHA", true),
Item(Id("PLAIN"), "PLAIN")
]
@fw_widget = CWMFirewallInterfaces.CreateOpenFirewallWidget(
@firewall_settings
)
@dlg_service = Top(
VBox(
VBox(
Frame(
_("&Start LDAP Server"),
VBox(
RadioButtonGroup(
Id(:rb_service_enable),
VBox(
Left(RadioButton(Id(:rb_no), Opt(:notify), Label.NoButton)),
Left(
RadioButton(
Id(:rb_yes),
Opt(:notify),
Label.YesButton,
true
)
)
)
),
Left(
CheckBox(
Id(:cb_register_slp),
_("Register at an &SLP Daemon"),
AuthServer.ReadSLPEnabled
)
),
HStretch()
)
)
),
VSpacing(),
VBox(
Frame(
_("&Start Kerberos Server"),
VBox(
RadioButtonGroup(
Id(:rb_kerberos_enable),
VBox(
Left(RadioButton(Id(:rb_kerberos_no), Opt(:notify), Label.NoButton)),
Left(
RadioButton(
Id(:rb_kerberos_yes),
Opt(:notify),
Label.YesButton,
true
)
)
)
),
HStretch()
)
)
),
VSpacing(),
VBox(
Frame(
Id(:fr_listener),
_("Protocol Listeners"),
VBox(
Left(
HBox(
HWeight(
1,
CheckBox(Id(:cb_interface_ldap), _("LDAP"), false)
),
HWeight(1, HStretch())
)
),
Left(
HBox(
HWeight(
1,
CheckBox(
Id(:cb_interface_ldaps),
_("LDAP over SSL (ldaps)"),
false
)
),
HWeight(1, HStretch())
)
)
)
)
),
VSpacing(),
VBox(
Frame(
Id(:fr_firewall),
_("Firewall Settings"),
VBox(
Ops.get_term(@fw_widget, "custom_widget", Empty()),
HStretch()
)
)
)
)
)
@schemaWidget = VBox(
SelectionBox(
Id(:sb_schemalist),
Opt(:notify),
_("Included &Schema Files"),
[]
),
HBox(
PushButton(Id(:pb_add), Label.AddButton),
PushButton(Id(:pb_del), Label.DeleteButton)
)
)
@loglevelWidget = MultiSelectionBox(
Id(:msb_loglevel),
_("Select &Log Level Flags:"),
[
Item(Id("trace"), _("Trace Function Calls")),
Item(Id("packets"), _("Debug Packet Handling")),
Item(Id("args"), _("Heavy Trace Debugging (function args)")),
Item(Id("conns"), _("Connection Management")),
Item(Id("BER"), _("Print Packets Sent and Received")),
Item(Id("filter"), _("Search Filter Processing")),
Item(Id("config"), _("Configuration File Processing")),
Item(Id("ACL"), _("Access Control List Processing")),
Item(Id("stats"), _("Log Connections, Operations, and Result")),
Item(Id("stats2"), _("Log Entries Sent")),
Item(Id("shell"), _("Print Communication with Shell Back-Ends")),
Item(Id("parse"), _("Entry Parsing")),
Item(Id("sync"), _("LDAPSync Replication")),
Item(Id("none"), _("None"))
]
)
@allowWidget = VBox(
MultiSelectionBox(
Id(:msb_allow),
_("Select &Allow Flags:"),
[
Item(Id("bind_v2"), _("LDAPv2 Bind Requests")),
Item(
Id("bind_anon_cred"),
_("Anonymous Bind when Credentials Not Empty")
),
Item(
Id("bind_anon_dn"),
_("Unauthenticated Bind when DN Not Empty")
),
Item(
Id("update_anon"),
_("Unauthenticated Update Operations to Process")
)
]
),
MultiSelectionBox(
Id(:msb_disallow),
_("Select &Disallow Flags:"),
[
Item(
Id("bind_anon"),
_(
"Disable acceptance of anonymous Bind Requests (does not prohibit anonymous directory access)"
)
),
Item(Id("bind_simple"), _("Disable Simple Bind authentication")),
Item(
Id("tls_2_anon"),
_(
"Disable forcing session to anonymous status upon StartTLS operation receipt"
)
),
Item(
Id("tls_authc"),
_("Disallow the StartTLS operation if authenticated")
)
]
)
)
@tlsWidget = HSquash(
VBox(
Heading(_("TLS Settings")),
VBox(
Frame(
_("Basic Settings"),
VBox(
Left(
CheckBox(
Id(:cb_tls_enabled),
Opt(:notify),
_("Enable TLS"),
false
)
),
Left(
CheckBox(
Id(:cb_ssl_listener_enabled),
_("Enable LDAP over SSL (ldaps) interface"),
false
)
),
Left(
CheckBox(
Id(:cb_use_common_cert),
Opt(:notify),
_("Use common Server Certificate"),
false
)
),
HStretch()
)
)
),
VSpacing(0.5),
VBox(
Frame(
Id(:fr_import_cert),
_("Import Certificate"),
VBox(
VSquash(
HBox(
InputField(
Id(:te_ca_file),
Opt(:hstretch),
_("C&A Certificate File (PEM Format)")
),
HSpacing(0.5),
Bottom(PushButton(Id(:pb_ca_file), _("Bro&wse...")))
)
),
VSpacing(0.5),
VSquash(
HBox(
InputField(
Id(:te_cert_file),
Opt(:hstretch),
_("Certificate &File (PEM Format)")
),
HSpacing(0.5),
Bottom(PushButton(Id(:pb_cert_file), _("&Browse...")))
)
),
VSpacing(0.5),
VSquash(
HBox(
InputField(
Id(:te_key_file),
Opt(:hstretch),
_("Certificate &Key File (PEM Format - Unencrypted)")
),
HSpacing(0.5),
Bottom(PushButton(Id(:pb_key_file), _("B&rowse...")))
)
)
)
)
),
VSpacing(0.5),
Left(PushButton(Id(:pb_launch_ca), _("Launch CA Management Module")))
)
)
@generalDbWidget = VBox(
InputField(Id(:te_basedn), Opt(:disabled, :hstretch), _("&Base DN")),
VSpacing(0.5),
VSquash(
HBox(
InputField(Id(:te_rootdn), Opt(:hstretch), _("Administrator DN")),
HSpacing(0.5),
Bottom(CheckBox(Id(:cb_append_basedn), _("&Append Base DN"))),
HSpacing(0.5),
Bottom(PushButton(Id(:pb_changepw), _("Change Password"))),
VSpacing(0.3)
)
)
)
@editBdbDatabase = Top(
VBox(
Heading(_("Edit BDB Database")),
VSpacing(1),
@generalDbWidget,
VSpacing(0.5),
VBox(
HBox(
HSquash(
IntField(Id(:if_entrycache), _("Entry Cache"), 0, 2000000000, 0)
),
HSpacing(0.5),
HSquash(
IntField(
Id(:if_idlcache),
_("Index Cache (IDL cache)"),
0,
2000000000,
0
)
),
HStretch()
)
),
VSpacing(0.5),
VBox(
Left(Label(_("Checkpoint Settings"))),
HBox(
HSquash(IntField(Id(:if_checkpoint_kb), "", 0, 2000000000, 0)),
Label(_("kilobytes")),
HSquash(IntField(Id(:if_checkpoint_min), "", 0, 2000000000, 0)),
Label(_("minutes")),
HStretch()
)
)
)
)
@editConfigDatabase = Top(
VBox(
Heading(_("Change Configuration Database Settings")),
VSpacing(1),
CheckBox(
Id(:cb_conf_ldapsimplebind),
Opt(:notify),
_(
"Allow Plaintext Authentication (Simple Bind) for this Database. "
) +
_("(Remote Connection needs to be encrypted)"),
false
),
VSpacing(0.3),
ReplacePoint(
Id(:rp_confpw),
PushButton(Id(:pb_changepw), _("Change Administration Password"))
)
)
)
@editGenericDatabase = Top(
VBox(
Heading(_("Edit Database")),
VSpacing(1),
Label(_("Database type not currently supported."))
)
)
@editBdbIndexes = VBox(
Heading(_("Indexing Configuration")),
Table(
Id(:tab_idx),
Header(_("Attribute"), _("Presence"), _("Equality"), _("Substring")),
[]
),
Left(
HSquash(
HBox(
PushButton(Id(:pb_idx_add), Label.AddButton),
PushButton(Id(:pb_idx_edit), Label.EditButton),
PushButton(Id(:pb_idx_del), Label.DeleteButton)
)
)
)
)
end
|