Re: Testing checkpassword on FreeBSD
Chris Johnson <[email protected]> Mon, 12 Jan 2004 17:11:03 -0500
| Newsgroups | gmane.comp.djb.checkpassword |
|---|---|
| Message-ID | <20040112221103.96301.qmail@9855d98f9dcb7e.e01ba3ee4a6096.palomine.net> |
On Mon, Jan 12, 2004 at 09:18:08PM +0000, Jarrad wrote: > I'm having some trouble getting checkpassword to work; tests indicate > it's not working. I'm running FreeBSD 4.9-RELEASE, and installed > checkpassword from the ports collection. > post# sh > # printf "%s\0%s\0%s\0" username password 1073898264 | > /usr/local/bin/checkpassword id 3<&0 > # perl -e 'printf "%s\0%s\0%s\0", "username", "password", "1073898264"' > | /usr/local/bin/checkpassword id 3<&0 > # echo "username\0password\01073898264\0" | > /usr/local/bin/checkpassword id 3<&0 > # exit > > (I've replaced my actual username and password with "username" and > "password" above, but did use them during the actual tests. 1073898264 > is the timestamp for January 12th 2004, 9:04:24 [GMT]) > > id isn't run, which indicates checkpassword isn't working. I just tried it myself on FreeBSD 4.9-RELEASE, and it works exactly as advertised. Are you sure you're actually using a correct user name and password? Is id in your PATH? What's the output if you run "echo $?" immediately after running the test? Chris