freeRaidus-PAM:: .so file error
krishna Mohan
bskmohan at rediffmail.com
Tue Mar 24 09:52:16 CET 2009
Hi,Am using freeradius 1.1.5 with pam configured.Wrote my pam application (mypam.so) file and trying to authenticate a user.No compilation errors while generating .so library.But getting "segmentation fault" error radiusd is executing a request.Btw,I have two setups; one with source compiled (fr1.1.5-tar.gz) and other rpm installed (fr1.1.5-i386.rpm). The generated .so is working perfectly with setup1.Earlier, got "PAM unable to resolve symbol: pam_sm_authenticate PAM unable to resolve symbol: pam_sm_setcred" error. Added two dummy routines for both pam_sm_authenticate() and pam_sm_setcret(), to the pam auth module, so that they always return success.radiusd -X output:-------------------rad_recv: Access-Request packet from host 127.0.0.1:32768, id=19, length=46 User-Name = "john90" User-Password = "password" Processing the authorize section of radiusd.confmodcall: entering gr!
oup authorize for request 0 modcall[authorize]: module "preprocess" returns ok for request 0radius_xlat: '/var/log/radius/radacct/detail-20090324'rlm_detail: /var/log/radius/radacct/detail-%Y%m%d expands to /var/log/radius/radacct/detail-20090324 modcall[authorize]: module "detail" returns ok for request 0radius_xlat: 'john90'rlm_sql (sql): sql_set_user escaped user --> 'john90'radius_xlat: 'SELECT id,UserName,Attribute,AES_DECRYPT(Value,'IMAGRadSqlKey'),op FROM radcheck WHERE Username = 'john90' ORDER BY id'rlm_sql (sql): Reserving sql socket id: 3radius_xlat: 'SELECT radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value,radgroupcheck.op FROM radgroupcheck,usergroup WHERE usergroup.Username = 'john90' AND usergroup.GroupName = radgroupcheck.GroupName ORDER BY radgroupcheck.id'radius_xlat: 'SELECT id,UserName,Attribute,Value,op FROM radreply WHERE Username = 'john90' ORDER BY id'radius_xlat:&n!
bsp; ''rlm_sql (sql): Released sql socket id: 3 modcall[authoriz
e]: module "sql" returns ok for request 0rlm_pap: Found existing Auth-Type, not changing it. modcall[authorize]: module "pap" returns noop for request 0modcall: leaving group authorize (returns ok) for request 0 rad_check_password: Found Auth-Type pamauth: type "PAM" Processing the authenticate section of radiusd.confmodcall: entering group authenticate for request 0pam_pass: using pamauth string <radiusd> for pam.conf lookupSegmentation faultAppreciate your help in resolving this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20090324/87bc0f8a/attachment.html>
More information about the Freeradius-Users
mailing list