Freeradius and NFS

2005-10-01 Thread Wulf Kaiser
Hi,

after several problems, i managed it to install Freeradius on our NFS Server
(running Solaris 9). The NFS Server exports a part of his '/usr/local' -
including freeradius - to our main LDAP Server and to the Failover Machine.

Starting Freeradius on the main LDAP Server works - it authenticates our
WLAN and VPN Users. But now i want it running on both directory servers to
have a real Failover for Freeradius, too.

So i modified the startscript (also exported via NFS on both machines) and
added:

RAD_CONF=$RADDBDIR/`/usr/bin/uname -n`_radiusd.conf
RAD_PID=$rundir/`/usr/bin/uname -n`_radius.pid

I have also copied the radiusd.conf to ldap_radiusd.conf and
ldapFailover_radiusd.conf and modified both to call machine specific log and
pid files.

Recently, i have done the same with the Apache Web Server, and it works with
the following lines in the start section of apachectl:

$HTTPD -k $ARGV -f $HTTPD_CONF

But how do i tell the radiusd to read another conf than the original
radiusd.conf? Whatever i tried, the output was 

[EMAIL PROTECTED]80 /etc/init.d/radius.server start
-n Starting FreeRADIUS:
Sat Oct  1 12:30:52 2005 : Info: Starting - reading configuration files ...
Sat Oct  1 12:30:52 2005 : Error: Unable to open file
/usr/local/freeradius/etc/radiusd.conf: No such file or directory
Sat Oct  1 12:30:52 2005 : Error: Errors reading radiusd.conf

The uname works, here are some debug outputs:

Reading configuration from /usr/local/freeradius/etc/ldap_radiusd.conf...
Generating PID in /usr/local/freeradius/var/run/radiusd/ldap_radius.pid...

Any Ideas or tipps?


mit freundlichem Gruss,

Wulf Kaiser
IT Services
Web Development | Database Administration
Webmaster www.mpimf-heidelberg.mpg.de
Zentrale Hard- und Softwarebeschaffung

Max-Planck-Institut für medizinische Forschung
Jahnstrasse 29
69120 Heidelberg
Fon +49 6221 486560
Fax +49 6221 486561
Mobil +49 172 6235901


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


AW: Unknown Auth-Type eap in authenticate section.

2005-09-25 Thread Wulf Kaiser
Title: AW: Unknown Auth-Type eap in authenticate section.






Hello,


I dunno if this is already documented anywhere, but it seems as that configure does not configure rlm_eap to be build properly by default; after adding the following line

--with-rlm_eap


to my ./configure thing, it worked!


Wulf Kaiser

IT Services

Web Development | Database Administration

Webmaster www.mpimf-heidelberg.mpg.de

Zentrale Hard- und Softwarebeschaffung 


Max-Planck-Institut für medizinische Forschung

Jahnstrasse 29 69120 Heidelberg

Fon +49 6221 486560

Fax +49 6221 486561

Mobil +49 172 6235901 


 -Ursprüngliche Nachricht-

 Von: [EMAIL PROTECTED] 

 [mailto:[EMAIL PROTECTED]] Im 

 Auftrag von Alan DeKok

 Gesendet: Donnerstag, 22. September 2005 17:22

 An: FreeRadius users mailing list

 Betreff: Re: Unknown Auth-Type eap in authenticate section.

 

 Wulf Kaiser [EMAIL PROTECTED] wrote:

  rlm_eap: Loaded and initialized type mschapv2

  Module: Instantiated eap (eap)

  radiusd.conf[124] Unknown Auth-Type eap in authenticate section.

 

 That error is a bit misleading, and should be fixed.

 

 What's happening is that the EAP module is failing to start 

 properly, and exiting. The module handling code doesn't 

 properly detect the difference between no EAP and failed EAP.

 

 But the EAP module *should* print out messages saying why it failed.

 

 Alan DeKok.

 

 -

 List info/subscribe/unsubscribe? See 

 http://www.freeradius.org/list/users.html

 



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

Unknown Auth-Type eap in authenticate section.

2005-09-22 Thread Wulf Kaiser
Title: Unknown Auth-Type eap in authenticate section.






Hi,


After doing the configure stuff on a Solaris 9 machine



 ./configure \

 --prefix=/usr/local/freeradius-1.0.5 \

 --sysconfdir=/usr/local/freeradius-1.0.5/conf \

 --localstatedir=/usr/local/freeradius-1.0.5/var \

 --sharedstatedir=/usr/local/freeradius-1.0.5/com \

 --bindir=/usr/local/freeradius-1.0.5/bin \

 --sbindir=/usr/local/freeradius-1.0.5/sbin \

 --libdir=/usr/local/freeradius-1.0.5/lib \

 --libexecdir=/usr/local/freeradius-1.0.5/libexec \

 --includedir=/usr/local/freeradius-1.0.5/include \

 --mandir=/usr/local/freeradius-1.0.5/man \

 --datadir=/usr/local/freeradius-1.0.5/share \

 --with-raddbdir=/usr/local/freeradius-1.0.5/etc \

 --with-rlm_ldap-lib-dir=/usr/local/openldap2/lib \

 --with-rlm_ldap-include-dir=/usr/local/openldap2/include \

 --with-openssl-includes=/usr/local/ssl/include \

 --with-openssl-libraries=/usr/local/ssl/lib \

 --without-rlm_sql_mysql \

 --without-rlm_sql_oracle \

 --without-rlm_sql_unixodbc \

 --without-rlm_sql_iodbc \

 --without-rlm_sql_postgresql \

 --without-rlm_x99_token \

 --without-rlm_krb5 \

 --with-gnu-ld


