On Tue, Jul 25, 2017 at 08:39:45AM +0100, Gergely Molnar wrote: > I'm not sure why it doesn't work. Could anyone point me to the right > direction, please. > > Note: I didn't restart any of the services between creating and testing the > credentials. > > Regards, > Gary
Hi Gary, I can't answer 100% of your question because I've coded my own OMP client. But here are some things I did while I was working on this stuff. Read this specification really closely, because it contains a great deal of details. http://docs.greenbone.net/API/OMP/omp-6.0.html I created a request like this: <create_lsc_credential> <name>unique_name</name> <comment>comment...</comment> <login>login</login> <password>password</password> </create_lsc_credential> For the sake of testing where your problem is located, you can send it raw to OpenVAS on a TCP socket, if you put this in front of it: <authenticate> <credentials> <username>openvas_username</username> <password>openvas_password</password> </credentials> </authenticate> Later on, you have to attach it to a target to use it in a scan: <create_target> ... <[ssh|smb|esxi]_lsc_credential id=ID> (if ssh): <port>PORT</port> </[ssh|smb|esxi]_lsc_credential> ... </create_target> Sincerely, Matthew. _______________________________________________ Openvas-discuss mailing list [email protected] https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
