Gerald (Jerry) Carter
2002-Jun-24 16:19 UTC
[Samba] patch for 2.2.5 and check for start_tls with OpenLDAP 2.0.x libs
FYI.... There is a bu in the configure script for 2.2.5 that prevents the script from locating the start_tls function in the OpenLDAP 2.0.x libs. Apply this patch and rerun autoconf. Should fix it. Patches configure.in and passdb/pdb_ldap.c Sorry for the inconvience. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca-- -------------- next part -------------- Index: configure.in ==================================================================RCS file: /data/cvs/samba/source/configure.in,v retrieving revision 1.130.4.162 diff -u -r1.130.4.162 configure.in --- configure.in 2002/06/18 05:15:37 1.130.4.162 +++ configure.in 2002/06/24 21:57:21 @@ -2074,7 +2074,10 @@ LDAPLIBS="-lldap" AC_CHECK_LIB(lber, ber_bvfree, [LDAPLIBS="$LDAPLIBS -llber"]) LDAPLIBS="-lresolv $LDAPLIBS" + old_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $LDAPLIBS" AC_CHECK_FUNCS(ldap_start_tls_s) + LDFLAGS="$old_LDFLAGS" with_smbpasswd_sam=no AC_SUBST(LDAPLIBS) ;; Index: passdb/pdb_ldap.c ==================================================================RCS file: /data/cvs/samba/source/passdb/pdb_ldap.c,v retrieving revision 1.1.2.35 retrieving revision 1.1.2.36 diff -u -r1.1.2.35 -r1.1.2.36 --- passdb/pdb_ldap.c 2002/06/17 16:54:19 1.1.2.35 +++ passdb/pdb_ldap.c 2002/06/24 23:15:12 1.1.2.36 @@ -114,7 +114,7 @@ { int port; int version; - int tls; + int tls, rc; uid_t uid = geteuid(); struct passwd* pass;