On Tue, Jan 11, 2005 at 09:23:42PM -0700, Ivan M. wrote:
[..HTML email..]

First, please refrain from sending HTML email to the list, plain text
is much easier for everyone to read and easier on the net as well.

Second, I think the problem you describe is "just" an incompatibility
between your checkpassword implementation and Binc.

---8<--- http://cr.yp.to/checkpwd/interface.html down at the bottom
Process-state changes
Before invoking prog, checkpassword sets up $USER, $HOME, $SHELL, its
supplementary groups, its gid, its uid, and its working directory.

Other checkpassword-compatible tools may make different changes to
the process state. It is crucial for these effects to be documented;
different applications have different requirements.
--->8---

(Small note: prog is supposed to be a parameter rather than
hard-coded into the checkpassword program, that way you can re-use
the same checkpassword program for more than one service.)

I posted a small piece of code to one of the Binc lists a while
back, a month or two perhaps, called bchkpw, which is a simple
checkpassword program that you are free to extend and use however
you like; it's in the public domain.

Or just add a chdir() to your own checkpassword and you'll be all
set. :)

Hope this helps!


//Peter

Reply via email to