Re: simultaneous checking

2009-07-22 Thread Ivan Kalik
> On Wed, 2009-07-22 at 10:27 +0100, Ivan Kalik wrote: >> PS. I must appologize, it was not my intention to imply that if your >> equipment generates large ids admin is insane by default. My comments >> were >> related to that specific case where admin shot himself in the foot by >> appending text

Re: simultaneous checking

2009-07-22 Thread Ivan Kalik
> Ya, I'm using mysql. I'm not familiar enough with mysql to know if a > "text" field is slower/faster/no different to varchar() field. Anyone > here on the list know any better? There will be no significant impact on performance. There might be marginal advantage with varchar due to the way tex

Re: simultaneous checking

2009-07-22 Thread Kanwar Ranbir Sandhu
On Wed, 2009-07-22 at 10:27 +0100, Ivan Kalik wrote: > PS. I must appologize, it was not my intention to imply that if your > equipment generates large ids admin is insane by default. My comments were > related to that specific case where admin shot himself in the foot by > appending text to basic

Re: simultaneous checking

2009-07-22 Thread Kanwar Ranbir Sandhu
On Wed, 2009-07-22 at 11:20 +0100, Phil Mayers wrote: > This may be true for other DBs, for it's not for postgres: > > http://www.nabble.com/Re%3A-Disadvantages-to-using-"text"-p17109220.html > > I'm only suggesting changing the postgres schema. I realise the OP may > not have been using postgre

Re: simultaneous checking

2009-07-22 Thread Phil Mayers
Ivan Kalik wrote: Nothing in freeradius. But on the database side? Radacct is a big chunk as it is. Most people keep at least 3 months worth of data and than can be quite a few GB. There is significant impact on database performance at the time of daily backup. Proposed changes would increase ra

Re: simultaneous checking

2009-07-22 Thread Ivan Kalik
> Phil Mayers wrote: >> I must admit, I'd assumed someone had a specific reason for the field >> sizes being what they are, and didn't want to pre-empt them. But if >> there isn't such a reason, I'll knock one up. > > Nothing depends on the fields being specific sizes. If it's possible > to make

Re: simultaneous checking

2009-07-22 Thread Alan DeKok
Phil Mayers wrote: > I must admit, I'd assumed someone had a specific reason for the field > sizes being what they are, and didn't want to pre-empt them. But if > there isn't such a reason, I'll knock one up. Nothing depends on the fields being specific sizes. If it's possible to make them "lar

Re: simultaneous checking

2009-07-22 Thread Phil Mayers
On Wed, Jul 22, 2009 at 02:23:30AM +0100, Alan DeKok wrote: Phil Mayers wrote: After the 2nd outage this caused (we rely on near realtime accounting) I looked into it, and found that postgresql suffers no performance benefit from using "varchar(n)" and I simply altered all the "varchar" fields t

Re: simultaneous checking

2009-07-21 Thread Alan DeKok
Phil Mayers wrote: > After the 2nd outage this caused (we rely on near realtime accounting) I > looked into it, and found that postgresql suffers no performance benefit > from using "varchar(n)" and I simply altered all the "varchar" fields to > type "text". We have since experienced no such proble

Re: simultaneous checking

2009-07-21 Thread Phil Mayers
On Tue, Jul 21, 2009 at 11:30:31PM +0100, Ivan Kalik wrote: HA! I figured it out: the acctsessionid field was truncating the Acct-Session-Id attribute being received from the NAS. I bumped the field up to 100 characters, and viola, the default SQL queries in dialup.conf started working. Yeah!

Re: simultaneous checking

2009-07-21 Thread Kanwar Ranbir Sandhu
On Tue, 2009-07-21 at 23:30 +0100, Ivan Kalik wrote: > > HA! I figured it out: the acctsessionid field was truncating the > > Acct-Session-Id attribute being received from the NAS. I bumped the > > field up to 100 characters, and viola, the default SQL queries in > > dialup.conf started working.

