No such configuration found."; } ?>
"The network path to the audit.vbs file from the scripts directory.
"
." This should be put on a network share that the account specified in
"
."'Audit Credentials' has access to",
"uuid" => "What to use as the Unique Identifier for the audited computers.
"
."In most cases, the default of UUID will work fine",
);
$cfg = GetAuditConfigurationsFromDb();
/* The tables that can be shown for MySQL queries */
$tables = array(
'network_card' , 'scheduled_task' , 'usb',
'software' , 'system' , 'motherboard',
'processor' , 'service' , 'sound',
'video'
);
$id = ( isset($_GET['config_id']) ) ? $_GET['config_id'] : '0';
$ip = explode(".", $cfg[$id]['ip_start'] );
$ip_end = ( !is_null($cfg[$id]) ) ? $cfg[$id]['ip_end'] : '0';
$opt_logging = ( !is_null($cfg[$id]) ) ? $cfg[$id]['enable_logging'] : '1';
$opt_tcpsyn = ( !is_null($cfg[$id]) ) ? $cfg[$id]['nmap_tcp_scan'] : '1';
$opt_udp = ( !is_null($cfg[$id]) ) ? $cfg[$id]['nmap_udp_scan'] : '1';
$opt_service = ( !is_null($cfg[$id]) ) ? $cfg[$id]['nmap_detect_service']: '1';
$nmap_int = ( !is_null($cfg[$id]) ) ? $cfg[$id]['nmap_intensity'] : '7';
$opt_winsoft = ( !is_null($cfg[$id]) ) ? $cfg[$id]['windows_software'] : '1';
$opt_wait = ( !is_null($cfg[$id]) ) ? $cfg[$id]['wait_time'] / 60 : '10';
$opt_max = ( !is_null($cfg[$id]) ) ? $cfg[$id]['max_audits'] : '10';
$ldap_srv = ( !is_null($cfg[$id]) ) ? $cfg[$id]['ldap_server'] : 'hostname';
$ldap_path = ( !is_null($cfg[$id]) ) ? $cfg[$id]['ldap_path'] : 'DC=mydomain,DC=com';
$ldap_page = ( !is_null($cfg[$id]) ) ? $cfg[$id]['ldap_page'] : '1000';
$vbs_path = ( !is_null($cfg[$id]) ) ? $cfg[$id]['vbs_path'] : '//server/share/audit.vbs';
$cmd_int = ( !is_null($cfg[$id]) ) ? $cfg[$id]['command_interact'] : '0';
$ldap_user = ( !is_null($cfg[$id]) ) ? $cfg[$id]['ldap_user'] : 'user@domain.com';
$ldap_pass = ( !is_null($cfg[$id]) ) ? $cfg[$id]['ldap_pass'] : 'password';
$audit_user = ( !is_null($cfg[$id]) ) ? $cfg[$id]['audit_user'] : 'user@domain.com';
$audit_pass = ( !is_null($cfg[$id]) ) ? $cfg[$id]['audit_pass'] : 'password';
$audit_local = ( !is_null($cfg[$id]) ) ? $cfg[$id]['local_user'] : '0';
$f_case = ( !is_null($cfg[$id]) ) ? $cfg[$id]['filter_case'] : '1';
$f_inverse = ( !is_null($cfg[$id]) ) ? $cfg[$id]['filter_inverse'] : '0';
$l_software_list = ( !is_null($cfg[$id]) ) ? $cfg[$id]['linux_software_list'] : '0';
$software_list_only = ( !is_null($cfg[$id]) ) ? $cfg[$id]['software_list_only'] : '0';
$form_action = ( !is_null($cfg[$id]) ) ? 'edit' : 'add' ;
$head =
( isset($_GET['config_id']) ) ?
"Editing Configuration: {$cfg[$id]['name']}" :
'Add a Configuration';
$ldap_connections = (is_array(GetLdapConnectionsFromDb())) ? '1' : '0';
?>