>Send a request with Digest-Attributes.<br><br>hi Kalik,<br> I've tried to called using Digest-Attributes in my perl code like this<br> <br> $dUserName= $RAD_REQUEST{'Digest-User-Name'};<br>
$dRealm= $RAD_REQUEST{'Digest-Realm'};<br> $dMethod = $RAD_REQUEST{'Digest-Method'}; <br> $dUri= $RAD_REQUEST{'Digest-URI'};<br> $dNonce=$RAD_REQUEST{'Digest-Nonce'};<br>
$dResponse=$RAD_REQUEST{'Digest-Response'};<br><br>but still it doesn't get the values..except 'Digest-Response' <br>May it be the problem from the radius client, or is it the problem in my perl code. <br>
I can't rectify the problem, I am confusing where should I emphasized<br><br>Here is the new output when it is run in radiusd -X after rejecting da user.<br><br>rad_recv: Access-Request packet from host <a href="http://192.168.1.227">192.168.1.227</a> port 32847, id=182, length=252<br>
User-Name = "<a href="mailto:john@192.168.1.227">john@192.168.1.227</a>"<br> X-Ascend-Netware-timeout = 1785686126<br> X-Ascend-Send-Secret = 0x3139322e3136382e312e323237<br> X-Ascend-Receive-Secret = 0x34383161663338653534346236663063383862343865393864346639313036626264363230306536<br>
X-Ascend-IP-Pool-Definition = "sip:<a href="http://192.168.1.227">192.168.1.227</a>"<br> X-Ascend-IPX-Peer-Mode = 0x5245474953544552<br> Digest-Response = "1e926599fa0777bef89010421e3e1c41"<br>
Service-Type = IAPP-Register<br> X-Ascend-PW-Lifetime = 1785686126<br> Cisco-AVPair = "call-id=<a href="mailto:25b5a186aad84c2fa769946f1b1c7110@192.168.1.193">25b5a186aad84c2fa769946f1b1c7110@192.168.1.193</a>"<br>
NAS-IP-Address = <a href="http://127.0.0.1">127.0.0.1</a><br> NAS-Port = 5060<br>+- entering group authorize<br>++[preprocess] returns ok<br>perl_pool: item 0x9ede730 asigned new request. Handled so far: 1<br>
found interpetator at address 0x9ede730<br>rlm_perl: ###############################################################<br>rlm_perl: RAD_REQUEST: Digest-Response = 1e926599fa0777bef89010421e3e1c41<br>rlm_perl: RAD_REQUEST: X-Ascend-Receive-Secret = 0x34383161663338653534346236663063383862343865393864346639313036626264363230306536<br>
rlm_perl: RAD_REQUEST: X-Ascend-IPX-Peer-Mode = 0x5245474953544552<br>rlm_perl: RAD_REQUEST: Service-Type = IAPP-Register<br>rlm_perl: RAD_REQUEST: X-Ascend-Netware-timeout = 1785686126<br>rlm_perl: RAD_REQUEST: Cisco-AVPair = call-id=<a href="mailto:25b5a186aad84c2fa769946f1b1c7110@192.168.1.193">25b5a186aad84c2fa769946f1b1c7110@192.168.1.193</a><br>
rlm_perl: RAD_REQUEST: X-Ascend-IP-Pool-Definition = sip:<a href="http://192.168.1.227">192.168.1.227</a><br>rlm_perl: RAD_REQUEST: User-Name = <a href="mailto:john@192.168.1.227">john@192.168.1.227</a><br>rlm_perl: RAD_REQUEST: X-Ascend-PW-Lifetime = 1785686126<br>
rlm_perl: RAD_REQUEST: NAS-Port = 5060<br>rlm_perl: RAD_REQUEST: NAS-IP-Address = <a href="http://127.0.0.1">127.0.0.1</a><br>rlm_perl: RAD_REQUEST: X-Ascend-Send-Secret = 0x3139322e3136382e312e323237<br>rlm_perl: ###############################################################<br>
rlm_perl: Added pair Digest-Response = 1e926599fa0777bef89010421e3e1c41<br>rlm_perl: Added pair X-Ascend-Receive-Secret = 0x34383161663338653534346236663063383862343865393864346639313036626264363230306536<br>rlm_perl: Added pair X-Ascend-IPX-Peer-Mode = 0x5245474953544552<br>
rlm_perl: Added pair Service-Type = IAPP-Register<br>rlm_perl: Added pair X-Ascend-Netware-timeout = 1785686126<br>rlm_perl: Added pair Cisco-AVPair = call-id=<a href="mailto:25b5a186aad84c2fa769946f1b1c7110@192.168.1.193">25b5a186aad84c2fa769946f1b1c7110@192.168.1.193</a><br>
rlm_perl: Added pair X-Ascend-IP-Pool-Definition = sip:<a href="http://192.168.1.227">192.168.1.227</a><br>rlm_perl: Added pair User-Name = <a href="mailto:john@192.168.1.227">john@192.168.1.227</a><br>rlm_perl: Added pair X-Ascend-PW-Lifetime = 1785686126<br>
rlm_perl: Added pair NAS-Port = 5060<br>rlm_perl: Added pair NAS-IP-Address = <a href="http://127.0.0.1">127.0.0.1</a><br>rlm_perl: Added pair X-Ascend-Send-Secret = 0x3139322e3136382e312e323237<br>rlm_perl: Added pair Reply-Message = Incorrect Password<br>
perl_pool total/active/spare [32/0/32]<br>Unreserve perl at address 0x9ede730<br>++[perl] returns reject<br>Invalid user: [<a href="http://john@192.168.1.227/">john@192.168.1.227/</a><no User-Password attribute>] (from client <a href="http://192.168.1.227">192.168.1.227</a> port 5060)<br>
Found Post-Auth-Type Reject<br>+- entering group REJECT<br> expand: %{User-Name} -> <a href="mailto:john@192.168.1.227">john@192.168.1.227</a><br> attr_filter: Matched entry DEFAULT at line 11<br>++[attr_filter.access_reject] returns updated<br>
Delaying reject of request 0 for 1 seconds<br>Going to the next request<br>Waking up in 0.9 seconds.<br>rad_recv: Access-Request packet from host <a href="http://192.168.1.227">192.168.1.227</a> port 32848, id=183, length=252<br>
User-Name = "<a href="mailto:john@192.168.1.227">john@192.168.1.227</a>"<br> X-Ascend-Netware-timeout = 1785686126<br> X-Ascend-Send-Secret = 0x3139322e3136382e312e323237<br> X-Ascend-Receive-Secret = 0x34383161663338653534346236663063383862343865393864346639313036626264363230306536<br>
X-Ascend-IP-Pool-Definition = "sip:<a href="http://192.168.1.227">192.168.1.227</a>"<br> X-Ascend-IPX-Peer-Mode = 0x5245474953544552<br> Digest-Response = "1e926599fa0777bef89010421e3e1c41"<br>
Service-Type = IAPP-Register<br> X-Ascend-PW-Lifetime = 1785686126<br> Cisco-AVPair = "call-id=<a href="mailto:25b5a186aad84c2fa769946f1b1c7110@192.168.1.193">25b5a186aad84c2fa769946f1b1c7110@192.168.1.193</a>"<br>
NAS-IP-Address = <a href="http://127.0.0.1">127.0.0.1</a><br> NAS-Port = 5060<br>+- entering group authorize<br>++[preprocess] returns ok<br>perl_pool: item 0xa119d28 asigned new request. Handled so far: 1<br>
found interpetator at address 0xa119d28<br>rlm_perl: ###############################################################<br>rlm_perl: RAD_REQUEST: Digest-Response = 1e926599fa0777bef89010421e3e1c41<br>rlm_perl: RAD_REQUEST: X-Ascend-Receive-Secret = 0x34383161663338653534346236663063383862343865393864346639313036626264363230306536<br>
rlm_perl: RAD_REQUEST: X-Ascend-IPX-Peer-Mode = 0x5245474953544552<br>rlm_perl: RAD_REQUEST: Service-Type = IAPP-Register<br>rlm_perl: RAD_REQUEST: X-Ascend-Netware-timeout = 1785686126<br>rlm_perl: RAD_REQUEST: Cisco-AVPair = call-id=<a href="mailto:25b5a186aad84c2fa769946f1b1c7110@192.168.1.193">25b5a186aad84c2fa769946f1b1c7110@192.168.1.193</a><br>
rlm_perl: RAD_REQUEST: X-Ascend-IP-Pool-Definition = sip:<a href="http://192.168.1.227">192.168.1.227</a><br>rlm_perl: RAD_REQUEST: User-Name = <a href="mailto:john@192.168.1.227">john@192.168.1.227</a><br>rlm_perl: RAD_REQUEST: X-Ascend-PW-Lifetime = 1785686126<br>
rlm_perl: RAD_REQUEST: NAS-Port = 5060<br>rlm_perl: RAD_REQUEST: NAS-IP-Address = <a href="http://127.0.0.1">127.0.0.1</a><br>rlm_perl: RAD_REQUEST: X-Ascend-Send-Secret = 0x3139322e3136382e312e323237<br>rlm_perl: ###############################################################<br>
rlm_perl: Added pair Digest-Response = 1e926599fa0777bef89010421e3e1c41<br>rlm_perl: Added pair X-Ascend-Receive-Secret = 0x34383161663338653534346236663063383862343865393864346639313036626264363230306536<br>rlm_perl: Added pair X-Ascend-IPX-Peer-Mode = 0x5245474953544552<br>
rlm_perl: Added pair Service-Type = IAPP-Register<br>rlm_perl: Added pair X-Ascend-Netware-timeout = 1785686126<br>rlm_perl: Added pair Cisco-AVPair = call-id=<a href="mailto:25b5a186aad84c2fa769946f1b1c7110@192.168.1.193">25b5a186aad84c2fa769946f1b1c7110@192.168.1.193</a><br>
rlm_perl: Added pair X-Ascend-IP-Pool-Definition = sip:<a href="http://192.168.1.227">192.168.1.227</a><br>rlm_perl: Added pair User-Name = <a href="mailto:john@192.168.1.227">john@192.168.1.227</a><br>rlm_perl: Added pair X-Ascend-PW-Lifetime = 1785686126<br>
rlm_perl: Added pair NAS-Port = 5060<br>rlm_perl: Added pair NAS-IP-Address = <a href="http://127.0.0.1">127.0.0.1</a><br>rlm_perl: Added pair X-Ascend-Send-Secret = 0x3139322e3136382e312e323237<br>rlm_perl: Added pair Reply-Message = Incorrect Password<br>
perl_pool total/active/spare [32/0/32]<br>Unreserve perl at address 0xa119d28<br>++[perl] returns reject<br>Invalid user: [<a href="http://john@192.168.1.227/">john@192.168.1.227/</a><no User-Password attribute>] (from client <a href="http://192.168.1.227">192.168.1.227</a> port 5060)<br>
Found Post-Auth-Type Reject<br>+- entering group REJECT<br> expand: %{User-Name} -> <a href="mailto:john@192.168.1.227">john@192.168.1.227</a><br> attr_filter: Matched entry DEFAULT at line 11<br>++[attr_filter.access_reject] returns updated<br>
Delaying reject of request 1 for 1 seconds<br>Going to the next request<br>Waking up in 0.4 seconds.<br>Sending delayed reject for request 0<br>Sending Access-Reject of id 182 to <a href="http://192.168.1.227">192.168.1.227</a> port 32847<br>
Reply-Message = "Incorrect Password"<br>Waking up in 0.5 seconds.<br>Sending delayed reject for request 1<br>Sending Access-Reject of id 183 to <a href="http://192.168.1.227">192.168.1.227</a> port 32848<br>
Reply-Message = "Incorrect Password"<br>Waking up in 4.4 seconds.<br>Cleaning up request 0 ID 182 with timestamp +10<br>Waking up in 0.5 seconds.<br>Cleaning up request 1 ID 183 with timestamp +10<br>Ready to process requests.<br>
<br>thanking you Kalik.<br><br>With Regards,<br>Elangbam Johnson<br><br><br><br> <br><br><br><br>