]> granicus.if.org Git - sudo/blob - plugins/sudoers/regress/cvtsudoers/test26.sh
Test cvtsudoers stdout and stderr separately.
[sudo] / plugins / sudoers / regress / cvtsudoers / test26.sh
1 #!/bin/sh
2 #
3 # Test LDIF invalid base64 attribute parsing
4 #
5
6 ./cvtsudoers -c "" -i ldif -b "ou=SUDOers,dc=sudo,dc=ws" -I 10 -O 10 <<EOF
7 # defaults, SUDOers, sudo.ws
8 dn:: Y249ZGVmYXVsdHMsb3U9U1VET2VycyxkYz1zdWRvLGRjPXdz 
9 objectClass: top
10 objectClass: sudoRole
11 cn: defaults
12 description: Default sudoOption's go here
13 sudoOption:: bG9nX29@1dHB1dA== 
14
15 # root, SUDOers, sudo.ws
16 dn::  Y249cm9vdCxvdT1TVURPZXJzLGRjPXN1ZG8sZGM9_d3M=
17 objectClass: top
18 objectClass: sudoRole
19 cn: root
20 sudoUser: root
21 sudoRunAsUser: ALL
22 sudoRunAsGroup: ALL
23 sudoHost: ALL
24 sudoCommand: ALL
25 sudoOption: !authenticate
26 sudoOrder: 10
27
28 # %wheel, SUDOers, sudo.ws
29 dn:: Y249JXdoZWVsLG91PVNVRE9lcnMsZGM9c3VkbyxkYz13cw!==
30 objectClass: top
31 objectClass: sudoRole
32 cn: %wheel
33 sudoUser: %wheel
34 sudoRunAsUser: ALL
35 sudoRunAsGroup: ALL
36 sudoHost: +sudo-hosts
37 sudoCommand: ALL
38 sudoOption: !authenticate
39 sudoOrder: 10
40 EOF