Hi. It's not compiling ok since you have: configure: warning: silently not building rlm_ldap. configure: warning: FAILURE: rlm_ldap requires: libldap_r. If you have openladp well installed, try to put some environment variables into the shell before running configure or use: ./configure --with-rlm-ldap-lib-dir=PATH_TO_LDAP/lib/ --with-rlm-ldap-include-dir=PATH_TO_LDAP/include/ Roger Thomas wrote:
I am attempting to configure FreeRadius to use our LDAP directory for authentication and have made the necessary modifications to radiusd.conf, but get the following error when starting radiusd with: # /usr/local/sbin/radiusd -X -A
--- start of text --- ... ... radiusd: entering modules setup Module: Library search path is /usr/local/lib Module: Loaded exec exec: wait = yes exec: program = "(null)" exec: input_pairs = "request" exec: output_pairs = "(null)" exec: packet_type = "(null)" rlm_exec: Wait=yes but no output defined. Did you mean output=none? Module: Instantiated exec (exec) Module: Loaded expr Module: Instantiated expr (expr) Module: Loaded PAP pap: encryption_scheme = "crypt" Module: Instantiated pap (pap) Module: Loaded CHAP Module: Instantiated chap (chap) Module: Loaded MS-CHAP mschap: use_mppe = yes mschap: require_encryption = no mschap: require_strong = no mschap: with_ntdomain_hack = no mschap: passwd = "(null)" mschap: ntlm_auth = "(null)" Module: Instantiated mschap (mschap) Module: Loaded System unix: cache = no unix: passwd = "(null)" unix: shadow = "(null)" unix: group = "(null)" unix: radwtmp = "/usr/local/var/log/radius/radwtmp" unix: usegroup = no unix: cache_reload = 600 Module: Instantiated unix (unix) radiusd.conf[738] Failed to link to module 'rlm_ldap': file not found radiusd.conf[1917] Unknown module "ldap". radiusd.conf[1917] Failed to parse "ldap" entry.
--- end of text ---
If I were to go to ~/freeradius-1.1.2/src/modules/rlm_ldap and do a ./configure, I would get these:
--- start of text --- # ./configure creating cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for pthread_create in -lpthread... yes checking for ldap_init in -lldap_r... no checking for ldap.h... yes configure: warning: silently not building rlm_ldap. configure: warning: FAILURE: rlm_ldap requires: libldap_r. updating cache ./config.cache creating ./config.status creating Makefile #
--- end of text ---
and # ls -l /usr/local/lib/libldap_r* lrwxrwxrwx 1 root root 22 Jul 26 2004 /usr/local/lib/libldap_r-2.2.so.7 -> libldap_r-2.2.so.7.0.6 -rw-r--r-- 1 root root 2255178 Jul 26 2004 /usr/local/lib/libldap_r-2.2.so.7.0.6 -rw-r--r-- 1 root root 2241358 Sep 9 2005 /usr/local/lib/libldap_r.a -rw-r--r-- 1 root root 759 Sep 9 2005 /usr/local/lib/libldap_r.la lrwxrwxrwx 1 root root 19 Sep 9 2005 /usr/local/lib/libldap_r.so -> libldap_r.so.2.0.16 lrwxrwxrwx 1 root root 19 Sep 9 2005 /usr/local/lib/libldap_r.so.2 -> libldap_r.so.2.0.16 -rw-r--r-- 1 root root 2073246 Sep 9 2005 /usr/local/lib/libldap_r.so.2.0.16
--
I'm using freeradius-1.1.2 on Redhat Linux 9 and openldap-2.0.25, everything appeared to compile okay.
I'm no C programmer. So please go slow. Any suggestions would be most appreciated.
Regards Roger Thomas
--------------------------------------------------- Sign Up for free Email at http://ureg.home.net.my/ --------------------------------------------------- - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- Atentamente, ------------------------------------ |Paulo Cabrita, Msc | |Director do Centro de Informática | |da Universidade Autónoma de Lisboa| |Tel: +351-213177635 | |Fax: +351-213533702 | |E-mail: pjc@ual.pt | ------------------------------------