I have setup an external hotspot login page and everything works nicely until I send login information back to mikrotik.
After the login information is sent back I keep getting redirected back to the login page. Only way to ‘re-authenticate’ agianst radius - is to release and renew IP address on client.
I have tried two methods of sending login username and password back to the mikrotik after the account has been added via the external login page.
Both the internal and external login page is designed for a post form method. The MD5 encryption is set for that.
The router will send a chap-challenge with the login page that the MD5 routine will use to encrypt the password. That is why you need to forward several of those variables to external login.php page.
Besides, the error message is always good to have. That way you know why you didn’t log in.
Im not using the php page, my external app uses ASP/VB. I wasnt sure what needed done at the router level to enable https. I will take a look at the php example and try to implement the same into my app. Any other suggestions are welcome.