Hello,

    I just spent a few hours tracking down a really annoying problem
with the new 0.8 freeradius.  I was having a terrible time getting
any authentications to work until I started adding debug information
to the source.  To make a long story short, if you are using crypt()
passwords that are MD5 encrypted (they start with $1$..) it will not
work if the Makefile places the -lcrypto before the -lcrypt, because
it will use the crypt() function of libcrypto which does not seem to
recognize md5 passwords.  If this happens to you, change the line in
the Makefile (src/main/Makefile) from:

radiusd: $(SERVER_OBJS) ../lib/libradius.a $(MODULE_OBJS)
        $(LIBTOOL) --mode=link $(CC) -export-dynamic -dlopen self \
                $(CFLAGS) $(LDFLAGS) -o $@ \
                $(SERVER_OBJS) $(LIBS) $(LCRYPT) \
                $(PTHREADLIB) $(LIBLTDL) $(MODULE_LIBS)

to:

radiusd: $(SERVER_OBJS) ../lib/libradius.a $(MODULE_OBJS)
        $(LIBTOOL) --mode=link $(CC) -export-dynamic -dlopen self \
                $(CFLAGS) $(LDFLAGS) -o $@ \
                $(SERVER_OBJS) $(LCRYPT) $(LIBS) \
                $(PTHREADLIB) $(LIBLTDL) $(MODULE_LIBS)

before building.  I guess something must have changed with the scripts
from previous versions, since they worked fine on this machine "out of
the box".

    Thanks,
      Josh

-- 
Josh Wilsdon <[EMAIL PROTECTED]> Programmer Analyst
Wizard IT Services - http://www.wizard.ca 
Linux Support Specialist - http://linuxmagic.com
Unix Administration, Website Hosting, Network Services, Programming
(604) 589-0037 Beautiful British Columbia, Canada
LinuxMagic is a TradeMark of Wizard Tower TechnoServices Ltd.
--------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to which
they are addressed.  If you have received this email in error please
notify the system manager.  Please note that any views or opinions
presented in this email are solely those of the author and do not
necessarily represent those of the company.

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

Reply via email to