autoNetworkAuth is used for automated network authentication in China university, under the environment of which clients have to login to connect to the Internet via web browser.
Now, autoNetworkAuth implements the following functions in UESTC:
- Use
seleniumto automatically login to the school network. - Use
pingto monitor the network status, and callStep 1to get reconnected if got offline by the network server. - Create a linux's
systemdservice to work automatically.
One should add its own account information in the config.json file.
To register the systemd service, the following should be cared:
- This project should be placed at
/usr/localand owned byroot. - Make a softlink for
autoNetworkAuth.servicebysudo ln -s ./autoNetworkAuth.service /etc/systemd/system/autoNetworkAuth.service. - Run
sudo systemctl daemon-reload. - To start this service manually, use
sudo systemctl start autoNetworkAuth. - To start this service automatically at every time the server boots, use
sudo systemctl enable autoNetworkAuth.