diff --git a/src/elogd.c b/src/elogd.c index 8ee0cce4..1237e61f 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -28806,6 +28806,15 @@ void server_loop(void) if (!is_verbose() && !running_as_daemon) eputs("done"); +#ifndef HAVE_KRB5 + /* check for Kerberos authentication */ + getcfg("gloabl", "Authentication", str, sizeof(str)); + if (stristr(str, "Kerberos")) { + eprintf("Kerberos authentication not compiled into this version of elogd.\n"); + exit(EXIT_FAILURE); + } +#endif + /* listen for connection */ status = listen(lsock, SOMAXCONN); if (status < 0) {