Я тупой!! В упор не могу наити описание атрибутов... уже все подставлял... а оно материться... вот все исходя из чего я конструирую скрипт
Вот сам скрипт, на данный момент и вывод радиуса
Код: Выделить всё
#!/bin/sh
server=127.0.0.1
secrets=radsecret
name=user
#chal=0xbb1e68823fad0314d2c53e4f4fbd0554
#resp=0x01000a6d1f18afebc721e1462b8bdfa59d6d00000000000000009f7c32b625c244009c347a346c746bf43df3488b1ef9ad40
Acct_Status_Type=start
(
echo "User-Name = \"$name\""
echo "MS-CHAP-Challenge = \"$chal\""
echo "MS-CHAP2-Response =\"$resp\""
echo "Service-Type = \"Framed-User\""
) | radclient ${server} acct ${secrets}
Радиус -
Ready to process requests.
rad_recv: Accounting-Request packet from host 127.0.0.1:54690, id=173, length=32
User-Name = "user"
Service-Type = Framed-User
Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 0
modcall[preacct]: module "preprocess" returns noop for request 0
rlm_acct_unique: WARNING: Attribute NAS-Port was not found in request, unique ID MAY be inconsistent
rlm_acct_unique: WARNING: Attribute Acct-Session-Id was not found in request, unique ID MAY be inconsistent
rlm_acct_unique: Hashing ',Client-IP-Address = 127.0.0.1,NAS-IP-Address = 127.0.0.1,,User-Name = "user"'
rlm_acct_unique: Acct-Unique-Session-ID = "d682e081eb40aaed".
modcall[preacct]: module "acct_unique" returns ok for request 0
modcall: leaving group preacct (returns ok) for request 0
Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 0
Invalid Accounting Packet
modcall[accounting]: module "perl" returns invalid for request 0
modcall: leaving group accounting (returns invalid) for request 0
Finished request 0
Going to the next request
--- Walking the entire request list ---
Cleaning up request 0 ID 173 with timestamp 493fe4de
Nothing to do. Sleeping until we see a request.
Пытался я сунуть в скрипт и эти "NAS_Port","Acct-Session-Id" результат не изменился
Помоги правильно сконструировать скрипт