Re: simultaneous checking

2009-07-21 Thread Ivan Kalik
> HA! I figured it out: the acctsessionid field was truncating the > Acct-Session-Id attribute being received from the NAS. I bumped the > field up to 100 characters, and viola, the default SQL queries in > dialup.conf started working. Yeah! > > We actually had the same problem with the callings

Re: simultaneous checking

2009-07-21 Thread Kanwar Ranbir Sandhu
On Tue, 2009-07-21 at 15:58 -0400, Kanwar Ranbir Sandhu wrote: > On Tue, 2009-07-21 at 15:00 -0400, Kanwar Ranbir Sandhu wrote: > > The DB shows the exact same Acct-Session-Id that is in the packets > > themselves. Below are the three rows that get entered into radacct when > > the AAA test is run

Re: simultaneous checking

2009-07-21 Thread Kanwar Ranbir Sandhu
On Tue, 2009-07-21 at 15:00 -0400, Kanwar Ranbir Sandhu wrote: > The DB shows the exact same Acct-Session-Id that is in the packets > themselves. Below are the three rows that get entered into radacct when > the AAA test is run from the E120. Is it the "=" in the > callingstationid field that's th

Re: simultaneous checking

2009-07-21 Thread Kanwar Ranbir Sandhu
On Tue, 2009-07-21 at 19:13 +0100, Ivan Kalik wrote: > > So, why are there multiple records for the same session being created in > > radacct at all? We obviously have something misconfigured, but I can't > > put my finger on it. > > Hard to say. Are those queries running on the server or has you

Re: simultaneous checking

2009-07-21 Thread Ivan Kalik
> I finally found out why the changes were made. When doing a "AAA" test > from the E120 with the default dialup.conf and with simultaneous > checking enabled, radacct would show three entries for that same > session. Two would show the acctstoptime as NULL, and the third

Re: simultaneous checking

2009-07-21 Thread Kanwar Ranbir Sandhu
hy the changes were made. When doing a "AAA" test from the E120 with the default dialup.conf and with simultaneous checking enabled, radacct would show three entries for that same session. Two would show the acctstoptime as NULL, and the third entry would show the actual acct stop time.

Re: simultaneous checking

2009-07-20 Thread Kanwar Ranbir Sandhu
On Tue, 2009-07-21 at 01:17 +0430, Marinko Tarlac wrote: > you need to search inside radacct table to see is there any session > with acctstoptime = NULL for fr 2.x or acctstoptime= 0 for 1.x version > for spec. user I'm by no means a freeradius expert, but that was what I thought as well. T

Re: simultaneous checking

2009-07-20 Thread Kanwar Ranbir Sandhu
On Mon, 2009-07-20 at 22:54 +0100, Ivan Kalik wrote: > I can't see anything good coming from those changes - only bad. I would be > very surprised if that simultaneous use check works properly. It checks > local IP pool and not something related to the NAS. That's what I was thinking. Thanks for

Re: simultaneous checking

2009-07-20 Thread Marinko Tarlac
you need to search inside radacct table to see is there any session with acctstoptime = NULL for fr 2.x or acctstoptime= 0 for 1.x version for spec. user Ivan Kalik wrote: During testing (we're not live yet), a co-worker made some changes to dialup.conf to get simultaneous checking wo

Re: simultaneous checking

2009-07-20 Thread Ivan Kalik
> During testing (we're not live yet), a co-worker made some changes to > dialup.conf to get simultaneous checking working with our NAS (Juniper > E-120, I believe). I haven't been updated on whether or not the > simultaneous check actually works (just got back from vacati

simultaneous checking

2009-07-20 Thread Kanwar Ranbir Sandhu
Hi All, During testing (we're not live yet), a co-worker made some changes to dialup.conf to get simultaneous checking working with our NAS (Juniper E-120, I believe). I haven't been updated on whether or not the simultaneous check actually works (just got back from vacation), but I