<?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 Cisco ASA DAP Username attribut CLI in Network Security</title>
    <link>https://community.cisco.com/t5/network-security/cisco-asa-dap-username-attribut-cli/m-p/3733753#M11609</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have just started writing scripts in expect language on my ASA. I am able to create new local users (AAA) and I can remove them, but where I am struggling is creating Dynamic Access Policy and adding a username attribute to it. Here is a part of my script:&lt;/P&gt;
&lt;P&gt;send "conf t\n"&lt;BR /&gt; expect "(config)#"&lt;BR /&gt; send "access-list [string toupper $username] extended permit ip any host $ip\n"&lt;BR /&gt; expect "(config)#"&lt;BR /&gt; send "dynamic-access-policy-record $username\n"&lt;BR /&gt; expect "(config-dynamic-access-policy-record)#"&lt;BR /&gt; send "network-acl [string toupper $username]\n"&lt;BR /&gt; expect "(config-dynamic-access-policy-record)#"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically what this does that it first creates an access list rule with desired IP address, then creates DAP record and assigns the previously created acl rule to it. Where I am struggling is how to add the aaa.cisco.username of my user, so that it will use this DAP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wasn't able to find any CLI command for it, but I can manually click it in GUI (ASDM). Is there some kind of command, that lets me add a username to DAP record? Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2020 16:24:06 GMT</pubDate>
    <dc:creator>mklofac</dc:creator>
    <dc:date>2020-02-21T16:24:06Z</dc:date>
    <item>
      <title>Cisco ASA DAP Username attribut CLI</title>
      <link>https://community.cisco.com/t5/network-security/cisco-asa-dap-username-attribut-cli/m-p/3733753#M11609</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have just started writing scripts in expect language on my ASA. I am able to create new local users (AAA) and I can remove them, but where I am struggling is creating Dynamic Access Policy and adding a username attribute to it. Here is a part of my script:&lt;/P&gt;
&lt;P&gt;send "conf t\n"&lt;BR /&gt; expect "(config)#"&lt;BR /&gt; send "access-list [string toupper $username] extended permit ip any host $ip\n"&lt;BR /&gt; expect "(config)#"&lt;BR /&gt; send "dynamic-access-policy-record $username\n"&lt;BR /&gt; expect "(config-dynamic-access-policy-record)#"&lt;BR /&gt; send "network-acl [string toupper $username]\n"&lt;BR /&gt; expect "(config-dynamic-access-policy-record)#"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Basically what this does that it first creates an access list rule with desired IP address, then creates DAP record and assigns the previously created acl rule to it. Where I am struggling is how to add the aaa.cisco.username of my user, so that it will use this DAP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wasn't able to find any CLI command for it, but I can manually click it in GUI (ASDM). Is there some kind of command, that lets me add a username to DAP record? Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 16:24:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-security/cisco-asa-dap-username-attribut-cli/m-p/3733753#M11609</guid>
      <dc:creator>mklofac</dc:creator>
      <dc:date>2020-02-21T16:24:06Z</dc:date>
    </item>
  </channel>
</rss>

