samba and fix ldap

Meno Abels meno.abels at adviser.com
Tue May 11 17:19:13 PDT 2004


Hello,

i just discovered that the samba port is fixed to
openldap 2.0. There is no designed switch for
WANT_OPENLDAP_VER.
Why is this missing?
For me samba work also with openldap 2.1 and 2.2.

Here the very short patch:

--- Makefile	Wed May 12 02:09:45 2004
+++ /usr/ports/net/samba/Makefile	Wed May 12 02:05:46 2004
@@ -111,7 +111,7 @@
  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

Thanks in advance

Meno


More information about the freebsd-ports mailing list