I tried


./radiusd -x

Starting - reading configuration files ...

Using deprecated naslist file. Support for this will go away soon.

Module: Loaded MS-CHAP 

Module: Instantiated mschap (mschap) 

radiusd.conf[64] Failed to link to module 'rlm_ldap': ld.so.1: ./radiusd: fatal: libldap_r-2.2.so.7: open failed: No such file or directory 

[EMAIL PROTECTED]8 bash

bash-2.05# export LD_LIBRARY_PATH=/usr/local/openssl/lib:/usr/local/openldap/lib

bash-2.05# ./radiusd -x

Starting - reading configuration files ...

Using deprecated naslist file. Support for this will go away soon.

Module: Loaded MS-CHAP 

Module: Instantiated mschap (mschap) 

Module: Loaded LDAP 

rlm_ldap: Registering ldap_groupcmp for Ldap-Group

rlm_ldap: Registering ldap_xlat with xlat_name ldap

rlm_ldap: reading ldap-radius mappings from file /usr/local/freeradius-1.0.5/etc/ldap.attrmap

rlm_ldap: LDAP radiusCheckItem mapped to RADIUS $GENERIC$

rlm_ldap: LDAP radiusReplyItem mapped to RADIUS $GENERIC$

rlm_ldap: LDAP radiusAuthType mapped to RADIUS Auth-Type

rlm_ldap: LDAP radiusSimultaneousUse mapped to RADIUS Simultaneous-Use

rlm_ldap: LDAP radiusCalledStationId mapped to RADIUS Called-Station-Id

rlm_ldap: LDAP radiusCallingStationId mapped to RADIUS Calling-Station-Id

rlm_ldap: LDAP sambalmPassword mapped to RADIUS LM-Password

rlm_ldap: LDAP sambantPassword mapped to RADIUS NT-Password

rlm_ldap: LDAP acctFlags mapped to RADIUS SMB-Account-CTRL-TEXT

rlm_ldap: LDAP radiusExpiration mapped to RADIUS Expiration

rlm_ldap: LDAP radiusServiceType mapped to RADIUS Service-Type

rlm_ldap: LDAP radiusFramedProtocol mapped to RADIUS Framed-Protocol

rlm_ldap: LDAP radiusFramedIPAddress mapped to RADIUS Framed-IP-Address

rlm_ldap: LDAP radiusFramedIPNetmask mapped to RADIUS Framed-IP-Netmask

rlm_ldap: LDAP radiusFramedRoute mapped to RADIUS Framed-Route

rlm_ldap: LDAP radiusFramedRouting mapped to RADIUS Framed-Routing

rlm_ldap: LDAP radiusFilterId mapped to RADIUS Filter-Id

rlm_ldap: LDAP radiusFramedMTU mapped to RADIUS Framed-MTU

rlm_ldap: LDAP radiusFramedCompression mapped to RADIUS Framed-Compression

rlm_ldap: LDAP radiusLoginIPHost mapped to RADIUS Login-IP-Host

rlm_ldap: LDAP radiusLoginService mapped to RADIUS Login-Service

rlm_ldap: LDAP radiusLoginTCPPort mapped to RADIUS Login-TCP-Port

rlm_ldap: LDAP radiusCallbackNumber mapped to RADIUS Callback-Number

rlm_ldap: LDAP radiusCallbackId mapped to RADIUS Callback-Id

rlm_ldap: LDAP radiusFramedIPXNetwork mapped to RADIUS Framed-IPX-Network

rlm_ldap: LDAP radiusClass mapped to RADIUS Class

rlm_ldap: LDAP radiusSessionTimeout mapped to RADIUS Session-Timeout

rlm_ldap: LDAP radiusIdleTimeout mapped to RADIUS Idle-Timeout

rlm_ldap: LDAP radiusTerminationAction mapped to RADIUS Termination-Action

rlm_ldap: LDAP radiusLoginLATService mapped to RADIUS Login-LAT-Service

rlm_ldap: LDAP radiusLoginLATNode mapped to RADIUS Login-LAT-Node

rlm_ldap: LDAP radiusLoginLATGroup mapped to RADIUS Login-LAT-Group

rlm_ldap: LDAP radiusFramedAppleTalkLink mapped to RADIUS Framed-AppleTalk-Link

rlm_ldap: LDAP radiusFramedAppleTalkNetwork mapped to RADIUS Framed-AppleTalk-Network

rlm_ldap: LDAP radiusFramedAppleTalkZone mapped to RADIUS Framed-AppleTalk-Zone

rlm_ldap: LDAP radiusPortLimit mapped to RADIUS Port-Limit

rlm_ldap: LDAP radiusLoginLATPort mapped to RADIUS Login-LAT-Port

conns: 56318

Module: Instantiated ldap (ldap) 

Module: Loaded eap 

rlm_eap: Loaded and initialized type tls

rlm_eap: Loaded and initialized type ttls

rlm_eap: Loaded and initialized type peap

rlm_eap: Loaded and initialized type mschapv2

Module: Instantiated eap (eap) 

radiusd.conf[124] Unknown Auth-Type eap in authenticate section.


What does 


radiusd.conf[124] Unknown Auth-Type eap in authenticate section.


mean?


Wulf Kaiser

IT Services

Web