Hi, I seem to have radiusd working fine with PAM now, however I have a strange core dump problem. Users can authenticate successfully, BUT when a user puts in an incorrect password, radiusd core dumps.
pam_pass: function pam_authenticate FAILED for <fred>. Reason: Authentication failed Segmentation Fault(coredump) The PAM module I am using is the MIT pam_krb5 one, which otherwise works fine for other PAM enabled applications. Any ideas on this, anyone seen this behaviour before ? Mark ==================== strace output of radiusd ==================== pam_pass: function pam_authenticate FAILED for <fred>. Reason: Authentication failed write(1, " p a m _ p a s s : f u".., 87) = 87 Incurred fault #6, FLTBOUNDS %pc = 0xEEA04838 siginfo: SIGSEGV SEGV_MAPERR addr=0xEEA04838 Received signal #11, SIGSEGV [caught] siginfo: SIGSEGV SEGV_MAPERR addr=0xEEA04838 sigprocmask(SIG_SETMASK, 0xEF4D7DA0, 0x00000000) = 0 sigaction(SIGSEGV, 0xEFFFD320, 0x00000000) = 0 sigprocmask(SIG_SETMASK, 0xEF4E0AA0, 0x00000000) = 0 setcontext(0xEFFFD4E0) Incurred fault #6, FLTBOUNDS %pc = 0xEEA04838 siginfo: SIGSEGV SEGV_MAPERR addr=0xEEA04838 Received signal #11, SIGSEGV [default] siginfo: SIGSEGV SEGV_MAPERR addr=0xEEA04838 *** process killed *** ================== radiusd debug output ================== Nothing to do. Sleeping until we see a request. rad_recv: Access-Request packet from host 10.129.162.198:2406, id=120, length=101 User-Name = "fred" User-Password = "fdsfsd" NAS-IP-Address = 10.129.162.198 NAS-Identifier = "sshd" NAS-Port = 1381 NAS-Port-Type = Virtual Service-Type = Authenticate-Only Calling-Station-Id = "fredpc1.wks.fred.com" modcall: entering group authorize modcall[authorize]: module "preprocess" returns ok rlm_chap: Could not find proper Chap-Password attribute in request modcall[authorize]: module "chap" returns noop modcall[authorize]: module "mschap" returns notfound rlm_realm: No '@' in User-Name = "fred", looking up realm NULL rlm_realm: No such realm NULL modcall[authorize]: module "suffix" returns noop users: Matched DEFAULT at 155 modcall[authorize]: module "files" returns ok modcall: group authorize returns ok rad_check_password: Found Auth-Type Pam auth: type "PAM" modcall: entering group authenticate pam_pass: using pamauth string <radius> for pam.conf lookup pam_pass: function pam_authenticate FAILED for <fred>. Reason: Authentication failed Segmentation Fault(coredump) - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html