Following is a small tip to add SEARCH or EDIT function for DMASOFTLAB Radius Manager admin page , by Syed Jahanzaib.
Ideally you should have HTML editor software, I use Ms FRONTPAGE, but if you know the basics of html, you can even use any good text editor like NOTEPAD++
in /var/www/radiusmanager folder, open the adminmain_tpl.htm file in the html editor.
(for centos , use /var/www/html/radiusmanager/)
You will see something like following.
Now search for word {CONTENT} and after this line, paste the following html code
<table border="1" width="100%"> <tr> <td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="tb-bg"> <tr> <td><form name="form2" method="post" action="admin.php?cont=list_users"> <p class="title2"><font color="#FF0000">{FNDUSR23} User Database by Syed Jahanzaib</font></p> <table border="0" align="center" cellpadding="2" cellspacing="2" width="421"> <tr> <td nowrap class="normal" width="112"><div align="left"> {FNDUSR2}: </div></td> <td class="normal"> <input name="username" type="text" class="normal" id="username" size="29" maxlength="32"></td> </tr> </table> <p align="center"> <input type="submit" name="Submit2" value="{FNDUSR23}"> </p> </form> </td> </tr> </table></td>
.
Now it will look like following after the edition.
Save this file. (If you are saving from windows, then after saving, upload the file backup to /var/www/radiusmanager/ folder [if you have Ubuntu.
[ If you have centos then copy to /var/www/html/radiusmanager/ ]
Now reload the admin page and you will see some thign like as below …
Regard’s
Syed Jahanzaib
Dear sir,
If we buy CVAS data license from pta and purchase CIR bandwidth from PTCL can we share this internet to our customers from ethernet cable and wireless? what are limitation of this type license thanks.If we share bandwidth in customers with private ips would it cause any conflict? please suggest any best solution for small size ISP.
LikeLike
Comment by ABdullah — November 14, 2014 @ 5:49 PM
Greetings, all your excellent post!
For this example you have been able to execute PHP code in file tpl of Radius Manager?
Sorry for my English
LikeLike
Comment by Wuilliams — November 16, 2014 @ 5:45 AM
As salam,
Can you add Search User name, MAC, PIN database too as it useful to search prepaid users?
LikeLike
Comment by car1 cow — November 22, 2014 @ 1:28 PM
Yes it can be edited easily. I will post update on Monday probably.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — November 22, 2014 @ 5:15 PM
Hi Syed, Will this search wild cards or will it only work for the full username?
LikeLike
Comment by Harley — January 16, 2015 @ 6:34 AM
you should give some username either partial or full in order to search it properly.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — January 17, 2015 @ 10:02 AM
Assalamualaikum..
Hi syed. Do you have any idea about how to setting download limit for ‘Simultaneous use’ per username?. In this case I have download rate for a user 1024 kbps, its ‘Simultaneous use’ is 3. if he connect in different device (3 device) its download rate will be shared each other device, but if he just logged in one device, the download rate will become 1024kbps. Thanks
LikeLike
Comment by sam — January 19, 2015 @ 2:56 PM
Assalamualaikum..
Dear sir. Do you have any idea about how to manage download limitation for ‘Simultaneous use’?. In this case, the download rate for a use is 1024. The ‘Simultaneous use’ is 3. If a user logged in 3 device, the download rate will be shared, but if just logged in one device the download rate will become 1024. Thanks
LikeLike
Comment by sam — January 19, 2015 @ 3:31 PM
@sam
It’s not supported by default. you have to make do some manual work. (ok for smaller environment)
Example:
Create queue , in target, provide 3 ip address of users (users ip must be fixed via there user properties) , then in radius, give those users from that ip pool. then the bandwidth will be shared among 3 users, and if only 1 user is online he will be bale to get all.
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — January 21, 2015 @ 9:50 AM
hello, I’m looking for a script that can do a search of all the double sessions opened by the user account. Once you find the double sessions I would close the open sessions older remained hung.
thanks in advance
Tony
LikeLike
Comment by Tony Quadarella — April 23, 2015 @ 12:54 PM
Try with
https://aacable.wordpress.com/2011/08/15/mikrotik-howto-prevent-mt-host-from-invalid-login-attempts-from-lanwan-users/
and look for
section
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — April 23, 2015 @ 1:04 PM
thanks, I’ll try but I’m not sure that’s what I wanted.
double sessions to which I refer are hung on radiusmanager and not on mikrotik and when I try to close them by radiusmanager this has no effect on the log mikrotik. are in effect sessions ghost
Tony
LikeLike
Comment by Tony Quadarella — April 23, 2015 @ 1:16 PM
is there any connectivity issues between your nas and rm? have you tried lowering the timeout value to auto close the hung session?>
LikeLike
Comment by Syed Jahanzaib / Pinochio~:) — April 23, 2015 @ 1:26 PM
I force auto disconnetion every 1 day, and sometimes sessions remain hanging
LikeLike
Comment by Tony Quadarella — April 23, 2015 @ 2:58 PM
Qualcuno ha idea di come creare uno script e un pulsante per chiudere solo le doppie sessioni su Radiusmanager lasciando aperte solo le più recenti? (su mikrotik tutto funziona bene e non ci sono doppie sessioni aperte)
LikeLike
Comment by Tony Quadarella — April 28, 2015 @ 12:11 PM
sorry, in english:
Does anyone have any idea how to create a script and a button to close only the double sessions on Radiusmanager leaving open only the most recent? (on mikrotik everything works well and there are no double open sessions)
LikeLike
Comment by Tony Quadarella — April 28, 2015 @ 12:12 PM
Hello Sir,
Can you add Search for Address also as it is useful to search customers by address?
Regards,
-bs sawant
LikeLike
Comment by bhalchandra sawant — August 10, 2015 @ 4:02 AM
Hello sir, if I wanted to include in the fields the contract ID, what would I have to add?
LikeLike
Comment by amingar — September 23, 2018 @ 3:43 AM
Hello Sir, how to included for searching for firstname or lastname..?
Thanks
LikeLike
Comment by Azizpr — February 21, 2022 @ 7:03 PM