On Thu, Jan 17, 2002 at 12:00:45AM -0500, [EMAIL PROTECTED] wrote: > Hmm. I was thinking more in terms of a libshadow. I seem to recall that there > used to be one, back with libc5, and I think that the shadow source package > still can make one. (If I remember right, it was disabled in the build on > Debian, because it's in glibc.) If so, you should be able to get passwd and > everything from Debian working by just adding -lshadow to the Makefiles. In > fact, I suspect you'd find that configure would pick it up automatically for a > lot of packages, because Solaris uses libshadow, and configure would know to > look for it.
I'm not quite sure what you mean here. passwd, adduser, chfn and so on work in as much as they update /etc/passwd (they all use the libshadow functions for this even if you don't compile it as a shared library), but NetBSD getpwnam will only use the db format files. What I think we need is to modify libshadow to be able to cope with these and make the pw_mkdb call once they've added information. It looks like there's some sort of basic infrastructure for doing this, so I don't imagine that it'd be too difficult. > That wouldn't be compatible with NetBSD passwd databases, though. But then, > rewriting update-passwd didn't seem like fun to me. I couldn't even get it to > compile on FreeBSD. In a way, it ought to be easier - all the shadow functions can just be hacked out entirely as long as we teach it to update the correct files. -- Matthew Garrett | [EMAIL PROTECTED]

