-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathldap.conf
66 lines (66 loc) · 1.97 KB
/
ldap.conf
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
59
60
61
62
63
64
65
66
[ldap]
enabled = true
# run on a non privileged port
listen = "0.0.0.0:3893"
[ldaps]
enabled = false
[backend]
datastore = "config"
baseDN = "dc=acme,dc=local"
nameformat = "cn"
groupformat = "ou"
[behaviors]
# Ignore all capabilities restrictions, for instance allowing every user to perform a search
IgnoreCapabilities = false
# Enable a "fail2ban" type backoff mechanism temporarily banning repeated failed login attempts
LimitFailedBinds = true
# How many failed login attempts are allowed before a ban is imposed
NumberOfFailedBinds = 3
# How long (in seconds) is the window for failed login attempts
PeriodOfFailedBinds = 10
# How long (in seconds) is the ban duration
BlockFailedBindsFor = 60
# Clean learnt IP addresses every N seconds
PruneSourceTableEvery = 600
# Clean learnt IP addresses not seen in N seconds
PruneSourcesOlderThan = 600
[[users]]
name = "alice"
givenname = "Alice"
sn = "Henderson"
mail = "[email protected]"
uidnumber = 5001
primarygroup = 5501
passsha256 = "8f0e2f76e22b43e2855189877e7dc1e1e7d98c226c95db247cd1d547928334a9" # passw0rd
[[users]]
name = "bob"
givenname = "Bob"
sn = "Sanders"
mail = "[email protected]"
uidnumber = 5002
primarygroup = 5501
passsha256 = "8f0e2f76e22b43e2855189877e7dc1e1e7d98c226c95db247cd1d547928334a9" # passw0rd
[[users]]
name = "walter" # our example administrator
givenname = "Walter"
sn = "Linz"
mail = "[email protected]"
uidnumber = 5003
primarygroup = 5501
passsha256 = "8f0e2f76e22b43e2855189877e7dc1e1e7d98c226c95db247cd1d547928334a9" # passw0rd
[[users]]
name = "ldap-tec-user"
givenname = "John"
sn = "Doe"
uidnumber = 5501
primarygroup = 5502
passsha256 = "8241458a26f1d73036ce59d448ed11d49d01cdc11fcef87c1050a165ca298c96" # ldapsecr3t
[[users.capabilities]]
action = "search"
object = "ou=superheros,dc=acme,dc=local"
[[groups]]
name = "superheros"
gidnumber = 5501
[[groups]]
name = "svcaccts"
gidnumber = 5502