mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
selftest: Add reproducer for bug 14908
Bug: https://bugzilla.samba.org/show_bug.cgi?id=14908 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
2868b80364
commit
9faa317319
1
selftest/knownfail.d/clustered_machine_account
Normal file
1
selftest/knownfail.d/clustered_machine_account
Normal file
@ -0,0 +1 @@
|
|||||||
|
^samba3.net_machine_account.net_ads_user\(clusteredmember\)
|
22
source3/script/tests/test_net_machine_account.sh
Executable file
22
source3/script/tests/test_net_machine_account.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Reproducer for https://bugzilla.samba.org/show_bug.cgi?id=14908
|
||||||
|
|
||||||
|
if [ $# -lt 2 ]; then
|
||||||
|
echo "Usage: $0 NET CONFFILE SERVER_IP"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
NET="$1"; shift
|
||||||
|
CONFFILE="$1"; shift
|
||||||
|
SERVER_IP="$1"; shift
|
||||||
|
|
||||||
|
export UID_WRAPPER_ROOT=1
|
||||||
|
|
||||||
|
incdir=`dirname $0`/../../../testprogs/blackbox
|
||||||
|
. $incdir/subunit.sh
|
||||||
|
|
||||||
|
failed=0
|
||||||
|
|
||||||
|
testit "net_ads_user" $VALGRIND $NET rpc user --configfile="$CONFFILE" -S "$SERVER_IP" -P || failed=`expr $failed + 1`
|
||||||
|
|
||||||
|
testok $0 $failed
|
@ -1311,6 +1311,15 @@ plantestsuite(
|
|||||||
"",
|
"",
|
||||||
"-b $PREFIX/clusteredmember/unclists/tmp.txt -N 5 -o 10"])
|
"-b $PREFIX/clusteredmember/unclists/tmp.txt -N 5 -o 10"])
|
||||||
|
|
||||||
|
plantestsuite(
|
||||||
|
"samba3.net_machine_account",
|
||||||
|
"clusteredmember",
|
||||||
|
[os.path.join(samba3srcdir,
|
||||||
|
"script/tests/test_net_machine_account.sh"),
|
||||||
|
"bin/net",
|
||||||
|
"$SERVERCONFFILE",
|
||||||
|
"$SERVER_IP"])
|
||||||
|
|
||||||
plantestsuite(
|
plantestsuite(
|
||||||
"samba3.net_lookup_ldap",
|
"samba3.net_lookup_ldap",
|
||||||
"ad_dc:local",
|
"ad_dc:local",
|
||||||
|
Loading…
Reference in New Issue
Block a user