Skip to contentSkip to conversation

autofs always requires openldap dependency

DISCUSSION Erwan Loaëc 1 participant 1 message Feb 21, 2011 Kernel automounter

lore
Share & tools
lore
#0 lore raw

Hello,

I've noticed each time I compile autofs I need openldap headers, even if I use the option "--without-openldap".

The file lib/defaults.c always include ldap.h (and use it...)

It "works" if I comment these lines in include/lookup_ldap.h:

4: //#include <ldap.h>
112: //LDAP *init_ldap_connection(unsigned logopt, const char *uri, struct lookup_context *ctxt); 113: //int unbind_ldap_connection(unsigned logopt, LDAP *ldap, struct lookup_context *ctxt);

But I think it's really a dirty solution...

Signature · 1 line
Erwan Loaec