Has anyone else encountered this problem with the internal Radius server on a MAX 4000 running 5.0Ap4? > I've got radius_disconnect_user() function within pwdradius > working finally - I don't actually call build_auth_req anymore > but do pretty much the same thing. > > It's now possible to have rad point at an ascend and kick a user > off which I think is fairly useful. One problem I've noticed though > is that when rad sends off the UDP request it sources it from some > randomish high numbered client port as I'd expect. Unfortuantely, > the MAX chooses to reply to the generic radius/1645 (or whatever > you've configured) server port - so of course rad doesn't see this. > (I've fiddled with the MAX and confirmed with tcpdump what is > happening). > > This seems extremely broken to me. It effectively means I couldn't > have multiple rads doing the same thing on one box or even have rad > disconnect from one of radiusd hosts. Duh! > > Is there any good reason you can think off for why the MAX does this, or > is it really broken? It sounds badly broken to me. > The actual disconnect operation works - it's just that rad never > sees the response saying whether it worked or not. You could do the following: configure the Max Radius server to some other port than 1645. alter the disconnect function in rad to bind to that port number, rather than choosing an arbitrary one. If the bind fails, wait a bit and try again, possibly warning the user. Once you get the port bound, send your request but don't close the socket. Wait until you've got your response (or time out), then close the socket which will allow other users to bind to that port. It's not ideal, but would allow multiple users to access this function. -- Jim Segrave jes@demon.net ++ Ascend Users Mailing List ++ To unsubscribe: send unsubscribe to ascend-users-request@bungi.com To get FAQ'd: <<A HREF="http://www.shore.net/~dreaming/ascend-faq">http://www.shore.net/~dreaming/ascend-faq</A>> or <<A HREF="ftp://ftp.shore.net/members/dreaming/ascend-faq.txt">ftp://ftp.shore.net/members/dreaming/ascend-faq.txt</A>> </PRE> <!--X-MsgBody-End--> <!--X-Follow-Ups--> <!--X-Follow-Ups-End--> <!--X-References--> <!--X-References-End--> <!--X-BotPNI--> <HR> <UL> <LI>Prev by Date: <STRONG><A HREF="msg05498.html">Re: (ASCEND) MAX 4048</A></STRONG> </LI> <LI>Next by Date: <STRONG><A HREF="msg05497.html">Re: (ASCEND) MAX TNT MIBs</A></STRONG> </LI> <LI>Prev by thread: <STRONG><A HREF="msg05659.html">Re: (ASCEND) Cause Code 17.</A></STRONG> </LI> <LI>Next by thread: <STRONG><A HREF="msg05505.html">(ASCEND) no luck filters</A></STRONG> </LI> <LI>Index(es): <UL> <LI><A HREF="mail136.html#05496"><STRONG>Main</STRONG></A></LI> <LI><A HREF="thrd41.html#05496"><STRONG>Thread</STRONG></A></LI> </UL> </LI> </UL> <!--X-BotPNI-End--> <!--X-User-Footer--> <!--X-User-Footer-End--> </BODY> </HTML>