[quote="A_Hull"]Coool....... sussed it you MUST declare the domain_type = "ldap" (and not for example as "LDAP") otherwise it wont match in the conditional logic.
Suggest we lower case this var at the start of the section of the script and set it to ldap if it is not declared otherwise we break older versions of the config.
Modded the start to read...
[code]
if audit_local_domain = "y" then
domain_type = LCase(domain_type)
if domain_type <> "nt" then
domain_type = "ldap"
end if
if domain_type = "nt" then
comparray = GetDomainComputers(local_domain)
end if
[/code]
Posted to SVN 927 Please try and let me know the results. You should now be able to declare or not declare domain_type, and use any case you like.
Unless it is specified as "nt" (or "NT" or "nT" or whatever) it is assumed to be "ldap"
Slightly logically dangerous, but it fixes our problem.