Usability of 'samba-tool domain provision'

Rowland Penny repenny241155 at
Wed May 4 12:17:26 UTC 2016

On 04/05/16 12:16, Alexander Bokovoy wrote:
> On Wed, 04 May 2016, Peter C. Kelly wrote:
>> Andreas said:
>>> This documents issues I
>>> found during provisioning. samba-tool is far away from being user friendly.
>>> a) It isn't clear what domain is from 'samba-tool domain provison --help'
>> I have raised bug 11894, and attached a patch which addresses this
>> point as per Rowland's suggested wording.
>>> b) The --realm option is essential but at the end of the help ...
>> The reason that the realm is way down the bottom is that it is under a
>> heading "Samba Common Options", along with configFile debuglevel and
>> option.
>> What is currently holding me up from developing the second trivial
>> patch is a need for a bit more clarity on how this --help output
>> should look.  It seems to me that if the --domain parameter is
>> compulsory, then the heading text should say so,
>> and that if a realm has to be specified (or read in from an existing
>> conf file) then perhaps that should be mentioned in the introductory
>> text as well.
> It would, perhaps, be good to have it in both categories to avoid
> changing common options' help.

It doesn't need to be in both categories, if you do an interactive 
provision, there is this:

             realm = ask("Realm", default)
             if realm in (None, ""):
                 raise CommandError("No realm set!")

If you specify everything with the command, there is this:

             realm = sambaopts._lp.get('realm')
             if realm is None:
                 raise CommandError("No realm set!")

So, if you don't provide the 'realm', it refuses to continue and tells 
you why.


More information about the samba-technical mailing list