On Wed, 31 Jul 2002 19:04:46 +0300
Peter Nixon <[EMAIL PROTECTED]> wrote:

> On Wed, 31 Jul 2002 06:37:16 -0700 (PDT)
> soybean tofu <[EMAIL PROTECTED]> wrote:
> 
> > There is a bug in the code, I learned about it reading
> > some old emails. It's been there for a while, but it's
> > so small and simple that I just make the change
> > manually when I grab a new version.
> > 
> > Here is the patch. Just read it and apply the change
> > manually.
> > 
> > --- rlm_preprocess.c.orig       Fri Jul 19 09:34:06
> > 2002
> > +++ rlm_preprocess.c    Sat Jul 27 21:40:38 2002
> > @@ -123,7 +123,7 @@
> > 
> >                 if (vendorpec != 9) continue; /* not a
> > Cisco VSA, continue */
> > 
> > -               if ((vp->attribute & 0xffff) != 1)
> > continue; /* Cisco-AVPair */
> > +               if ((vp->attribute & 0xffff) == 1)
> > continue; /* Cisco-AVPair */
> > 
> >                 /*
> >                  *  We strip out the duplicity from
> > the value field,
> > 
> --snip--
> 
> Thanks. That did the trick. Has this been fixed in 0.7?

I notice that all the "cisco" options are quoted still even with the
cisco_hack on. Is this a bug or a feature? :-)


Wed Jul 31 19:05:22 2002
        NAS-IP-Address = x.x.x.x
        Cisco-NAS-Port = "ISDN 0:D:31"
        NAS-Port-Type = Async
        User-Name = "name"
        Called-Station-Id = "333333333333"
        Calling-Station-Id = "ID"
        Acct-Status-Type = Stop
        Service-Type = Login-User
        h323-gw-id = "gw1-5300."
        Cisco-AVPair = "h323-incoming-conf-id=35C4E2EC A3D511D6 945C906D
CBD699C4"
        h323-call-origin = "originate"
        h323-call-type = "Telephony"
        h323-setup-time = ".17:28:07.811 BST Sun Mar 7 1993"
        h323-connect-time = ".17:28:21.984 BST Sun Mar 7 1993"
        h323-disconnect-time = ".17:39:42.104 BST Sun Mar 7 1993"
        h323-disconnect-cause = "10"
        h323-voice-quality = "0"
        h323-conf-id = "35C4E2EC A3D511D6 945C906D CBD699C4"
        Acct-Session-Id = "000027BA"
        Acct-Input-Octets = 315791
        Acct-Output-Octets = 352675
        Acct-Input-Packets = 16087
        Acct-Output-Packets = 9082
        Acct-Session-Time = 680
        Cisco-AVPair = "subscriber=Unknown"
        Cisco-AVPair = "tariff-type=Unknown"
        Cisco-AVPair = "pre-bytes-in=0"
        Cisco-AVPair = "pre-bytes-out=0"
        Cisco-AVPair = "pre-paks-in=0"
        Cisco-AVPair = "pre-paks-out=0"
        Cisco-AVPair = "nas-rx-speed=0"
        Cisco-AVPair = "nas-tx-speed=0"
        Acct-Delay-Time = 0
        Client-IP-Address = 212.50.53.200
        SQL-User-Name = "name"
        Timestamp = 1028131522


-- 

Peter Nixon
mailto:[EMAIL PROTECTED]
Phone: +90 544 44 333 44
http://www.peternixon.net/
PGP Key: http://www.peternixon.net/public.asc

"They that can give up essential liberty to obtain a little
 temporary safety, deserve neither liberty nor safety."
                                  -Benjamin Franklin

Attachment: msg07488/pgp00000.pgp
Description: PGP signature

Reply via email to