Open-AudIT
https://www.open-audit.org/phpBB3/

random_order only works for domain_type=ldap
https://www.open-audit.org/phpBB3/viewtopic.php?f=8&t=3808
Page 1 of 1

Author:  jpa [ Fri Oct 01, 2010 8:25 am ]
Post subject:  random_order only works for domain_type=ldap

The random_order option to randomize the audit order for a domain scan only works if the domain_type is ldap. Some inconsistent indenting makes this not totally obvious.

[code]
Index: audit.vbs
===================================================================
--- audit.vbs (revision 1251)
+++ audit.vbs (working copy)
@@ -496,7 +496,8 @@
Echo("Computer Name from ldap: " & strComputer)
objRecordSet.MoveNext
Loop
-' Randomise the scan if asked.
+ end if
+ ' Randomise the scan if asked.
if random_order <> false then
Call ArrayShuffle(comparray)
Echo ("Computer List Randomised")
@@ -505,7 +506,7 @@
num_running = HowMany
Echo("Number of systems retrieved from ldap: " & (Ubound(comparray) +1))
Echo("--------------")
- end if
+
For i = 0 To Ubound(comparray)
' For i = 118 To 128
while num_running > number_of_audits
[/code]

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/