Community discussions

MikroTik App
 
jroy
newbie
Topic Author
Posts: 33
Joined: Fri May 28, 2004 9:41 pm
Location: Orange/LA county California
Contact:

Allow an external login page be my main login page

Fri Jul 09, 2004 9:46 am

I need you guys to add a checkbox somewhere to allow me to use an external login webpage. It should have a checkbox that says "redirect http/https login to external server?" and a form field that allows me to insert the http://some.login-site.com url.

Thanks
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26943
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Mon Jul 12, 2004 9:23 am

there is an example in the manual (there are examples for many things):

http://www.mikrotik.com/docs/ros/2.8/ip ... .main.11.3
Modify login page of the HotSpot servlet to redirect to the external authentication server. The external server should modify RADIUS database as needed

Here is an example of such a login page to put on the HotSpot router (it is redirecting to https://auth.example.com/login.php, replace with the actual address of an external authentication server):

<html>
<title>...</title>
<body>

<form name="redirect" action="https://auth.example.com/login.php" method="post">
<input type="hidden" name="mac" value="%mac%">
<input type="hidden" name="ip" value="%ip%">
<input type="hidden" name="user" value="%user%">
<input type="hidden" name="link-login" value="%link-login%">
<input type="hidden" name="link-orig" value="%link-orig%">
<input type="hidden" name="error" value="%error%">
</form>

<script language="JavaScript">
<!--
	document.redirect.submit();
//-->
</script>
</body>
</html>
etc. there is more