Calling radius_exec_program() with request set to NULL
Hello friends, The comment above it suggests it should be possible to call 'radius_exec_program()' without a request (like at server instantiation): https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/src/main/exec.c#... However, it currently doesn't even let me compile with a NULL request, due to nonull expectation. Would it make sense to fix it, and allow NULL request, or is there a way around it? It works ok with the patch below, though I am not sure what's the correct substitute for all the RDEBUG / RERROR occurrences, see: https://github.com/frenche/freeradius-server/commit/8929b28bd8a4186d2d772260... Thanks!
On Apr 9, 2018, at 7:46 AM, Isaac Boukris <iboukris@gmail.com> wrote:
The comment above it suggests it should be possible to call 'radius_exec_program()' without a request (like at server instantiation): https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/src/main/exec.c#...
It's possible. I'm not sure how useful it is.
However, it currently doesn't even let me compile with a NULL request, due to nonull expectation. Would it make sense to fix it, and allow NULL request, or is there a way around it?
What is it needed for? I'd prefer to add patches because they're useful *now*, not useful some time in the future. Alan DeKok.
Hi Alan, On Mon, Apr 9, 2018, 15:03 Alan DeKok <aland@deployingradius.com> wrote:
On Apr 9, 2018, at 7:46 AM, Isaac Boukris <iboukris@gmail.com> wrote:
The comment above it suggests it should be possible to call 'radius_exec_program()' without a request (like at server instantiation):
https://github.com/FreeRADIUS/freeradius-server/blob/v3.0.x/src/main/exec.c#...
It's possible. I'm not sure how useful it is.
However, it currently doesn't even let me compile with a NULL request, due to nonull expectation. Would it make sense to fix it, and allow NULL request, or is there a way around it?
What is it needed for? I'd prefer to add patches because they're useful *now*, not useful some time in the future.
Alan DeKok.
I'm trying to add logic to allow initializing krb5 credentials when needed for LDAP connections, via an external script. My understanding is that sometimes the server would open several initial connections to the LDAP server where it isn't running in a context of a given request. Isaac
On Apr 9, 2018, at 9:16 AM, Isaac Boukris <iboukris@gmail.com> wrote:
I'm trying to add logic to allow initializing krb5 credentials when needed for LDAP connections, via an external script.
My understanding is that sometimes the server would open several initial connections to the LDAP server where it isn't running in a context of a given request.
Yes. OK, that should be fixed then. I don't think there's much to do. Alan DeKok.
participants (2)
-
Alan DeKok -
Isaac Boukris