Hi All
I have a question about the xml interface to omp, I am trying to modify a
configuration, that I just copied, so that I can set the vhost options, and
the omp modify config xml returns a status 200.
The xml block that contains the vhost options looks like this:
<preference>
<nvt oid="">
<name></name>
</nvt>
<name>vhosts</name>
<type></type>
<value></value>
</preference>
<preference>
<nvt oid="">
<name></name>
</nvt>
<name>vhosts_ip</name>
<type></type>
<value></value>
</preference>
If I try to parse that block to the omp, it complains about the empty parts
of it, so I parse the following block instead:
<modify_config config_id="[THE CONFIGURATION ID]">
<preference>
<name>vhosts</name>
<value>[THE TRARGET HOST NAME]</value>
</preference>
<preference>
<name>vhosts_ip</name>
<value>[THE TARGET HOST IP ADDRESS]</value>
</preference>
</modify_config>
This with valid data returns status code 200, but the config is not
modified, so the data I just set is lost.
I have been trying to work with openvas.omplib-0.1.0 (installation thru
easy_install fails with "module object has no attribute warning"), but for
some reason this will not install on either Windows or CentOS 6.x 64bit.
And since I am not much of a Python programmer I am not sure how to fix
this, not that I think it will solve the above problem.
Best regards
Tom Stage
_______________________________________________
Openvas-discuss mailing list
[email protected]
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss