Menu

Vouchers - Data used/Time used & Status not updating

Help
2014-01-29
2014-04-15
  • Malcolm McLeod

    Malcolm McLeod - 2014-01-29

    I'm using the latest SVN build of RADIUSdesk.

    The voucher is working, shows as connected and reporting usage correctly in 'Activity Monitor' but when looking at that voucher in Vouchers, it shows as a status of 'New' and is showing N/A on time and data used.

    We are hoping to go live in 4 weeks so any help at this stage much appreciated.

    Thanks :)

    Malc

     
  • Malcolm McLeod

    Malcolm McLeod - 2014-01-29

    It's almost like RADIUSdesk itself cannot communicate with FreeRADIUS, which might also explain why the test client within RADIUSdesk doesn't work either.

    Hmmm, any ideas?

     
  • Dirk van der Walt

    Hi Malc,

    The voucher's table is updated periodically through the cron script. If cron is not working correct the update will not happen.

    Confirm that the /etc/cron.d/rd file exists and double check its content especially the paths.

    Then also confirm the cron daemon is running.

    If all these checks passed you can run the job 'by hand'. It is important to run this job as user www-data:

        sudo su
        su www-data
        #with Apache
        /var/www/cake2/rd_cake/Console/cake -app /var/www/cake2/rd_cake Voucher
        #with Nginx
        /usr/shar/nginx/www/cake2/rd_cake/Console/cake -app /usr/share/nginx/www/cake2/rd_cake Voucher
    

    Let us know if it still does not update. Then it may be related to the profile attached to the vouchers.

    Kind regards

     
  • Malcolm McLeod

    Malcolm McLeod - 2014-02-04

    Thanks Dirk.

    I've checked the /etc/cron.d/rd file, all looks OK, paths are correct and the cron daemon is also running.

    I ran the job manually as per your instruction, and it seemed to run OK, outputting a list of the vouchers.

    RADIUSdesk still showing them as New and N/A for usage.

    What should I look for in the profiles attached to the vouchers do you think?

    Cheers

     
  • Malcolm McLeod

    Malcolm McLeod - 2014-02-06

    Some more info, it appears that vouchers usage reflects correctly when the voucher is attached to the realm 'College' which is present by default.

    When attaching it to a realm that I have created, the symptoms persist, regardless of profile.

    Dirk, I thank you in advance!

     
  • Dirk van der Walt

    Hi Malcolm,

    Can you perhaps email me a DB dump and then I can test on this side why this is.

    dirkvanderwalt at gmail

    Cheers

     
  • Malcolm McLeod

    Malcolm McLeod - 2014-02-10

    Awesome, thanks Dirk. I've emailed you a copy of the DB.

     
  • Malcolm McLeod

    Malcolm McLeod - 2014-03-25

    Sorry to drag this up again, but I still have a problem with the RADIUS client in RADIUSdesk not authenticating with freeRADIUS.

    Testing either a permanent user or voucher, which do work, the RADIUS client just returns blank Request and Reply (in red) attributes.

    Any ideas? I'm in the process of handing this over to production environment so this would be most useful to get working.

    Thanks in advance.

     
  • Dirk van der Walt

    Hi Malcolm,

    Is it just the RADIUS Client applet in RADIUSdesk not working correct?

    If so do the following checks:

    • Ensure there is an entry for the localhost in the NAS devices (127.0.0.1)
    • If you changed the default shared secret from testing123 on localhost; be sure you also you change it in these files under rd_cake:
      • Setup/Scripts/radscenario.pl
      • Config/RadiusDesk.php

    Do these and let us know how it goes. Hopefully you can go live without any major issues.

    Regards

     
    • Mfawa Alfred Onen

      Also check if you have installed the radius utilities package which comes
      with radclient and radtest.
      On Mar 25, 2014 7:03 PM, "Dirk van der Walt" dvdwalt@users.sf.net wrote:

      Hi Malcolm,

      Is it just the RADIUS Client applet in RADIUSdesk not working correct?

      If so do the following checks:

      • Ensure there is an entry for the localhost in the NAS devices
        (127.0.0.1)
      • If you changed the default shared secret from testing123 on
        localhost; be sure you also you change it in these files under rd_cake:
        • Setup/Scripts/radscenario.pl
        • Config/RadiusDesk.php

      Do these and let us know how it goes. Hopefully you can go live without
      any major issues.

      Regards

      Vouchers - Data used/Time used & Status not updatinghttps://sourceforge.net/p/radiusdesk/discussion/help/thread/7aeb7031/?limit=25#5c28

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/radiusdesk/discussion/help/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Malcolm McLeod

    Malcolm McLeod - 2014-03-26

    Hey Dirk.

    Yes, it is just the RADIUS client applet that doesn't work.

    I've double checked and according to /Chilli/config the secret is still testing123, default. I also checked those to files you mention and they are indeed also referencing testing123.

    There is a localhost 127.0.0.1 entry in the NAS devices in RADIUSdesk.

    radtest and radclient are installed.

    radtest also works successfully, returning an Access-Accept packet.

    :S

     
    • Mfawa Alfred Onen

      Malcolm did you confirm the NAS secret for 127.0.0.1? Ensure that it is
      also testing123.

      On Wed, Mar 26, 2014 at 4:31 PM, Malcolm McLeod mmcleod82@users.sf.netwrote:

      Hey Dirk.

      Yes, it is just the RADIUS client applet that doesn't work.

      I've double checked and according to /Chilli/config the secret is still
      testing123, default. I also checked those to files you mention and they are
      indeed also referencing testing123.

      There is a localhost 127.0.0.1 entry in the NAS devices in RADIUSdesk.

      radtest and radclient are installed.

      radtest also works successfully, returning an Access-Accept packet.

      :S

      Vouchers - Data used/Time used & Status not updatinghttps://sourceforge.net/p/radiusdesk/discussion/help/thread/7aeb7031/?limit=25#f5f9

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/radiusdesk/discussion/help/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

      --
      Mfawa Alfred Onen
      M.Sc Telecoms, B.Eng Elect/Elect, CCNA, RHCE(in view)
      System Administrator
      Department of Computer Science,
      Bingham University.

      E-Mail: systemadmin@binghamuni.edu.ng
      Phone1: +234 805 944 3154
      Phone2: +234 803 079 6088

       
  • Malcolm McLeod

    Malcolm McLeod - 2014-03-27

    Mfawa, thanks for the the suggestion, yes I did check that the NAS secret for 127.0.0.1 was testing123.

    Could there be any clash or conflict of interests in the freeradius clients.conf ?

     
    • Mfawa Alfred Onen

      If I am not mistaken, clients.conf has an entry for localhost which will
      conflict with the NAS entry for localhost in RADIUSdesk. Try and comment
      the localhost entry in clients.conf and restart FreeRADIUS to see if it
      works. I am not sure why FreeRADIUS will start with the conflicting entries
      but let us know how it goes.

       
  • Dirk van der Walt

    Hi Malcolm,

    Can you do the 'firebug' test by running the RADIUS Client applet and check in Firebug what the feedback from the server is when you do the test. (Network tab in firebug)

    Perhaps that will give us more of a hint on the problem.

    Cheers

     
  • Malcolm McLeod

    Malcolm McLeod - 2014-04-01

    Hmm ok, using Firebug, I can see that when do a auth test with RADIUS Client applet, it picks up a POST test_radius.json with a reply of 200 OK. Nothing else, just that one POST.

    Is that right?

     
  • Malcolm McLeod

    Malcolm McLeod - 2014-04-01

    http://192.168.218.100/cake2/rd_cake/free_radius/test_radius.json?request_type=auth&sel_language=4_4&token=52190fff-a800-48eb-b1f2-478bc0a80167&user_id=193&user_type=permanent

    Response Headersview source
    Connection keep-alive
    Content-Encoding gzip
    Content-Type application/json; charset=UTF-8
    Date Tue, 01 Apr 2014 10:43:46 GMT
    Server nginx/1.1.19
    Transfer-Encoding chunked
    Vary Accept-Encoding
    Via 1.1 RADIUSdesk-Beta4-1 (squid/3.4.4)
    X-Cache MISS from RADIUSdesk-Beta4-1
    X-Powered-By PHP/5.3.10-1ubuntu3.10

    Request Headersview source
    Accept text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
    Accept-Encoding gzip, deflate
    Accept-Language en-US,en;q=0.5
    Cache-Control no-cache
    Connection keep-alive
    Content-Length 109
    Content-Type application/x-www-form-urlencoded; charset=UTF-8
    Cookie CAKEPHP=rfnkbln7pgj3s69jav0oil8un5; Token=52190fff-a800-48eb-b1f2-478bc0a80167
    Host 192.168.218.100
    Pragma no-cache
    Referer http://192.168.218.100/rd/
    User-Agent Mozilla/5.0 (Windows NT 6.1; rv:28.0) Gecko/20100101 Firefox/28.0
    X-Requested-With XMLHttpRequest

     

    Last edit: Malcolm McLeod 2014-04-01
  • Malcolm McLeod

    Malcolm McLeod - 2014-04-01

    Ok, I thought for sanity, I'd just check that the test_radius.json is where it should be. In actual fact, it doesn't exist anywhere, the free_radius folder doesnt even exist.

    What could have possibly gone wrong here and what's the best way of rectifying this do you think?

    THanks guys.

     
  • Freddy FALANGA

    Freddy FALANGA - 2014-04-15

    Hello guys,

    I've installed Radiusdesk for a friend (downloading svn 730 --the latest one) but I'm experiencing the same problem (no information available/updated concerning usage of voucher or permanent users). I applied all solutions above but nothing change. What can I do now to fix this problem?

    @Mfawa, localhost credential (127.0.0.1, testing123) are commented. radiusd -X is running properly but nothing change when radiusd is started.

    @Dirk, all in rd cron are good...

    I thank you in advance to help us to solve this problem...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.