mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
tests: Add a test for "all_groups=no" to test_idmap_ad.sh
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15605 Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org> Autobuild-Date(master): Tue Apr 2 13:25:39 UTC 2024 on atb-devel-224
This commit is contained in:
parent
2dab3a331b
commit
f8b72aa1f7
@ -94,6 +94,14 @@ gidNumber: 2000001
|
||||
unixHomeDirectory: /home/forbidden
|
||||
loginShell: /bin/tcsh
|
||||
gecos: User in forbidden OU
|
||||
|
||||
dn: CN=no_posix_id,CN=Users,$BASE_DN
|
||||
changetype: add
|
||||
objectClass: user
|
||||
samaccountName: no_posix_id
|
||||
unixHomeDirectory: /home/no_posix_id
|
||||
loginShell: /bin/sh
|
||||
gecos: User without uidNumber and gidNumber
|
||||
EOF
|
||||
|
||||
#
|
||||
@ -171,6 +179,17 @@ then
|
||||
failed=$(($failed + 1))
|
||||
fi
|
||||
|
||||
#
|
||||
# Test 6: Make sure that with the default "all_groups=no"
|
||||
# the group "domain users" will not show user "no_posix_id"
|
||||
# but will show "SAMBA2008R2/administrator"
|
||||
#
|
||||
|
||||
dom_users="$DOMAIN/domain users" # Extra step to make sure that all is one word
|
||||
out="$($wbinfo --group-info "$dom_users")"
|
||||
testit_grep_count "no_posix_id1" "no_posix_id" 0 echo "$out" || failed=$(expr $failed + 1)
|
||||
testit_grep "no_posix_id2" "SAMBA2008R2/administrator" echo "$out" || failed=$(expr $failed + 1)
|
||||
|
||||
#
|
||||
# Trusted domain test 1: Test uid of Administrator, should be 2500000
|
||||
#
|
||||
@ -241,6 +260,9 @@ gidNumber: 2000002
|
||||
dn: cn=forbidden,ou=sub,$BASE_DN
|
||||
changetype: delete
|
||||
|
||||
dn: CN=no_posix_id,CN=Users,$BASE_DN
|
||||
changetype: delete
|
||||
|
||||
dn: ou=sub,$BASE_DN
|
||||
changetype: delete
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user