blob: 94750b257c8a56777e9d2cceb8ec1ea8c2da3cd6 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001autofs: fails to compile with openldap disabled
2
3As of 5.0.6, it appears that changes were introduced so that
4if you compile with openldap disabled and openldap headers are not
5available, then autofs fails to build.
6
7Upstream-Status: Pending
8
9Signed-off-by: Amy Fong <amy.fong@windriver.com>
10--
11 lookup_ldap.h | 4 ++++
12 1 file changed, 4 insertions(+)
13
14---
15 include/lookup_ldap.h | 4 ++++
16 1 file changed, 4 insertions(+)
17
Brad Bishop6e60e8b2018-02-01 10:27:11 -050018Index: autofs-5.1.2/include/lookup_ldap.h
19===================================================================
20--- autofs-5.1.2.orig/include/lookup_ldap.h
21+++ autofs-5.1.2/include/lookup_ldap.h
Patrick Williamsb48b7b42016-08-17 15:04:38 -050022@@ -1,7 +1,9 @@
23 #ifndef LOOKUP_LDAP_H
24 #define LOOKUP_LDAP_H
25
26+#ifdef WITH_LDAP
27 #include <ldap.h>
28+#endif
29
30 #ifdef WITH_SASL
31 #include <openssl/ssl.h>
Brad Bishop6e60e8b2018-02-01 10:27:11 -050032@@ -117,10 +119,12 @@ struct lookup_context {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050033
34 #define LDAP_AUTH_USESIMPLE 0x0008
35
36+#ifdef WITH_LDAP
37 /* lookup_ldap.c */
38 LDAP *init_ldap_connection(unsigned logopt, const char *uri, struct lookup_context *ctxt);
Brad Bishop6e60e8b2018-02-01 10:27:11 -050039 int unbind_ldap_connection(unsigned logopt, struct ldap_conn *conn, struct lookup_context *ctxt);
Patrick Williamsb48b7b42016-08-17 15:04:38 -050040 int authtype_requires_creds(const char *authtype);
41+#endif
42
43 #ifdef WITH_SASL
44 /* cyrus-sasl.c */