Jeff Ross writes:

> Jeff Ross wrote:
>> Hi all,
>>
>> I need a version of samba that is compiled with both ldap and
>> kerberos so that my samba server can join a MS Windows 2003 Active
>> Directory domain. [...]

I've applied the included patch and successfully build Samba with
"env FLAVOR=ldap make package".  I haven't tested the package yet,
though.

Index: Makefile
===================================================================
RCS file: /cvs/ports/net/samba/Makefile,v
retrieving revision 1.89
diff -u -r1.89 Makefile
--- Makefile	4 Jan 2008 17:48:37 -0000	1.89
+++ Makefile	8 Mar 2008 09:49:49 -0000
@@ -57,7 +57,7 @@
 		--with-syslog \
 		--with-utmp
 
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
+CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include -I/usr/include/kerberosV" \
 		LDFLAGS="-L${LOCALBASE}/lib -Wl,--export-dynamic"
 
 FLAVORS=        cups ldap
@@ -74,7 +74,7 @@
 .endif
 
 .if ${FLAVOR:L:Mldap}
-CONFIGURE_ARGS+= --with-ldap --without-ads
+CONFIGURE_ARGS+= --with-ldap --with-ads
 LIB_DEPENDS+=	ldap,lber::databases/openldap
 BUILD_DEPENDS+=	::misc/libutf8
 .else
Index: patches/patch-configure
===================================================================
RCS file: patches/patch-configure
diff -N patches/patch-configure
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-configure	8 Mar 2008 09:49:49 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- configure.orig	Mon Dec 10 17:04:31 2007
++++ configure	Sat Mar  8 10:08:58 2008
+@@ -48682,7 +48682,7 @@ fi
+ echo "${ECHO_T}$with_ads_support" >&6; }
+ 
+ FOUND_KRB5=no
+-KRB5_LIBS=""
++KRB5_LIBS="-lssl -lcrypto"
+ 
+ if test x"$with_ldap_support" != x"yes"; then
+ 

Reply via email to