Important note about SSL VPN compatibility for 20.0 MR1 with EoL SFOS versions and UTM9 OS. Learn more in the release notes.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sophos XG Firewall Rest-API authentication with special characters

Hi Folks,

We are trying to login Sophos XG using Rest-API (python) works fine but when using password with special character getting below error, even tried escaping string in password ``from xml.sax.saxutils import escape``



<Response>\n  <Status code="529">Input request file is Invalid</Status>\n</Response>

import requests

req_xml = '<?xml version="1.0" encoding="UTF-8" ?><Request><Login><Username>secure_user</Username><Password>secure_password</Password></Login><GET><Services></Services></GET></Request>'
requests.get("https://<host>:<port>/webconsole/APIController?reqxml=" + req_xml)



This thread was automatically locked due to age.
  • Hey Sushanth,

    I ran into the same issue when setting up some agent authentication suites. One of the vendors we work with has a warning on their setup doc saying that characters #, $, or @ don't work. It's a known issue but they don't link the issue page.

    Try using a password that doesn't include these characters, not all special characters are created equal haha.

    Cheers,

    Robin

    Sauce: docs.liongard.com/.../sophos-xg