Users get the following error message when they try to log on through NetScaler Gateway:
"Login exceeds maximum allowed users".
Usually this issue appears after a firmware upgrade from NetScaler Gateway 9.x to NetScaler Gateway 10.5 and Universal Gateway License is allocated.
Complete a firmware upgrade to NetScaler Gateway 11.1 Build 49.16 or later. Citrix has added new intelligence from this release, which is able to detect an active CCU license installed on the NetScaler and automatically change the maximum number of AAA users to match the CCU license to avoid this issue. This new CCU license detection mechanism will detect the CCU license even if the license is added after the firmware upgrade.
Log on to the NetScaler Gateway. Use the following commands to change the hostname of the gateway to match the hostname specified on the license:
set ns hostName access.company.com
save config
shell
echo hostname=\"access.company.com\" > /nsconfig/rc.conf
reboot
Note: In this example access.company.com is used as the name. Also it is recommended to use the Fully Qualified Domain Name (FQDN)
Navigate to the Configuration > System > Licenses to review the license.
Verify the Maximum NetScaler Gateway Users Allowed to logon.
Navigate to NetScaler Gateway > Global Settings > Change Authentication AAA Settings.
Change the Maximum Number of Users value to match the allocated licenses.
You can also restrict the Maximum Users on the VPN Virtual Server settings too. To configure this change, complete the following steps:
Navigate to Configuration > NetScaler Gateway > Virtual Servers.
Open the required VPN Virtual Server.
Edit the Basic Settings.
Expand the Basic Settings by clicking More.
Type the Max Users allowed and save all changes.
Basic Mode signifies that the license count reported by either the Maximum ICA Users Allowed or Maximum NetScaler Gateway Users Allowed (used as a substitute when Maximum ICA Users Allowed is reported as zero) must be used.
Basic Mode means that the virtual server passes only ICA sessions, where the global settings or session profile are configured with ICA PROXY ON, and no attempt is made to use any End Point Analysis functions (for example, pre-authentication policies; session policies that query anything beyond attributes of the HTTP request). HTTP traffic to the configured Web Interface URL in global settings or the configured session profile (Web Interface or StoreFront) is allowed in this mode.
SmartAccess Mode signifies that only the license count reported by the Maximum NetScaler Gateway Users Allowed must be used. SmartAccess Mode means that the virtual server passes both ICA sessions and VPN sessions, and either of these connection types exclusively consume from this license count when using this mode.
If the NetScaler Gateway virtual server is using the license count reported by Maximum NetScaler Gateway Users Allowed, the number of allowed connections is subject to a usage governor configured within Global Authentication Settings.
If the virtual server is configured with Basic Mode, but the value reported by Maximum ICA Users Allowed is zero, the ICA session connections depend on the license count reported by Maximum NetScaler Gateway Users Allowed.
Refer to CTX202107 - Enable Basic Mode and Smart Access Mode in NetScaler Gateway for more information.
Citrix Documentation - NetScaler Licensing Overview
CTX126049 - How to License a NetScaler Gateway Appliance
CTX121062 - How to License NetScaler Appliances Using Manage Licenses Tool
CTX133147 - How to Allocate NetScaler VPX Licenses