How to find out from which section a module was called
Hi, is it possible to get the information from which section a module was called? Maybe from the request struct? If have a problem with modules like rlm_linelog which have a common function for all sections. Following the example configuration logs the same string for access-request and access-accept/reject (the access-request one) because the packet type from the request is access-request in both request and reply. So i guess if not i have to configure different rlm_linelog instances to handle requests and replies. I also had that problem with a self made module so i had to make different module functions for every section. -- i. A. Stephan Jäger Abteilung Dienste Telefon: (0441)8000-2873 Telefax: (0441)8000-2599 mailto:stephan.jaeger@ewetel.de ___________________________________ EWE TEL GmbH Cloppenburger Straße 310 26133 Oldenburg Handelsregister Amtsgericht Oldenburg HRB 3723 Vorsitzender des Aufsichtsrates: Heiko Harms Geschäftsführung: Hans-Joachim Iken (Vorsitzender), Dr. Norbert Schulz, Dirk Thole Homepage: http://www.ewetel.de/
Stephan Jaeger wrote:
is it possible to get the information from which section a module was called? Maybe from the request struct?
request->component contains the name of the section.
Following the example configuration logs the same string for access-request and access-accept/reject (the access-request one) because the packet type from the request is access-request in both request and reply. So i guess if not i have to configure different rlm_linelog instances to handle requests and replies.
Pretty much, yes. Alan DeKok.
participants (2)
-
Alan DeKok -
Stephan Jaeger