<?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 Re: Preventing sponsor from creating guest account using certain email domains in Network Access Control</title>
    <link>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3906765#M470756</link>
    <description>&lt;P&gt;Thanks - this works although I did need to change the .personBeingVisited to .emailAddress.&lt;BR /&gt;&lt;BR /&gt;One issue however; the script works based on domain; not FQDN. Therefore it blocks domain1.com and domain1.net. I only want it to block domain1.com. I'm unable to specify the FQDN; if I do the script doesn't work. Can it be modified so that the FQDN and not just the domain can be entered?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2019 11:18:18 GMT</pubDate>
    <dc:creator>scott.stapleton</dc:creator>
    <dc:date>2019-08-12T11:18:18Z</dc:date>
    <item>
      <title>Preventing sponsor from creating guest account using certain email domains</title>
      <link>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3903106#M470744</link>
      <description>&lt;P&gt;I want to prevent sponsors from entering an email addresses for the sponsored account that contains a few domains (e.g. - @example.com).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't have luck using the first script detailed here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cisco.com/t5/security-documents/ise-sponsor-portal-create-known-accounts-page-customization/ta-p/3636414#toc-hId--1080596999" target="_blank" rel="noopener"&gt;https://community.cisco.com/t5/security-documents/ise-sponsor-portal-create-known-accounts-page-customization/ta-p/3636414#toc-hId--1080596999&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had more luck using the second lot of 3 x scripts. However they are written for the person being visited; not the email of the sponsored guest. I've modified the script so that it works on the email address field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One problem remains; it does the opposite of what it is supposed to do. It is supposed to prevent users entering corporate domain email adddresses (i.e. - black-listing certain domains) but instead it only allows the domains listed in the script (white-listing).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can the script be changed so that the domains listed in the script are prevented?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="email address script issues - 1.png" style="width: 568px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/42533i24A3564B37BE56E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="email address script issues - 1.png" alt="email address script issues - 1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="email address script issues - 2.png" style="width: 570px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/42534i8B25E33308D719D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="email address script issues - 2.png" alt="email address script issues - 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Aug 2019 13:59:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3903106#M470744</guid>
      <dc:creator>scott.stapleton</dc:creator>
      <dc:date>2019-08-05T13:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing sponsor from creating guest account using certain email domains</title>
      <link>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3903208#M470745</link>
      <description>Researching for updated script&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Aug 2019 16:17:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3903208#M470745</guid>
      <dc:creator>Jason Kunst</dc:creator>
      <dc:date>2019-08-05T16:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing sponsor from creating guest account using certain email domains</title>
      <link>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3903620#M470747</link>
      <description>&lt;P&gt;Cheers Jason.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2019 08:30:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3903620#M470747</guid>
      <dc:creator>scott.stapleton</dc:creator>
      <dc:date>2019-08-06T08:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing sponsor from creating guest account using certain email domains</title>
      <link>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3905244#M470748</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/199790"&gt;@Jason Kunst&lt;/a&gt;&amp;nbsp;Did you have any luck chasing down a script?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 13:00:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3905244#M470748</guid>
      <dc:creator>scott.stapleton</dc:creator>
      <dc:date>2019-08-08T13:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing sponsor from creating guest account using certain email domains</title>
      <link>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3905270#M470750</link>
      <description>Still working on it. I was on vacation. Should hopefully have this week&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Aug 2019 13:24:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3905270#M470750</guid>
      <dc:creator>Jason Kunst</dc:creator>
      <dc:date>2019-08-08T13:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing sponsor from creating guest account using certain email domains</title>
      <link>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3905331#M470752</link>
      <description>&lt;P&gt;Great - thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2019 14:41:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3905331#M470752</guid>
      <dc:creator>scott.stapleton</dc:creator>
      <dc:date>2019-08-08T14:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing sponsor from creating guest account using certain email domains</title>
      <link>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3906415#M470754</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;
&lt;P&gt;Please check the script in the below community page under heading "Restrict the email address entered when creating a known account".&lt;/P&gt;
&lt;H4&gt;&lt;A href="https://community.cisco.com/t5/security-documents/ise-sponsor-portal-create-known-accounts-page-customization/ta-p/3636414" target="_blank" rel="noopener"&gt;https://community.cisco.com/t5/security-documents/ise-sponsor-portal-create-known-accounts-page-customization/ta-p/3636414&lt;/A&gt;&lt;/H4&gt;</description>
      <pubDate>Sat, 10 Aug 2019 15:44:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3906415#M470754</guid>
      <dc:creator>sivsivar</dc:creator>
      <dc:date>2019-08-10T15:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing sponsor from creating guest account using certain email domains</title>
      <link>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3906765#M470756</link>
      <description>&lt;P&gt;Thanks - this works although I did need to change the .personBeingVisited to .emailAddress.&lt;BR /&gt;&lt;BR /&gt;One issue however; the script works based on domain; not FQDN. Therefore it blocks domain1.com and domain1.net. I only want it to block domain1.com. I'm unable to specify the FQDN; if I do the script doesn't work. Can it be modified so that the FQDN and not just the domain can be entered?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 11:18:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3906765#M470756</guid>
      <dc:creator>scott.stapleton</dc:creator>
      <dc:date>2019-08-12T11:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing sponsor from creating guest account using certain email domains</title>
      <link>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3907307#M470758</link>
      <description>&lt;P&gt;Hi Scott,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you please try the below script.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;script&amp;gt; 
    $(document).on("pageshow", function(){ 
        setTimeout(function() {
            $('.emailAddress').val("");
            var domains = ["domain1.com","domain2.net","domain3.com"];
 
            function validateDomain(me){
                var idx1 = me.target.value.indexOf("@");
                if(idx1&amp;gt;-1){
                    var splitStr = me.target.value.split("@");
                    if(domains.indexOf(splitStr[1])&amp;gt;-1){
                        me.target.value="";
                        alert("Enter a valid email address.");
                        return false;
                    }
                }
            }
 
            $(function () {
                $('.emailAddress').blur(function (ele) {
                    validateDomain(ele);
                });
            });
        }, 5000);
    }); 
&amp;lt;/script&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Aug 2019 08:07:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3907307#M470758</guid>
      <dc:creator>sivsivar</dc:creator>
      <dc:date>2019-08-13T08:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Preventing sponsor from creating guest account using certain email domains</title>
      <link>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3907898#M470761</link>
      <description>This worked well; thanks very much.</description>
      <pubDate>Wed, 14 Aug 2019 07:26:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-access-control/preventing-sponsor-from-creating-guest-account-using-certain/m-p/3907898#M470761</guid>
      <dc:creator>scott.stapleton</dc:creator>
      <dc:date>2019-08-14T07:26:43Z</dc:date>
    </item>
  </channel>
</rss>

