Limit Accounts by MAC Address
In some scenarios it may be beneficial to limit the number of devices that are allowed to be associated with an account. By default additional connections will simply disconnect the previous connections. The WiDirect allows the administrator to restrict an account to a certain number of MAC addresses. If the user attempts to login with additional devices then the login attempt will be denied. To edit this setting first run this command:
sudo emacs /root/AWICP/www/portal/login/index.php
In that file look for the option “$restrictMAC = 0”. Set that value to be the number of MAC addresses the user is allowed to login with. Also be sure the "$autoAddMac" variable is set to 1 so that the WiDirect keeps track of the MAC addresses for the account.