-
Notifications
You must be signed in to change notification settings - Fork 7
/
schema_source_domain_settings.go
58 lines (55 loc) · 1.37 KB
/
schema_source_domain_settings.go
1
2
3
4
5
6
7
8
9
10
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
package main
import (
"github.com/hashicorp/terraform-plugin-sdk/helper/schema"
)
// Schemas
func sourceDomainSettingsFields() map[string]*schema.Schema {
s := map[string]*schema.Schema{
"password": {
Type: schema.TypeString,
Optional: true,
Description: "Service Account password to login to on-prem active directory.",
Sensitive: true,
},
"user": {
Type: schema.TypeString,
Optional: true,
Description: "Service Account user to login to on-prem active directory.",
Sensitive: true,
},
"servers": {
Type: schema.TypeList,
Optional: true,
Description: "Active directory servers.",
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"port": {
Type: schema.TypeString,
Optional: true,
Description: "Active Directory host port.",
},
"forest_name": {
Type: schema.TypeString,
Optional: true,
Description: "Active Directory forest name.",
},
"domain_dn": {
Type: schema.TypeString,
Optional: true,
Description: "Active Directory domain controller.",
},
"use_ssl": {
Type: schema.TypeBool,
Optional: true,
Description: "Use ssl to connect to Active directory.",
},
"authorization_type": {
Type: schema.TypeString,
Optional: true,
Description: "Active Directory authorization type.",
},
}
return s
}