Re: EAP module return code for proxy case [Re: help with EAP proxy]

2004-07-21 Thread Dave Mason
turned now. Then in rlm_eap.c/eap_authorize, in the switch statement for the eap_start return code, I can add an EAP_OK case that will return RLM_MODULE_OK. I can also add a config note in doc/rlm_eap. Dave Alan DeKok wrote: Dave Mason <[EMAIL PROTECTED]> wrote: Along the way, I not

EAP module return code for proxy case [Re: help with EAP proxy]

2004-07-19 Thread Dave Mason
. If there is an EAP proxy going on, I could skip sql if eap returns something different than NOOP. Maybe it could return HANDLED in that case? To accomplish that with the current code, eap_start would return EAP_FOUND, which is misleading. Maybe there's a better way. Dave Dave Mason wrot

help with EAP proxy

2004-07-19 Thread Dave Mason
Hi, I'm using an old Freeradius server, v0.8.1, to proxy Access-Requests with EAP-Messages. The outbound proxy works fine, but the proxy response is getting mangled. The 1.0 server works fine, and I know the real solution is to pick it up, but with my current deadline I cant port the rest of

Re: how to save binary values in MySQL radreply table

2004-06-25 Thread Dave Mason
ot;65643565" to the client, as you would expect. I need to get binary values into the table somehow. Maybe the API is smart enough to handle binary data even if the mysql command line client isn't? I tried prefixing each character with "\0x" but that didnt work. Dave

how to save binary values in MySQL radreply table

2004-06-25 Thread Dave Mason
Hi, My apologies if this has been answered before but I didn't see anything. This is basically a MySQL question. I need to save MS-MPPE attributes in the radreply table. Those have a binary value. According to the schema, Value is a varchar(253). Can I just copy the binary value to a strin

Re: how to change the proxy realm in the User-Name

2004-05-24 Thread Dave Mason
ome server, everything should be seemless, with the response going back to the originating client as usual. This appears to be happening. Dave Dave Mason wrote: Hi, I have an application where I need to programmatically change the realm I proxy Accounting-Request messages to if the incoming rea

how to change the proxy realm in the User-Name

2004-05-21 Thread Dave Mason
Hi, I have an application where I need to programmatically change the realm I proxy Accounting-Request messages to if the incoming realm is some known value. I have a preacct function that looks for the particular realm in the User-Name, and if it's there, it adds a Realm attrbute to request->

Re: HELP: Compile freeradius with C++ module and third party library

2004-05-13 Thread Dave Mason
Hi, My first guess would be to ask if you're calling a C++ method directly from C. You can link a C++ library into Freeradius, but in order to call a C++ method you have to put it inside a C wrapper function. Your code would like something like this: interface.h -- #ifdef __cplusp

Re: Mysql and Freeradius

2004-04-30 Thread Dave Mason
Hi, I've seen your posts and you have my sympathy. The best I can say is that everything magically works if it's set up right. I think you've already seen the web site with the config notes? My suggestions would be to rebuild with a fresh dump from the tar file, in case you made some changes

Re: Compile freeradius in C++

2004-04-20 Thread Dave Mason
Hi, I had a similar problem but took a slightly different approach. I had a C++ library that I needed to use from inside an rlm_eap subtype module. Instead of bringing C++ into rlm_eap, I wrote a C wrapper around the C++ API, and call the C function from within freeradius. The wrapper functio

patch [Re: Accounting-Response sent on failure]

2004-03-17 Thread Dave Mason
--- Alan DeKok wrote: Dave Mason wrote: Maybe Freeradius should not send Accounting-Response if the accounting module returns noop? That's probably the best solution. Patch? Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Accounting-Response sent on failure

2004-03-15 Thread Dave Mason
ld get to this within a few weeks - when I do the fix for our version I'll grab the latest CVS and do a patch for it too. Let me know if there are any other codes besides noop that should prevent Accounting-Response. Dave Alan DeKok wrote: Dave Mason wrote: Maybe Freeradius should not

Re: Accounting-Response sent on failure

2004-03-12 Thread Dave Mason
st 0 Maybe Freeradius should not send Accounting-Response if the accounting module returns noop? Dave Alan DeKok wrote: Dave Mason wrote: Your last response appears to contradict another answer you gave me last September. Here's that one, with more explanation of what's going on.

Re: Accounting-Response sent on failure

2004-03-12 Thread Dave Mason
Hi Alan, Your last response appears to contradict another answer you gave me last September. Here's that one, with more explanation of what's going on. Alan DeKok wrote: Dave Mason wrote: I have a Freeradius server (v0.8.1) where I may configure multiple accounting methods in ra

Accounting-Response sent on failure

2004-03-10 Thread Dave Mason
Hi, I'm using Freeradius v0.8.1 with an accounting module that I developed, along with "detail", "acct_unique", and the other methods that come with the distribution. The problem I'll describe here may have been fixed in a later release - let me know if so. My module returns "RLM_OK" if it wor

questions about multiple realms and proxy

2004-01-12 Thread Dave Mason
Hi, This may be in a FAQ or earlier thread but I didnt see it. Just a quick couple of questions. 1. Is it possible to append another realm to the NAI when proxying a message? That is, if a message with [EMAIL PROTECTED] arrives and I proxy it to another host based on realm1 in proxy.conf, can