aboutsummaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/autofs/autofs/fix_disable_ldap.patch
blob: 94750b257c8a56777e9d2cceb8ec1ea8c2da3cd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
autofs: fails to compile with openldap disabled

As of 5.0.6, it appears that changes were introduced so that 
if you compile with openldap disabled and openldap headers are not
available, then autofs fails to build.

Upstream-Status: Pending

Signed-off-by: Amy Fong <amy.fong@windriver.com>
--
 lookup_ldap.h |    4 ++++
 1 file changed, 4 insertions(+)

---
 include/lookup_ldap.h |    4 ++++
 1 file changed, 4 insertions(+)

Index: autofs-5.1.2/include/lookup_ldap.h
===================================================================
--- autofs-5.1.2.orig/include/lookup_ldap.h
+++ autofs-5.1.2/include/lookup_ldap.h
@@ -1,7 +1,9 @@
 #ifndef LOOKUP_LDAP_H
 #define LOOKUP_LDAP_H
 
+#ifdef WITH_LDAP
 #include <ldap.h>
+#endif
 
 #ifdef WITH_SASL
 #include <openssl/ssl.h>
@@ -117,10 +119,12 @@ struct lookup_context {
 
 #define LDAP_AUTH_USESIMPLE	0x0008
 
+#ifdef WITH_LDAP
 /* lookup_ldap.c */
 LDAP *init_ldap_connection(unsigned logopt, const char *uri, struct lookup_context *ctxt);
 int unbind_ldap_connection(unsigned logopt, struct ldap_conn *conn, struct lookup_context *ctxt);
 int authtype_requires_creds(const char *authtype);
+#endif
 
 #ifdef WITH_SASL
 /* cyrus-sasl.c */