<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Ansible Palo Alto LDAP Server Profile in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-palo-alto-ldap-server-profile/m-p/548270#M3389</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an Ansible playbook developed to automatically change the password of the account used by Palo Alto to connect to an Active Directory.&amp;nbsp; On the Palo Alto side, Integrated User-ID and an LDAP Server Profile is configured to use this password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The task to change the Integrated User-ID user works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;paloaltonetworks.panos.panos_config_element:&lt;BR /&gt;&amp;nbsp; provider: "{{ device }}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;xpath: /config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/user-id-collector/setting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;lt;wmi-password&amp;gt;MyPassword&amp;lt;/wmi-password&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the task to change the LDAP password always fails:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;paloaltonetworks.panos.panos_config_element:&lt;BR /&gt;&amp;nbsp; provider: "{{ device }}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;xpath: /config/shared/server-profile/ldap/entry[@name='ldaptest']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;'&amp;lt;bind-password&amp;gt;MyPassword&amp;lt;/bind-password&amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is :&amp;nbsp;parser.feed(text)\nxml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 6\n"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried with a vsys Server Profile, but the problem is the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence my questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I check what is causing the issue?&amp;nbsp; Where is this&amp;nbsp;line 1, column 6\n" coming from ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is Palo Alto reacting differently when trying to change the value of user-id-collector compared to an LDAP Server Profile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the sake of testing, I tried to make my modification through the API, and it works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/" target="_blank"&gt;https://&amp;lt;servername&amp;gt;/api/?type=config&amp;amp;action=set&amp;amp;xpath=%2Fconfig%2Fshared%2Fserver-profile%2Fldap%2Fentry%5B%40name%3D%27ldaptest%27%5D&amp;amp;REST_API_TOKEN=xxxxxxxxxx&amp;amp;element=%3Cbind-password%3EMyPassword%3C/bind-password%3E&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2023 14:58:29 GMT</pubDate>
    <dc:creator>brisonjf</dc:creator>
    <dc:date>2023-07-05T14:58:29Z</dc:date>
    <item>
      <title>Ansible Palo Alto LDAP Server Profile</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-palo-alto-ldap-server-profile/m-p/548270#M3389</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an Ansible playbook developed to automatically change the password of the account used by Palo Alto to connect to an Active Directory.&amp;nbsp; On the Palo Alto side, Integrated User-ID and an LDAP Server Profile is configured to use this password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The task to change the Integrated User-ID user works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;paloaltonetworks.panos.panos_config_element:&lt;BR /&gt;&amp;nbsp; provider: "{{ device }}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;xpath: /config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/user-id-collector/setting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;lt;wmi-password&amp;gt;MyPassword&amp;lt;/wmi-password&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the task to change the LDAP password always fails:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;paloaltonetworks.panos.panos_config_element:&lt;BR /&gt;&amp;nbsp; provider: "{{ device }}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;xpath: /config/shared/server-profile/ldap/entry[@name='ldaptest']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;'&amp;lt;bind-password&amp;gt;MyPassword&amp;lt;/bind-password&amp;gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is :&amp;nbsp;parser.feed(text)\nxml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 6\n"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried with a vsys Server Profile, but the problem is the same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence my questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I check what is causing the issue?&amp;nbsp; Where is this&amp;nbsp;line 1, column 6\n" coming from ?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is Palo Alto reacting differently when trying to change the value of user-id-collector compared to an LDAP Server Profile&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the sake of testing, I tried to make my modification through the API, and it works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/" target="_blank"&gt;https://&amp;lt;servername&amp;gt;/api/?type=config&amp;amp;action=set&amp;amp;xpath=%2Fconfig%2Fshared%2Fserver-profile%2Fldap%2Fentry%5B%40name%3D%27ldaptest%27%5D&amp;amp;REST_API_TOKEN=xxxxxxxxxx&amp;amp;element=%3Cbind-password%3EMyPassword%3C/bind-password%3E&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2023 14:58:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/ansible-palo-alto-ldap-server-profile/m-p/548270#M3389</guid>
      <dc:creator>brisonjf</dc:creator>
      <dc:date>2023-07-05T14:58:29Z</dc:date>
    </item>
  </channel>
</rss>

