#3824 Password prompting can hang if stdin is not a tty
Closed: Fixed None Opened 8 years ago by pviktori.

If stdin is a TTY, ipaserver.install.installutils ises getpass and all is well. Without a TTY, though, there are two problems:

  • The prompt is not printed
  • On end of file, an empty string is returned, which causes read_password to enter an infinite loop.

To reproduce, try e.g.

cat|ipa-ldap-updater

No prompt is shown, and if you press Ctrl+D it pins the processor.


This is a major nuisance when writing tests for interactive prompting, should be included in the upstream tests effort.

Metadata Update from @pviktori:
- Issue assigned to pviktori
- Issue set to the milestone: FreeIPA 3.3 - 2013/07

4 years ago

Login to comment on this ticket.

Metadata