making sure all the /etc/samba paths are consistent
[Samba.git] / testsuite / nsswitch / getent.exp
blobfcd98670b83620bc6559cc5aad28054f5b1657e0
2 # @(#) Test the getent command returns domain/local users and groups
5 load_lib util-defs.exp
6 load_lib "$srcdir/config/env.exp"
7 load_lib "$srcdir/config/default-nt-names.exp"
10 # Test getent passwd
13 set output [util_start "getent" "passwd" ""]
15 # Test output for domain users
17 foreach {user} $domain_users {
18 if {![regexp "$user" $output]} {
19 fail "getent passwd $user"
20 } else {
21 pass "getent passwd $user"
26 # Test getent group
29 set output [util_start "getent" "group" ""]
31 foreach {group} $domain_groups {
32 if {![regexp "$group" $output]} {
33 fail "getent group $group"
34 } else {
35 pass "getent group $group"