Share

checkpassword-pam

Tracker: Bugs

5 Testing method in man page does not work - ID: 1209382
Last Update: Comment added ( nobody )

At least on my PCs with sh, the testing method outlined
in the manpage:

# echo -e "username\0password\0timestamp\0" \
| checkpassword-pam -s SERVICE \
--debug --stdout -- /usr/bin/id 3<&0

does not work. The reason it does not work is that \0
followed by any numbers (like a timestamp) is
interpreted by echo as an octal character.

I fixed this by replacing all instances of \0 with
\0000 in the above example.


Nobody/Anonymous ( nobody ) - 2005-05-26 19:06

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2007-12-11 22:24
Sender: nobody

Logged In: NO

This test worked for me, following the above suggestion. The password is
"4estpass" and the test fails without the \0000 before the password.
echo -e "testuser\00004estpass\0timestamp\0" \
| checkpassword-pam -s sshd \
--debug --stdout -- /usr/bin/id 3<&0

FYI On my system (opensuse 10.0) sshd is a file in /etc/pam.d


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.