[patch] get rlm_linelog syslog working with Solaris9
Dear Developers, according to the syslog call manpage (checked in Linux and Solaris 9) LOG_PID is only usable in the openlog call, so the current code needs the attached patch to get rlm_linelog syslog logging working under Solaris 9. Hardcoding LOG_AUTHPRIV also makes not too much sense for me, as the syslog facility can be configured in the log section anyways. Best of course would be to make it configurable per linelog instance using the static const FR_NAME_NUMBER str2fac array defined in the src/main/mainconfig.c file. Please comment, greetings Hermann -- Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224 Email: Hermann.Lauer@iwr.uni-heidelberg.de
Hermann Lauer wrote:
according to the syslog call manpage (checked in Linux and Solaris 9) LOG_PID is only usable in the openlog call, so the current code needs the attached patch to get rlm_linelog syslog logging working under Solaris 9.
OK.
Hardcoding LOG_AUTHPRIV also makes not too much sense for me, as the syslog facility can be configured in the log section anyways.
Hmm... the linelog module doesn't change the facility, but the log{} section will cause openlog() to be called.
Best of course would be to make it configurable per linelog instance using the static const FR_NAME_NUMBER str2fac array defined in the src/main/mainconfig.c file.
That's for later. I've added your patch, thanks. Alan DeKok.
participants (2)
-
Alan DeKok -
Hermann Lauer