Hi:
Any more pointers on the same subject(please look at
the email thread) would be highly appreciated. My
radius log looks like this:
root@tstpc11:/usr/sbin > run_radius -X -A > radius_log
+ LD_LIBRARY_PATH=/usr/local/openssl/lib
+ LD_PRELOAD=/usr/local/openssl/lib/libcrypto.so
+ export LD_LIBRARY_PATH LD_PRELOAD
+ /usr/local/sbin/radiusd -X -A
Starting - reading configuration files ...
reread_config: reading radiusd.conf
Config: including file:
/usr/local/etc/raddb/proxy.conf
Config: including file:
/usr/local/etc/raddb/clients.conf
Config: including file:
/usr/local/etc/raddb/snmp.conf
Config: including file:
/usr/local/etc/raddb/sql.conf
main: prefix = "/usr/local"
main: localstatedir = "/usr/local/var"
main: logdir = "/usr/local/var/log/radius"
main: libdir = "/usr/local/lib"
main: radacctdir =
"/usr/local/var/log/radius/radacct"
main: hostname_lookups = no
read_config_files: reading dictionary
read_config_files: reading clients
read_config_files: reading realms
read_config_files: reading naslist
main: max_request_time = 30
main: cleanup_delay = 5
main: max_requests = 1024
main: delete_blocked_requests = 0
main: port = 0
main: allow_core_dumps = no
main: log_stripped_names = no
main: log_auth = no
main: log_auth_badpass = no
main: log_auth_goodpass = no
main: pidfile =
"/usr/local/var/run/radiusd/radiusd.pid"
main: user = "(null)"
main: group = "shadow"
main: usercollide = no
main: lower_user = "no"
main: lower_pass = "no"
main: nospace_user = "no"
main: nospace_pass = "no"
main: proxy_requests = yes
proxy: retry_delay = 5
proxy: retry_count = 3
proxy: synchronous = no
proxy: default_fallback = yes
proxy: dead_time = 120
security: max_attributes = 200
security: reject_delay = 1
main: debug_level = 0
read_config_files: entering modules setup
Module: Library search path is /usr/local/lib
Module: Loaded System
unix: cache = yes
unix: passwd = "/etc/passwd"
unix: shadow = "/etc/shadow"
unix: group = "/etc/group"
unix: radwtmp = "/usr/local/var/log/radius/radwtmp"
unix: usegroup = no
unix: cache_reload = 600
HASH: Reinitializing hash structures and lists for
caching...
HASH: user root found in hashtable bucket 11726
HASH: user bin found in hashtable bucket 86651
HASH: user daemon found in hashtable bucket 11668
HASH: user lp found in hashtable bucket 54068
HASH: user news found in hashtable bucket 5375
HASH: user uucp found in hashtable bucket 38541
HASH: user games found in hashtable bucket 47657
HASH: user man found in hashtable bucket 50534
HASH: user at found in hashtable bucket 67095
HASH: user lnx found in hashtable bucket 32686
HASH: user mdom found in hashtable bucket 88861
HASH: user yard found in hashtable bucket 74566
HASH: user wwwrun found in hashtable bucket 21080
HASH: user squid found in hashtable bucket 62826
HASH: user postgres found in hashtable bucket 19301
HASH: user fax found in hashtable bucket 6001
HASH: user gnats found in hashtable bucket 75017
HASH: Username empress in shadow but not passwd??
HASH: user adabas found in hashtable bucket 19290
HASH: user amanda found in hashtable bucket 72438
HASH: user ixess found in hashtable bucket 97306
HASH: user irc found in hashtable bucket 2346
HASH: user ftp found in hashtable bucket 56226
HASH: user firewall found in hashtable bucket 64628
HASH: user informix found in hashtable bucket 46784
HASH: user named found in hashtable bucket 7729
HASH: user virtuoso found in hashtable bucket 42083
HASH: user fnet found in hashtable bucket 55363
HASH: user gdm found in hashtable bucket 50360
HASH: user postfix found in hashtable bucket 23093
HASH: user cyrus found in hashtable bucket 14858
HASH: user nps found in hashtable bucket 89793
HASH: user skyrix found in hashtable bucket 61724
HASH: user dbmaker found in hashtable bucket 6886
HASH: user fixadm found in hashtable bucket 31829
HASH: user fib found in hashtable bucket 69235
HASH: user fixlohn found in hashtable bucket 5130
HASH: user oracle found in hashtable bucket 56814
HASH: user mysql found in hashtable bucket 46314
HASH: user dpbox found in hashtable bucket 71691
HASH: user ingres found in hashtable bucket 48826
HASH: user codadmin found in hashtable bucket 83071
HASH: user zope found in hashtable bucket 80442
HASH: user vscan found in hashtable bucket 42755
HASH: user wnn found in hashtable bucket 59815
HASH: user pop found in hashtable bucket 23181
HASH: user perforce found in hashtable bucket 26222
HASH: user sapdb found in hashtable bucket 32988
HASH: user nobody found in hashtable bucket 99723
HASH: user lintest found in hashtable bucket 12315
HASH: user chauhan found in hashtable bucket 34436
HASH: Stored 51 entries from /etc/passwd
HASH: Stored 44 entries from /etc/group
Module: Instantiated unix (unix)
Module: Loaded eap
eap: default_eap_type = "tls"
eap: timer_expire = 60
rlm_eap: Loaded and initialized the type md5
tls: rsa_key_exchange = no
tls: dh_key_exchange = yes
tls: rsa_key_length = 512
tls: dh_key_length = 512
tls: verify_depth = 0
tls: CA_path = "(null)"
tls: pem_file_type = yes
tls: private_key_file =
"/etc/1x/keys/cert/cert-srv.pem"
tls: certificate_file =
"/etc/1x/keys/cert/cert-srv.pem"
tls: CA_file = "/etc/1x/keys/cert/root.pem"
tls: private_key_password = "whatever"
tls: dh_file = "/etc/1x/keys/cert/dh"
tls: random_file = "/etc/1x/keys/cert/random"
tls: fragment_size = 1750
tls: include_length = yes
rlm_eap_tls: conf N ctx stored
rlm_eap: Loaded and initialized the type tls
Module: Instantiated eap (eap)
Module: Loaded preprocess
preprocess: huntgroups =
"/usr/local/etc/raddb/huntgroups"
preprocess: hints = "/usr/local/etc/raddb/hints"
preprocess: with_ascend_hack = no
preprocess: ascend_channels_per_line = 23
preprocess: with_ntdomain_hack = no
preprocess: with_specialix_jetstream_hack = no
preprocess: with_cisco_vsa_hack = no
Module: Instantiated preprocess (preprocess)
Module: Loaded realm
realm: format = "suffix"
realm: delimiter = "@"
Module: Instantiated realm (suffix)
Module: Loaded files
files: usersfile = "/usr/local/etc/raddb/users"
files: acctusersfile =
"/usr/local/etc/raddb/acct_users"
files: compat = "no"
Module: Instantiated files (files)
Module: Loaded detail
detail: detailfile =
"/usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail"
detail: detailperm = 384
detail: dirperm = 493
detail: locking = no
Module: Instantiated detail (detail)
Module: Loaded radutmp
radutmp: filename =
"/usr/local/var/log/radius/radutmp"
radutmp: username = "%{User-Name}"
radutmp: perm = 384
radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
main: smux_password = ""
main: snmp_write_access = no
SMUX connect try 1
Can't connect to SNMP agent with SMUX: Connection
refused
Listening on IP address *, ports 1812/udp and
1813/udp, with proxy on 1814/udp.
Ready to process requests.
rad_recv: Access-Request packet from host
192.168.11.20:1047, id=23, length=122
User-Name = "adam-ctl"
NAS-IP-Address = 192.168.11.20
Called-Station-Id = "004096577e54"
Calling-Station-Id = "000809000097"
NAS-Identifier = "AP350"
NAS-Port = 29
Framed-MTU = 1400
NAS-Port-Type = Wireless-802.11
EAP-Message = "\002\035\000\r\001adam-ctl"
Message-Authenticator =
0x09cf6a42badba94b8978e30247cdd626
modcall: entering group authorize
modcall[authorize]: module "preprocess" returns ok
modcall[authorize]: module "eap" returns updated
rlm_realm: Looking up realm NULL for User-Name =
"adam-ctl"
rlm_realm: No such realm NULL
modcall[authorize]: module "suffix" returns noop
users: Matched adam-ctl at 97
modcall[authorize]: module "files" returns ok
modcall: group authorize returns updated
rad_check_password: Found Auth-Type EAP
auth: type "EAP"
modcall: entering group authenticate
rlm_eap: processing type tls
/usr/local/sbin/radiusd: error while loading shared
libraries: /usr/local/lib/rlm_eap_tls-0.7.1.so:
undefined symbol: SSL_set_msg_callback
--- Nikhil Chauhan <[EMAIL PROTECTED]> wrote:
> Hi Artur:
>
> My
>
"freeradius-0.7.1/src/modules/rlm_eap/types/rlm_eap_tls/Makefile"
> looks like the following:
>
> ===================================================
> # Generated automatically from Makefile.in by
> configure.
> TARGET = rlm_eap_tls
> SRCS = rlm_eap_tls.c eap_tls.c cb.c tls.c
> mppe_keys.c
> RLM_CFLAGS = $(INCLTDL) -I../..
> -I/usr/local/openssl/include
> HEADERS = eap_tls.h
> RLM_INSTALL =
> RLM_LDFLAGS += -L/usr/local/openssl/lib
> RLM_LIBS += -lssl -lcrypto
>
> $(STATIC_OBJS): $(HEADERS)
>
> $(DYNAMIC_OBJS): $(HEADERS)
>
> RLM_DIR=../../
> include ${RLM_DIR}../rules.mak
> ==================================================
> The output of the "ldd" command looks like:
> ==================================================
> root@tstpc11:/home/chauhan > ldd
> /usr/local/lib/rlm_eap_tls-0.7.1.so
> libcrypto.so.0.9.6 =>
> /usr/lib/libcrypto.so.0.9.6 (0x40029000)
> libssl.so.0.9.6 => /usr/lib/libssl.so.0.9.6
> (0x400ea000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x40118000)
> libresolv.so.2 => /lib/libresolv.so.2
> (0x4012e000)
> libpthread.so.0 => /lib/libpthread.so.0
> (0x40140000)
> libc.so.6 => /lib/libc.so.6 (0x40156000)
> libdl.so.2 => /lib/libdl.so.2 (0x40273000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2
> (0x80000000)
> ===================================================
> My run_radius script looks like the following:
> ===================================================
> #!/bin/sh -x
>
> LD_LIBRARY_PATH=/usr/local/openssl/lib
> LD_PRELOAD=/usr/local/openssl/lib/libcrypto.so
>
> export LD_LIBRARY_PATH LD_PRELOAD
>
> /usr/local/sbin/radiusd $@
> #/tmp/freeradius-0.7.1/src/main/radiusd $@
> ===================================================
> I've attached the log of FreeRadius alongwith this
> email.
>
> POinters would be appreciated. :-)
> Thanks,
> Nikhil.
>
> --- Artur Hecker <[EMAIL PROTECTED]> wrote:
> > hi Nikhil
> >
> >
> > in my case i have:
> >
> > radius:/usr/local/lib# ldd rlm_eap_tls-0.8-pre.so
> > libnsl.so.1 => /lib/libnsl.so.1
> > (0x400df000)
> > libresolv.so.2 => /lib/libresolv.so.2
> > (0x400f3000)
> > libpthread.so.0 => /lib/libpthread.so.0
> > (0x40104000)
> > libc.so.6 => /lib/libc.so.6 (0x40118000)
> > /lib/ld-linux.so.2 => /lib/ld-linux.so.2
> > (0x80000000)
> >
> > no ssl no crypto at all (see later for
> explanation).
> > and as you see i'm
> > still using the 0.8 prerelease... (i think it
> works
> > since the 0.5 though).
> >
> >
> > > LD_LIBRARY_PATH=/usr/local/openssl/lib
> > > LD_PRELOAD=/usr/local/openssl/lib/libcrypto.so
> > > I tried to add /usr/local/openssl before
> > /usr/local in the /etc/ld.so.conf.
> >
> > in the ld.so.conf i have /usr/local/lib as the
> > forelast entry. try to
> > play with it. but anyway, what i said before was
> > wrong since i don't
> > have the ssl and crypto in the ld config. it was
> > wrong especially
> > because in the /usr/lib/openssl/lib i don't have
> any
> > so files, only
> > static a-libs. so, i'm sorry for the
> inconvenience.
> >
> > that's what you should have in your Makefile:
> >
> > TARGET = rlm_eap_tls
> > SRCS = rlm_eap_tls.c eap_tls.c cb.c tls.c
> > mppe_keys.c
> > RLM_CFLAGS = $(INCLTDL) -I../..
> > -I/usr/local/openssl/include
> > HEADERS = eap_tls.h
> > RLM_INSTALL =
> > RLM_INSTALL=
> >
> > RLM_LDFLAGS += -L/usr/local/openssl/lib
> > RLM_LIBS += -lssl -lcrypto
> >
> > $(STATIC_OBJS): $(HEADERS)
> >
> > $(DYNAMIC_OBJS): $(HEADERS)
> >
> > RLM_DIR=../../
> > include ${RLM_DIR}../rules.mak
> >
> >
> > ciao
> > artur
> >
> >
> > --
> > Artur Hecker Groupe Acc�s et Mobilit�
> > hecker[at]enst[dot]fr D�partement Informatique
> et
> > R�seaux
> > +33 1 45 81 7507 46, rue Barrault 75634 Paris
> cedex
> > 13
> > http://www.infres.enst.fr ENST Paris
> >
> >
> > -
> > List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus � Powerful. Affordable. Sign up
> now.
> http://mailplus.yahoo.com
> ATTACHMENT part 2 application/x-unknown
name=radius_log
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html