help-gnu-radius
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gnu-radius] strange situation or my lame ? ;)


From: Max Speransky
Subject: [Help-gnu-radius] strange situation or my lame ? ;)
Date: Fri, 11 Apr 2003 14:07:09 +0300
User-agent: Mutt/1.4.1i

Hello

I got into trouble while try to use VSA attributes which comes from
database. I use postgres, and have a stored procedure which returns a set of
attributes for reply query. In works like this:

bill=# select attr, value from radius_get_attr('voip1');
       attr       |       value
------------------+--------------------
 h323-return-code | h323-return-code=0
 Service-Type     | Framed-User
(2 rows)


Also, I have a test user in users file which looks like this:

DEFAULT Auth-Type = Local,
                Password-Location = SQL,
                Simultaneous-Use = 1
                Service-Type = Framed-User,
                Framed-Protocol = PPP
mxep  Auth-Type = Local,
        Password-Location = SQL,
        Simultaneous-Use = 1
        h323-return-code = "h323-return-code=0"

And I have a gatekeeper which can use radius. The radius parsing code in
gatekeeper is terrible, but it works when I try to auth using username mxep,
and it fails when I try to use user voip1. 

But, radauth returns the same a\v pairs for this users:

radauth -v mxep
Password:
server 192.168.62.26:1812
send code 1 (RT_AUTHENTICATION_REQUEST)
      send: User-Name = mxep
      send: Password = 5678
      send: NAS-Port-Id = 0
recv code 2 (RT_AUTHENTICATION_ACK)
      recv: Vendor-Specific = V9\147\024h323-return-code=0
      recv: Service-Type = Framed-User
      recv: Framed-Protocol = PPP
expect 2
got    2
PASS

and

radauth -v voip1
Password:
server 192.168.62.26:1812
send code 1 (RT_AUTHENTICATION_REQUEST)
      send: User-Name = voip1
      send: Password = 5678
      send: NAS-Port-Id = 0
recv code 2 (RT_AUTHENTICATION_ACK)
      recv: Service-Type = Framed-User
      recv: Framed-Protocol = PPP
      recv: Vendor-Specific = V9\147\024h323-return-code=0
      recv: Vendor-Specific = V9\145\027h323-credit-mount=100
expect 2
got    2
PASS

and here is a tcpdumps for both sessions:

00000000  d4 c3 b2 a1 02 00 04 00  00 00 00 00 00 00 00 00  |................|
00000010  60 00 00 00 01 00 00 00  0c 9f 96 3e c0 c8 0b 00  |`..........>....|
00000020  5c 00 00 00 5c 00 00 00  00 d0 b7 b0 0a 28 00 30  |\...\........(.0|
00000030  f2 cb 8e f8 08 00 45 00  00 4e 00 00 40 00 3f 11  |address@hidden|
00000040  3b 53 c1 c1 c1 7c 3e f4  3e 1a 04 02 07 14 00 3a  |;S...|>.>......:|
00000050  9d 7f 01 9c 00 32 52 18  ed 3a 7b c4 15 07 0d e4  |.....2R..:{.....|
00000060  f0 46 2a 84 06 57 01 06  6d 78 65 70 02 12 a0 82  |.F*..W..mxep....|
00000070  c2 eb b2 ab c5 17 20 5e  8d 84 51 c7 9f c2 05 06  |...... ^..Q.....|
00000080  00 00 00 00 0c 9f 96 3e  cc c7 0c 00 60 00 00 00  |.......>....`...|
00000090  64 00 00 00 00 30 f2 cb  8e f8 00 d0 b7 b0 0a 28  |d....0.........(|
000000a0  08 00 45 00 00 56 00 00  40 00 40 11 3a 4b 3e f4  
|address@hidden@.:K>.|
000000b0  3e 1a c1 c1 c1 7c 07 14  04 02 00 42 00 07 02 9c  |>....|.....B....|
000000c0  00 3a 00 c0 9c a6 cc a0  7f 06 9d 10 36 17 df c7  |.:..........6...|
000000d0  b0 f4 1a 1a 00 00 00 09  67 14 68 33 32 33 2d 72  |........g.h323-r|
000000e0  65 74 75 72 6e 2d 63 6f  64 65 3d 30 06 06 00 00  |eturn-code=0....|
000000f0  00 02 07 06                                       |....|
000000f4

and for voip1

00000000  d4 c3 b2 a1 02 00 04 00  00 00 00 00 00 00 00 00  |................|
00000010  60 00 00 00 01 00 00 00  e0 9e 96 3e 65 ea 05 00  |`..........>e...|
00000020  5d 00 00 00 5d 00 00 00  00 d0 b7 b0 0a 28 00 30  |]...]........(.0|
00000030  f2 cb 8e f8 08 00 45 00  00 4f 00 00 40 00 3f 11  |address@hidden|
00000040  3b 52 c1 c1 c1 7c 3e f4  3e 1a 04 02 07 14 00 3b  |;R...|>.>......;|
00000050  4e 18 01 aa 00 33 cb 1f  13 66 59 5b 8f 22 3d f4  |N....3...fY[."=.|
00000060  6e 16 81 a0 49 6f 01 07  76 6f 69 70 31 02 12 c5  |n...Io..voip1...|
00000070  5e ff d2 fa 9c 67 91 5c  11 d0 15 c8 c2 f7 f1 05  |^....g.\........|
00000080  06 00 00 00 00 e0 9e 96  3e 80 ea 06 00 60 00 00  |........>....`..|
00000090  00 81 00 00 00 00 30 f2  cb 8e f8 00 d0 b7 b0 0a  |......0.........|
000000a0  28 08 00 45 00 00 73 00  00 40 00 40 11 3a 2e 3e  
|(address@hidden@.:.>|
000000b0  f4 3e 1a c1 c1 c1 7c 07  14 04 02 00 5f 25 aa 02  |.>....|....._%..|
000000c0  aa 00 57 fc 82 13 96 24  1b 56 3d c5 9b c1 d0 86  |..W....$.V=.....|
000000d0  08 44 b4 06 06 00 00 00  02 07 06 00 00 00 01 1a  |.D..............|
000000e0  1a 00 00 00 09 67 14 68  33 32 33 2d 72 65 74 75  |.....g.h323-retu|
000000f0  72 6e 2d 63 6f                                    |rn-co|
000000f5

So a question is, why the last line in mxep dump wrapped ? May be  there is
a place with missing string length ? 

-- 
... All opinions expressed are mine and not those of my employer.

Yours, Max                   [Msg N 2062]
-------------------------------------------
mailto: address@hidden phone: +380-44-2054455




reply via email to

[Prev in Thread] Current Thread [Next in Thread]