[Freeipa-devel] [PATCH] allow passwords to work without a tty

Rob Crittenden rcritten at redhat.com
Fri Sep 12 20:31:09 UTC 2008


getpass.getpass() requires a tty to work so it prevents one from doing 
something like: echo "password" | some_program

Detect if there is not a tty and use readline() instead so this will work.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-86-password.patch
Type: text/x-patch
Size: 1565 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080912/99eeb4d9/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20080912/99eeb4d9/attachment-0001.bin>


More information about the Freeipa-devel mailing list