-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.yaml
49 lines (49 loc) · 1.38 KB
/
example.yaml
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
---
administrative:
name: 'production'
DN_substitutions_key: 'SUB:'
DN_substitutions:
foo_person: 'uid=foo,ou=logins,dc=example'
bar_person: 'uid=bar,ou=logins,dc=example'
peername_substitutions_key: 'IPFOR:'
peername_substitutions:
adminhost: '10.20.30.40'
externalhost: '8.8.8.8'
scripting:
executable: 'slapacl'
path:
- '/usr/local/sbin'
- '/usr/sbin'
default_arguments:
- '-F'
- '/etc/openldap/slapd.d'
tests:
- description: 'anonymous may auth from anywhere'
requestDN: 'uid=binder,ou=logins,dc=example'
requestattr: 'userPassword/auth'
expects: 'ALLOWED'
- description: 'a user can search for someone from two IPs'
authcDN: 'SUB:foo_person'
requestDN: 'uid=someone,ou=logins,dc=example'
requestattr: 'uid/search'
peername:
- 'IPFOR:adminhost'
- '20.40.60.80'
expects: 'ALLOWED'
- description: 'baz can not read quux from one IP'
authcDN: 'uid=baz,ou=logins,dc=example'
requestDN: 'uid=quux,ou=logins,dc=example'
requestattr: 'uid/read'
peername: '1.2.3.4'
expects: 'DENIED'
- description: 'frob can make a new user over SSL'
authcDN: 'uid=frob,ou=logins,dc=example'
requestDN: 'uid=newguy,ou=logins,dc=example'
requestattr:
- 'entry/add'
- 'uid/add'
- 'objectClass/add'
fetchentry: false
ssf: 128
peername: '1.2.3.4'
expects: 'ALLOWED'