Hi peoples,
I’m developing a mikrotik interface, I’m making logins tests but I can not frame the schema of mikrotik for this.
I want know if I can use the curl for send the request of login at mikrotik.
Thanks normis,
but i don’t want use curl+php on the router. I replaced the login.html page of mikrotik for redirect to a central login, a external application, a portal captive. This application is a radius admin with a login page. This page send the login request to the mikrotik with curl.
Modify login page of the HotSpot servlet to redirect to the external authentication…
The external server can log in a HotSpot client by redirecing it back to the original HotSpot servlet login page, specifying the correct username and password…
I can make this, but I want make the second point with curl. If it is possible.
I’m loggin users using an external page with RADIUS accouting, i don’t want redirect them to the servlet (Ex. 192.168.0.X/login.) I Want to add users remotly, using CURL. Can you help me ? It’s posibble ?. I Have used the PHP API for logout.
You don’t want to use CURL because the request for login has to come from the client and not from the server, a CURL request from the server would log the server in. You can, however, redirect the user to http://router.name.or.ip/login?username=username&password=password&dst=final.redirect.url and have the client do he login, and be redirected back to the external server. The quoted string requires PAP or HTTPS enabled on the Hotspot, CHAP I am sure is possible but I have never used it.