diff options
author | Andrew Bartlett <abartlet@samba.org> | 2015-02-27 15:56:22 +1300 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2015-03-06 17:39:58 +0100 |
commit | 6fe8cd2fdfa770ceaa4ad87002db9cdc029dd532 (patch) | |
tree | f84701a12128ea3d2a5db87c75ed49431d21590b /testprogs | |
parent | 477fce1f395917616cd2eb144da8571e994382e7 (diff) | |
download | samba-6fe8cd2fdfa770ceaa4ad87002db9cdc029dd532.tar.gz samba-6fe8cd2fdfa770ceaa4ad87002db9cdc029dd532.tar.xz samba-6fe8cd2fdfa770ceaa4ad87002db9cdc029dd532.zip |
selftest: Improve renamedcs test
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-x | testprogs/blackbox/renamedc.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testprogs/blackbox/renamedc.sh b/testprogs/blackbox/renamedc.sh index 874186766e..4f187a4aaf 100755 --- a/testprogs/blackbox/renamedc.sh +++ b/testprogs/blackbox/renamedc.sh @@ -49,6 +49,14 @@ confirmrenamedc_dNSHostName() { $ldbsearch -H $PREFIX/renamedc_test/private/sam.ldb -s base -b 'cn=RAYMONBAR,ou=domain controllers,dc=foo,dc=example,dc=com' dNSHostName | grep 'dNSHostName: RAYMONBAR.foo.example.com' } +confirmrenamedc_rootdse_dnsHostName() { + $ldbsearch -H $PREFIX/renamedc_test/private/sam.ldb -s base -b '' dNSHostName | grep 'dnsHostName: RAYMONBAR.foo.example.com' +} + +confirmrenamedc_rootdse_dsServiceName() { + $ldbsearch -H $PREFIX/renamedc_test/private/sam.ldb --show-binary -s base -b '' dsServiceName | grep 'dsServiceName: CN=NTDS Settings,CN=RAYMONBAR,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=foo,DC=example,DC=com' +} + testrenamedc2() { $PYTHON $SRCDIR/source4/scripting/bin/renamedc \ --oldname="RAYMONBAR" \ @@ -67,6 +75,8 @@ testit "confirmrenamedc" confirmrenamedc || failed=`expr $failed + 1` testit "confirmrenamedc_server" confirmrenamedc_server || failed=`expr $failed + 1` testit "confirmrenamedc_sAMAccountName" confirmrenamedc_sAMAccountName || failed=`expr $failed + 1` testit "confirmrenamedc_dNSHostName" confirmrenamedc_dNSHostName || failed=`expr $failed + 1` +testit "confirmrenamedc_rootdse_dnsHostName" confirmrenamedc_rootdse_dnsHostName || failed=`expr $failed + 1` +testit "confirmrenamedc_rootdse_dsServiceName" confirmrenamedc_rootdse_dsServiceName || failed=`expr $failed + 1` testit "dbcheck" dbcheck || failed=`expr $failed + 1` testit "renamedc2" testrenamedc2 || failed=`expr $failed + 1` |