In message <[EMAIL PROTECTED]>, "Alan DeKok" writes:
> [EMAIL PROTECTED] wrote:
> > I'm having a similar issue with rlm_krb5 on a FreeBSD 5.3 box.
> > 
> > I have FreeRADIUS working 100% fine with kerberos etc on a Fedora Core 2 bo
>x
> > (home compiled too - although I started the experiment with an RPM)
> 
>   There are multiple libraries which implement kerberos.  On FreeBSD,
> I think you'll have to give an extra option to 'configure':
> 
> $ configure --enable-heimdal-krb5
> 
>   and it should make the kerberos module use the right kerberos libraries.

I just dealt with this issue a couple of weeks ago.  The heimdal config 
switch didn't work (can't remember why), but I was able to get it to 
compile with MIT kerberos.  The MIT Kerberos port puts its libraries in 
/usr/local, so you'll have to use something like

    configure --with-rl-krb5-lib-dir=/usr/local/lib \
              --with-rlm-krb5-include-dir=/usr/local/include

Also, the 'configure' file in src/modules/rlm-krb5 wasn't honoring the 
--with-rlm-krb5-include-dir option.  A patch for 'configure.in' is 
appended.

>   But isn't there a freeradius package on FreeBSD?

Yes, in the ports collection, but it doesn't build the Kerberos 
support.  I've sent my modifications to the maintainer, who says he'll 
be including them soon.

-- 
George C. Kaplan                            [EMAIL PROTECTED]
Communication & Network Services            510-643-0496
University of California at Berkeley

----------------------------------------------------------------
*** src/modules/rlm_krb5/configure.in.orig      Mon Mar 17 11:51:30 2003
--- src/modules/rlm_krb5/configure.in   Thu Dec  2 15:24:50 2004
***************
*** 35,40 ****
--- 35,41 ----
                ;;
            *)
                rlm_krb5_include_dir="$withval"
+               krb5_i_cflags="-I${rlm_krb5_include_dir}"
                ;;
          esac ]
        )
***************
*** 95,101 ****
  fi
  
  krb5_ldflags=$SMART_LIBS
! krb5_cflags="${krb5_h_cflags} $SMART_CFLAGS"
  
  AC_SUBST(krb5_cflags)
  AC_SUBST(krb5_ldflags)
--- 96,102 ----
  fi
  
  krb5_ldflags=$SMART_LIBS
! krb5_cflags="${krb5_i_cflags} ${krb5_h_cflags} $SMART_CFLAGS"
  
  AC_SUBST(krb5_cflags)
  AC_SUBST(krb5_ldflags)



- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to