--- modules/lookup_ldap.c +++ modules/lookup_ldap.c @@ -1488,6 +1488,7 @@ int lookup_init(const char *mapfmt, int } } +#ifdef WITH_SASL /* * First, check to see if a preferred authentication method was * specified by the user. parse_ldap_config will return error @@ -1500,7 +1501,6 @@ int lookup_init(const char *mapfmt, int return 1; } -#ifdef WITH_SASL /* Init the sasl callbacks */ if (!autofs_sasl_client_init(LOGOPT_NONE)) { error(LOGOPT_ANY, "failed to init sasl client");