Automatic Login on Multiple Devices

From WiDirect
Jump to: navigation, search

Normally MAC based authentication only works for the last device to login on account. If the user logs in with a second computer, then only the second computer will automatically login the next time. An administrator can manually add a MAC address to be automatically authenticated on the user details page. There is a section at the user details page to add an extra MAC address to an account for automatic login. The WiDirect can also be customized to automatically add MAC addresses to an account when a user connects. Run this command on the WiDirect to change that setting:

	sudo emacs /root/AWICP/www/portal/login/index.php

Look for a line that says “$autoAddMac = 0;” and change it to read “$autoAddMac = 1;”. The WiDirect can be configured to automatically delete extra MAC addresses when an account expires. To have the WiDirect automatically delete the MAC addresses of expiring accounts first run this command:

	sudo emacs /root/AWICP/bin/awicp_manager.pl

In that file look for a line that contains “$deleteExtraMacsOnExpire = 0” and change the 0 to a 1. Then run this command to restart the service:

	sudo /sbin/service awicp_manager restart

To automatically delete the MAC addresses when an administrator expires an account, run this command:

	sudo emacs /root/AWICP/www/portal/admin/user.php

In that file look for the same “$deleteExtraMacsOnExpire = 0” part and change the 0 to a 1.