blob: 507bdd46e7a52f86dc01d7d4f8b6647062f334e4 (
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
|
#!/bin/sh
#
# Test to exercise Bug #994, a crash matching sudoCommand ALL.
#
: ${TESTSUDOERS=testsudoers}
$TESTSUDOERS -i ldif root id <<-EOF
dn: dc=sudo,dc=ws
objectClass: dcObject
objectClass: organization
dc: bigwheel
o: Big Wheel
description: Big Wheel
# Organizational Role for Directory Manager
dn: cn=Manager,dc=sudo,dc=ws
objectClass: organizationalRole
cn: Manager
description: Directory Manager
# SUDOers, sudo.ws
dn: ou=SUDOers,dc=sudo,dc=ws
objectClass: top
objectClass: organizationalUnit
description: SUDO Configuration Subtree
ou: SUDOers
# root, SUDOers, sudo.ws
dn: cn=root,ou=SUDOers,dc=sudo,dc=ws
objectClass: top
objectClass: sudoRole
cn: root
sudoUser: root
sudoRunAs: ALL
sudoHost: ALL
sudoCommand: ALL
sudoOrder: 10
EOF
exit 0
|