Segmentation fault on PAP calling

Giovanni Lovato giovanni.lovato at aldu.net
Wed Feb 7 17:54:48 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm using FreeRADIUS 1.1.4 compiled from sources on Debian Etch.
I backend against LDAP with hashed password. Now I'm trying to configure
authentication to use with WPA, but it segfaults on calling PAP:

# radiusd -Xxxx 2>&1
...
rad_recv: Access-Request packet from host 192.168.1.250:3074, id=0,
length=125
        User-Name = "testuser"
        NAS-IP-Address = 192.168.1.250
        Called-Station-Id = "00c0..."
        Calling-Station-Id = "001..."
        NAS-Identifier = "00c..."
        NAS-Port = 223
        Framed-MTU = 1400
        NAS-Port-Type = Wireless-802.11
        EAP-Message = 0x020...
        Message-Authenticator = 0x431...
  Processing the authorize section of radiusd.conf
modcall: entering group authorize for request 0
  modsingle[authorize]: calling preprocess (rlm_preprocess) for request 0
  modsingle[authorize]: returned from preprocess (rlm_preprocess) for
request 0
  modcall[authorize]: module "preprocess" returns ok for request 0
  modsingle[authorize]: calling chap (rlm_chap) for request 0
  modsingle[authorize]: returned from chap (rlm_chap) for request 0
  modcall[authorize]: module "chap" returns noop for request 0
  modsingle[authorize]: calling mschap (rlm_mschap) for request 0
  modsingle[authorize]: returned from mschap (rlm_mschap) for request 0
  modcall[authorize]: module "mschap" returns noop for request 0
  modsingle[authorize]: calling suffix (rlm_realm) for request 0
    rlm_realm: No '@' in User-Name = "testuser", looking up realm NULL
    rlm_realm: No such realm "NULL"
  modsingle[authorize]: returned from suffix (rlm_realm) for request 0
  modcall[authorize]: module "suffix" returns noop for request 0
  modsingle[authorize]: calling eap (rlm_eap) for request 0
  rlm_eap: EAP packet type response id 1 length 11
  rlm_eap: No EAP Start, assuming it's an on-going EAP conversation
  modsingle[authorize]: returned from eap (rlm_eap) for request 0
  modcall[authorize]: module "eap" returns updated for request 0
  modsingle[authorize]: calling files (rlm_files) for request 0
    users: Matched entry DEFAULT at line 152
  modsingle[authorize]: returned from files (rlm_files) for request 0
  modcall[authorize]: module "files" returns ok for request 0
  modsingle[authorize]: calling ldap (rlm_ldap) for request 0
rlm_ldap: - authorize
rlm_ldap: performing user authorization for testuser
radius_xlat:  '(uid=testuser)'
radius_xlat:  'dc=aldu,dc=net'
rlm_ldap: ldap_get_conn: Checking Id: 0
rlm_ldap: ldap_get_conn: Got Id: 0
rlm_ldap: attempting LDAP reconnection
rlm_ldap: (re)connect to ldap.laurelin.aldu.net:389, authentication 0
rlm_ldap: bind as cn=radius,dc=aldu,dc=net/PASSWORD to
ldap.laurelin.aldu.net:389
rlm_ldap: waiting for bind result ...
rlm_ldap: Bind was successful
rlm_ldap: performing search in dc=aldu,dc=net, with filter (uid=testuser)
rlm_ldap: checking if remote access for testuser is allowed by dialupAccess
rlm_ldap: looking for check items in directory...
rlm_ldap: Adding userPassword as User-Password, value
{md5}rL0Y20zC+Fzt72VPzMSk2A== & op=21
rlm_ldap: looking for reply items in directory...
rlm_ldap: user testuser authorized to use remote access
rlm_ldap: ldap_release_conn: Release Id: 0
  modsingle[authorize]: returned from ldap (rlm_ldap) for request 0
  modcall[authorize]: module "ldap" returns ok for request 0
  modsingle[authorize]: calling pap (rlm_pap) for request 0
Segmentation fault

Some configuration snippets (maybe not useful, but the entire file would
have been too long I guess):

radiusd.conf:
...
modules {
	..
	pap {
		auto_header = yes
	}
	...
}
...
authorize {
	...
	ldap
	pap
}
authenticate {
	Auth-Type PAP {
		pap
	}
	...
}
...

If I revert the password to clear-text on LDAP, it runs fine and
authenticate.

Any ideas?
Thank you,
Giovanni Lovato
- --
www.aldu.net/~heruan
giovanni.lovato at aldu.net
ldaps://pgpkeys.aldu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFygRYaWLXrn9dopwRAjqCAJ9S0ztPnbdnFh4rR5UDkUt25Ix8lACfbBAf
7FY2dwyMEGVi8LTkvuIvhNs=
=HQjo
-----END PGP SIGNATURE-----



More information about the Freeradius-Users mailing list