Interactive Samba 4 Domain Provisioning doesn't print prompt text
When trying to provision a Samba 4 domain, the interactive mode doesn’t show the questions. It’s still expecting the input though.
Steps to reproduce:
- Install Package samba-dc (edge/4.2.0-r1)
samba-tool domain provisionas root
(Confirmed by ncopa in IRC)
The expected outcome is documented on the Samba Wiki:
However, the program doesn’t print the questions and therefore the user
isn’t aware that they should input anything.
When inputting the expected values blindly, the program behaves as expected and provisions a new Samba domain.
It is noteworthy that the Administrator password prompt works fine. This can probably be explained by its use of the getpass library instead of the builtin print statement.
Relevant code snippet:
- /usr/lib/python2.7/site-packages/samba/netcmd/domain.py L297 L336
source distribution python/samba/netcmd/domain.py
git @samba-4.2.0 https://git.samba.org/?p=samba.git;a=blob;f=python/samba/netcmd/domain.py;h=9dfbc391bca94b90bfe0758d281e9b2bf857f849;hb=1d4445aa87bf9b51d476c1cc42e0d08d83c3323c\#l297
(from redmine: issue id 4061, created on 2015-04-13, closed on 2015-05-26)
- Revision c24f03b4 by Natanael Copa on 2015-04-21T08:57:06Z:
main/samba: upgrade to 4.2.1 and fix prompt for domain provisioning fixes #4061