Hello!

Problem is Segmentation fault in rlm_passwd
I try to authorize pptp user via local simplest file /etc/raddb/userlist
with format = "*User-Name:User-Password"



============= radiusd.conf fragment =====================

modules {
...
        mschap {
                authtype = MS-CHAP


                        use_mppe = yes
                        require_encryption = yes
                        require_strong = yes
        }
        passwd raddb_userlist {
          filename = /etc/raddb/userlist
          format = "*User-Name:User-Password"
          authtype = MS-CHAP
          hashsize = 100
          ignorenislike = no
          allowmultiplekeys = no
        }
        ....
} # end of modules

....
authorize {
        preprocess

        suffix
        files
        raddb_userlist
        mschap
}


============= users file (is very simple for debug purposes =====================

DEFAULT Service-Type == Framed-User
        Framed-IP-Address = 255.255.255.254,
        Framed-MTU = 576,
        Service-Type = Framed-User,
        Fall-Through = Yes

        
with freeradius latest snapshot (Mon Jul 15 08:29:11 2002) I have
Segmentation fault.
With 0.6 release exits with  "undefined symbol: md4_calc:" (see below)

==========================================================================
root@vpn:/etc/raddb# gdb radiusd
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-slackware-linux"...
(gdb) set args -XX
(gdb) run
Starting program: /usr/local/sbin/radiusd -XX
[New Thread 1024 (LWP 12673)]
Starting - reading configuration files ...
reread_config:  reading radiusd.conf
Config:   including file: /etc/raddb/clients.conf
Config:   including file: /etc/raddb/snmp.conf
Config:   including file: /etc/raddb/sql.conf
 main: prefix = "/usr/local"
 main: localstatedir = "/var"
 main: logdir = "/var/log/radius"
 main: libdir = "/usr/local/lib"
 main: radacctdir = "/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 = yes
 main: log_auth_badpass = no
 main: log_auth_goodpass = no
 main: pidfile = "/var/run/radiusd/radiusd.pid"
 main: user = "(null)"
 main: group = "(null)"
 main: usercollide = no
 main: lower_user = "no"
 main: lower_pass = "no"
 main: nospace_user = "no"
 main: nospace_pass = "no"
 main: proxy_requests = no
 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 MS-CHAP
 mschap: ignore_password = no
 mschap: use_mppe = yes
 mschap: require_encryption = yes
 mschap: require_strong = yes
 mschap: passwd = "(null)"
 mschap: authtype = "MS-CHAP"
Module: Instantiated mschap (mschap)
Module: Loaded preprocess
 preprocess: huntgroups = "/etc/raddb/huntgroups"
 preprocess: hints = "/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 = "/etc/raddb/users"
 files: acctusersfile = "/etc/raddb/acct_users"
 files: compat = "no"
Module: Instantiated files (files)
Module: Loaded passwd
 passwd: filename = "/etc/raddb/userlist"
 passwd: format = "*User-Name:User-Password"
 passwd: authtype = "MS-CHAP"
 passwd: ignorenislike = no
 passwd: allowmultiplekeys = no
 passwd: hashsize = 100
rlm_passwd: nfields: 2 keyfield 0(User-Name) listable: no
Module: Instantiated passwd (raddb_userlist)
Module: Loaded detail
 detail: detailfile = "/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 = "/var/log/radius/radutmp"
 radutmp: username = "%{User-Name}"
 radutmp: perm = 384
 radutmp: callerid = yes
Module: Instantiated radutmp (radutmp)
Listening on IP address *, ports 1812/udp and 1813/udp.
Ready to process requests.
rad_recv: Access-Request packet from host 192.168.0.5:1025, id=134, length=133
        Service-Type = Framed-User
        Framed-Protocol = PPP
        User-Name = "mmike"
        MS-CHAP-Challenge = 0x7983c03e2529aea73a8bd30629d77bf8
        MS-CHAP2-Response = 0x010029ed0e599d2a97e50216d67ca2c3968800000000000000
0069495fbc95d242cb31b7f053bc7f89f0c290f49e3c165716
        NAS-IP-Address = 192.168.0.5
        NAS-Port = 0
modcall: entering group authorize
  modcall[authorize]: module "preprocess" returns ok
    rlm_realm: Looking up realm NULL for User-Name = "mmike"
    rlm_realm: No such realm NULL
  modcall[authorize]: module "suffix" returns noop
    users: Matched DEFAULT at 176
  modcall[authorize]: module "files" returns ok

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 12673)]
0x401cb79b in passwd_authorize (instance=0x80bb5f0, request=0x80bd910)
    at rlm_passwd.c:425
425             for (key = request->packet->vps;
==========================================================================



o.6 release gdb output is:
==========================================================================
....
  modcall[authorize]: module "files" returns ok
rlm_passwd: Added User-Password: mike
rlm_passwd: Adding Auth-Type: MS-CHAP
  modcall[authorize]: module "raddb_userlist" returns ok
/usr/local/sbin/radiusd: error while loading shared libraries: /usr/local/lib/rl
m_mschap-0.6.so: undefined symbol: md4_calc

Program exited with code 0177.
==========================================================================


Mike.


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

Reply via email to