log.info("Using file-authentication, "+users.keySet().size()+" users loaded.");
if( users.keySet().size() == 0 )
users.put("admin", "sercet");
auth = new SimplePasswordAuthenticator( users, groups );
} catch (Exception pe) {
pe.printStackTrace();
log.warn("Could not read password-file for user authentication!");
System.exit(-1);
}
}
}
if(auditFile == null){
log.warn("\nAn audit-file needs to be provided. Use:\n --audit-file <file>\n");
System.exit(-1);
}
if( auth == null ){
log.warn("No authentication database specified, using password based auth with user \"admin\", password \"secret\"!");
Properties users = new Properties();
users.put("admin","secret");
auth = new SimplePasswordAuthenticator(users, new Properties() );
}
skip = 1;
AuditEventReader r = null;