blob: b8f48b5870f28aa2c168800d38f7b005ae5cb6cb (
plain)
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
|
#
# Run the "ldap" module
#
ldap
#
# Resolve using group name attribute
#
if (LDAP-Group == 'foo') {
test_pass
}
else {
test_fail
}
#
# Resolve using group DN
#
if (LDAP-Group == 'cn=foo,ou=groups,dc=example,dc=com') {
test_pass
}
else {
test_fail
}
#
# Check we have these values cached
#
if (&control:LDAP-Cached-Membership[*] == 'foo') {
test_pass
}
else {
test_fail
}
if (&control:LDAP-Cached-Membership[*] == 'cn=foo,ou=groups,dc=example,dc=com') {
test_pass
}
else {
test_fail
}
|