From 8a36504008872f03d1b1ca980adeceba28c331f5 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Sun, 5 Feb 2012 17:00:32 +0100 Subject: Do not call sudo functions if built without-sudo --- src/providers/ldap/sdap_sudo.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/providers/ldap/sdap_sudo.c') diff --git a/src/providers/ldap/sdap_sudo.c b/src/providers/ldap/sdap_sudo.c index 24425834..5c7448f9 100644 --- a/src/providers/ldap/sdap_sudo.c +++ b/src/providers/ldap/sdap_sudo.c @@ -49,7 +49,6 @@ int sdap_sudo_init(struct be_ctx *be_ctx, struct bet_ops **ops, void **pvt_data) { -#ifdef BUILD_SUDO int ret; DEBUG(SSSDBG_TRACE_INTERNAL, ("Initializing sudo LDAP back end\n")); @@ -73,11 +72,6 @@ int sdap_sudo_init(struct be_ctx *be_ctx, } return EOK; -#else - DEBUG(SSSDBG_MINOR_FAILURE, ("Sudo init handler called but SSSD is " - "built without sudo support, ignoring\n")); - return EOK; -#endif } int sdap_sudo_setup_tasks(struct sdap_id_ctx *id_ctx) -- cgit