From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199705281311.IAA18976@ns1.unicomp.net> Date: Wed, 28 May 1997 11:23:07 -0400 (xyUU) From: Jeff Odom Subject: Re: lpd? In-Reply-To: > I'm trying to use a UDB as a lpd server for an i386 linux box, but each > time the i386 box tries to issue a request, I get one of these: > > lpd: memory violation at pc=12000c698 rp=155557099f4 (bad address = > 00000000) > > Doing an strace shows a seg. fault occuring just after lpd opens > /etc/hosts.lpd. > > I'm running RedHat 4.1, but I tried the updated 4.2 lpr package (the > non-intel one ;)) and I get the same thing. Is there a working version of > lpd somewhere?? Looks like the same problem that's been around since RH4.0. The newer versions of lpd use a low-level, undocumented (but then who needs documentation -- we've got source!) routine from the pam library called __ivaliduser() to check if the incoming machine/user is authorized to print. Unfortunately, this seg faults. IMHO, this really should be moved from a low-level pam routine to a regular pam call for authentication. After all, that's the point of PAM, right? So I wrote a pam module called pam_file_auth (sources courtesy of Al Longyear) to do the authentication. Seems to have fixed it for my lab (which is currently 5 axp's and 2 ppros, all running linux). If you'd like the sources, I can email them to you (these being for 4.1 - they'll need changes for 4.2). Or if enough people are interested, I can post them. Jeff Odom System Administrator The Johns Hopkins Krieger Mind/Brain Institute -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com