Added check for Kerberos availability

SVN revision: 2492
This commit is contained in:
2013-05-03 12:29:11 +00:00
parent a8812f0c77
commit b9c76ad18a
+9
View File
@@ -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) {