Authentication FortiAnalyzer API
Hi all,
I am trying to fetch raw logs using the FortiAnalyzer SOAP API and the searchFazLog API method, but I am unable to authenticate: I keep getting the -101 error code and "Invalid user/password or adom" error message. I have tried authenticating using local account credentials as wel as a domain account credentials, both without any success (these creds work when logging in via the web interface). I have also tried adding the HTTP basic authentication header, no game unfortunately.
We are currently using FAZ 5.2 (https://docs.fortinet.com/uploaded/files/2091/fortianalyzer_admin_520.pdf)
Here is the example of my request and the response: [link]https://pastebin.com/Tr57D2Lv[/link]
Can anybody point me in the right direction, as I'm sure I'm missing something trivial.
Cheers,
deacs