я уже действительно смотрю в книгу а вижу фи....
я уже включал полную зборку мпд+радиус, смотрел что они дрг-другу передают, тоесть радиус, потом пихал это в конфиг - результат "зеро"
Все что пишет радиус в "сборке"
rad_recv: Access-Request packet from host 127.0.0.1:53949, id=181, length=194
NAS-Identifier = "kvhoit02.delta.internal"
NAS-IP-Address = 127.0.0.1
Message-Authenticator = 0x54da6f669916df6536cf2b4a464ba5f2
NAS-Port = 1
NAS-Port-Type = Virtual
Service-Type = Framed-User
Framed-Protocol = PPP
Calling-Station-Id = "10.0.16.130"
User-Name = "user"
MS-CHAP-Challenge = 0xbb1e6834374343ef32b14c41dcd0f723
MS-CHAP2-Response = 0x0100f50485cb9672184157e981386ea605b30000000000000000df695bec76bccf9f1c184b494f1fd7261d19671ff9a719b0
Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 1
modcall[authorize]: module "preprocess" returns ok for request 1
Exec-Program output: User-Password == "1234567890"
Exec-Program-Wait: value-pairs: User-Password == "1234567890"
Exec-Program: returned: 0
modcall[authorize]: module "pre_auth" returns ok for request 1
rlm_mschap: Found MS-CHAP attributes. Setting 'Auth-Type = mschap'
modcall[authorize]: module "mschap" returns ok for request 1
Using perl at 0x2040c136
User-Password == "1234567890"rlm_perl: Added pair Session-Timeout = 7400
rlm_perl: Added pair MS-MPPE-Encryption-Types = 0x00000006
rlm_perl: Added pair Framed-IP-Address = 10.0.16.130
rlm_perl: Added pair Framed-IP-Netmask = 255.255.255.0
rlm_perl: Added pair MS-CHAP2-SUCCESS = 0x01533d42323944343532463130413536383043364334373346373035453032324439383339443145344345
rlm_perl: Added pair MS-MPPE-Encryption-Policy = 0x00000001
rlm_perl: Added pair User-Password = 1234567890
rlm_perl: Added pair Auth-Type = MS-CHAP
modcall[authorize]: module "perl" returns ok for request 1
modcall: leaving group authorize (returns ok) for request 1
rad_check_password: Found Auth-Type MS-CHAP
auth: type "MS-CHAP"
Processing the authenticate section of radiusd.conf
modcall: entering group MS-CHAP for request 1
rlm_mschap: Told to do MS-CHAPv2 for user with NT-Password
modcall[authenticate]: module "mschap" returns ok for request 1
modcall: leaving group MS-CHAP (returns ok) for request 1
Login OK: [user/<no User-Password attribute>] (from client 127.0.0.1 port 1 cli 10.0.16.130)
Sending Access-Accept of id 181 to 127.0.0.1 port 53949
Session-Timeout = 7400
MS-MPPE-Encryption-Types = 0x00000006
Framed-IP-Address = 10.0.16.130
Framed-IP-Netmask = 255.255.255.0
MS-CHAP2-Success = 0x01533d42323944343532463130413536383043364334373346373035453032324439383339443145344345
MS-MPPE-Encryption-Policy = 0x00000001
MS-CHAP2-Success = 0x01533d42323944343532463130413536383043364334373346373035453032324439383339443145344345
Finished request 1
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
rad_recv: Accounting-Request packet from host 127.0.0.1:62853, id=34, length=150
NAS-Identifier = "kvhoit02.delta.internal"
NAS-IP-Address = 127.0.0.1
NAS-Port = 1
NAS-Port-Type = Virtual
Service-Type = Framed-User
Framed-Protocol = PPP
Calling-Station-Id = "10.0.16.130"
Acct-Status-Type = Start
Framed-IP-Address = 10.0.16.130
Framed-IP-Netmask = 255.255.255.0
User-Name = "user"
Acct-Session-Id = "8924505-L-1"
Acct-Multi-Session-Id = "8924505-B-1"
Acct-Link-Count = 1
Acct-Authentic = RADIUS
Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 2
modcall[preacct]: module "preprocess" returns noop for request 2
rlm_acct_unique: Hashing 'NAS-Port = 1,Client-IP-Address = 127.0.0.1,NAS-IP-Address = 127.0.0.1,Acct-Session-Id = "8924505-L-1",User-Name = "user"'
rlm_acct_unique: Acct-Unique-Session-ID = "4d469da63775c2d5".
modcall[preacct]: module "acct_unique" returns ok for request 2
modcall: leaving group preacct (returns ok) for request 2
Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 2
Using perl at 0x2040c136
modcall[accounting]: module "perl" returns ok for request 2
modcall: leaving group accounting (returns ok) for request 2
Sending Accounting-Response of id 34 to 127.0.0.1 port 62853
Finished request 2
Going to the next request
Cleaning up request 2 ID 34 with timestamp 493fe659
Waking up in 6 seconds...
rad_recv: Accounting-Request packet from host 127.0.0.1:59750, id=114, length=198
NAS-Identifier = "kvhoit02.delta.internal"
NAS-IP-Address = 127.0.0.1
NAS-Port = 1
NAS-Port-Type = Virtual
Service-Type = Framed-User
Framed-Protocol = PPP
Calling-Station-Id = "10.0.16.130"
Framed-IP-Address = 10.0.16.130
Framed-IP-Netmask = 255.255.255.0
User-Name = "user"
Acct-Session-Id = "8924505-L-1"
Acct-Multi-Session-Id = "8924505-B-1"
Acct-Link-Count = 1
Acct-Authentic = RADIUS
Acct-Status-Type = Stop
Acct-Terminate-Cause = Service-Unavailable
Acct-Session-Time = 2
Acct-Input-Octets = 150
Acct-Input-Packets = 10
Acct-Output-Octets = 162
Acct-Output-Packets = 11
Acct-Input-Gigawords = 0
Acct-Output-Gigawords = 0
Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 3
modcall[preacct]: module "preprocess" returns noop for request 3
rlm_acct_unique: Hashing 'NAS-Port = 1,Client-IP-Address = 127.0.0.1,NAS-IP-Address = 127.0.0.1,Acct-Session-Id = "8924505-L-1",User-Name = "user"'
rlm_acct_unique: Acct-Unique-Session-ID = "4d469da63775c2d5".
modcall[preacct]: module "acct_unique" returns ok for request 3
modcall: leaving group preacct (returns ok) for request 3
Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 3
Using perl at 0x2040c136
modcall[accounting]: module "perl" returns ok for request 3
modcall: leaving group accounting (returns ok) for request 3
Sending Accounting-Response of id 114 to 127.0.0.1 port 59750
Finished request 3
Going to the next request
Cleaning up request 3 ID 114 with timestamp 493fe659
Waking up in 6 seconds...
--- Walking the entire request list ---
Cleaning up request 1 ID 181 with timestamp 493fe659
Nothing to do. Sleeping until we see a request.