summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/samba/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile
index f4a1dbe0024a..791555bfb7f8 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -111,7 +111,7 @@ CONFIGURE_ARGS+= --with-msdfs
LIB_DEPENDS+= popt.0:${PORTSDIR}/devel/popt
.if defined(WITH_LDAP)
-LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap20-client
+USE_OPENLDAP= yes
CONFIGURE_ARGS+= --with-ldapsam
CONFIGURE_ENV+= CPPFLAGS=-I${LOCALBASE}/include \
LDFLAGS=-L${LOCALBASE}/lib