summaryrefslogtreecommitdiff
blob: 49901ddfc69bfaa8c1b6786bce526b571bb2ffdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- 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");