Issues with sessions

Stelio Gouveia stelio at skyrove.com
Thu Jun 8 11:47:45 CEST 2006


Using freeradius 1.0.2 with rlm_sql_postgres, all my users are defined
in my DB and all my accounting is stored in this manner too.
I have simultaneous-use set to 1.
Only 1 user can login at a time!

Let me present my case and then i will detail what i think is happening
on my radius server.
Firstly, my users have a problem when trying to login to my radius.
Sometimes it lets then in first time, othertimes they need to try
multiple times.
So i tested the authentication by using the radtest tool locally with
valid users on my system.
Radius would respond with the following pattern:
Access-Accept, Access-Accept, Access-Reject. (There has been some
variations, but generally this pattern occured)

When i do get a reject, radius spits out the "You are already logged in
message". But i do notice that the reject radius reply from a radtest
gives me a strange looking password

[admin at rad ~]$ radtest trala at trala.com test localhost 1812 secret
Sending Access-Request of id 202 to 127.0.0.1:1812
        User-Name = "trala at trala.com"
        User-Password = "test"
        NAS-IP-Address = test.radman.com
        NAS-Port = 1812
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=202, length=20
[admin at rad ~]$ radtest trala at trala.com test localhost 1812 secret
Sending Access-Request of id 206 to 127.0.0.1:1812
        User-Name = "trala at trala.com"
        User-Password = "test"
        NAS-IP-Address = test.radman.com
        NAS-Port = 1812
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=206, length=20
[admin at rad ~]$ radtest trala at trala.com test localhost 1812 secret
Sending Access-Request of id 210 to 127.0.0.1:1812
        User-Name = "trala at trala.com"
        User-Password = "test"
        NAS-IP-Address = test.radman.com
        NAS-Port = 1812
Re-sending Access-Request of id 210 to 127.0.0.1:1812
        User-Name = "trala at trala.com"
        User-Password = "\205t\2673VxL\214\264\255\212Lmu\214\337"
        NAS-IP-Address = test.radman.com
        NAS-Port = 1812
rad_recv: Access-Reject packet from host 127.0.0.1:1812, id=210, length=20

Heres my

#  Session database, used for checking Simultaneous-Use. Either the radutmp
#  or rlm_sql module can handle this.
#  The rlm_sql module is *much* faster
session {
    #radutmp
    #
    #  See "Simultaneous Use Checking Querie" in sql.conf
    sql
}

*My system works for a bit if i uncomment radutmp. about 30 mins if i
have 20+- users active*

Alan if you out there please give me some pointers!
Regards,
the aspiring radman.



More information about the Freeradius-Users mailing list