Here's a patch to configure.in from 3.0.25b that fixes kerberos lib detection on OpenBSD 4.2. With this patch samba correctly detects OpenBSD's idiosyncratic version of Heimdal. --- configure.in.orig Wed May 23 09:29:20 2007 +++ configure.in Mon Oct 22 17:14:09 2007 @@ -3424,6 +3424,20 @@ if test x$FOUND_KRB5 = x"no"; then ################################################# + # see if this box has the OpenBSD location for the heimdal krb implementation + AC_MSG_CHECKING(for /usr/include/kerberosV) + if test -d /usr/include/kerberosV; then + KRB5_CFLAGS="-I/usr/include/kerberosV" + KRB5_CPPFLAGS="-I/usr/include/kerberosV" + KRB5_LDFLAGS="-lcrypto" + AC_MSG_RESULT(yes) + else + AC_MSG_RESULT(no) + fi + fi + + if test x$FOUND_KRB5 = x"no"; then + ################################################# # see if this box has the RedHat location for kerberos AC_MSG_CHECKING(for /usr/kerberos) if test -d /usr/kerberos -a -f /usr/kerberos/lib/libkrb5.a; then