Usability of 'samba-tool domain provision'

Rowland Penny repenny241155 at gmail.com
Fri Jun 3 12:44:21 UTC 2016


On 02/06/16 20:44, Rowland Penny wrote:
> On 02/06/16 20:21, Andrew Bartlett wrote:
>> On Thu, 2016-06-02 at 15:19 +0100, Rowland Penny wrote:
>>> On 02/06/16 14:02, Andrew Bartlett wrote:
>>>> On Thu, 2016-06-02 at 12:28 +0100, Rowland Penny wrote:
>>>>> Ok, before I alter my patches, can you confirm, it is just the
>>>>> change
>>>>> of
>>>>> 'realm' & 'domain' from options to args, you are against, or is
>>>>> there
>>>>> anything else ?
>>>> The user should not be prompted about use_xattrs.  In fact, just to
>>>> demonstrate that Samba development is always an art both of knowing
>>>> the
>>>> rules and of knowing when not to apply them, I would argue we
>>>> should
>>>> actually drop the --use-xattrs option, or at least hide it.
>>>>
>>>> https://git.samba.org/?p=asn/samba.git;a=commitdiff;h=4ee1d4b209a1e
>>>> 11f2
>>>> b62087e09d9f221d85bd137
>>> If I understand you correctly, don't ask about 'use_xattrs', remove
>>> the
>>> option and set 'use_xattrs' to 'auto'.
>> Yes, remove it from interactive, setting to auto.
>>
>> Then add "(deprecated)" to the help text for --use-xattrs, so we can
>> get rid of it in another release cycle (our standard is to give one
>> release of notice for these things).
>
> OK, will do.
>
>>
>>>> For the password check, I would prefer if we re-used the same
>>>> complexity check as the DB will use, perhaps by adding a python
>>>> binding
>>>> to the C function in use.  Otherwise I fear the two will diverge,
>>>> and
>>>> just cause further confusion.
>>>>
>>>> https://git.samba.org/?p=asn/samba.git;a=commitdiff;h=f56bb2c2edbc7
>>>> c0ad
>>>> 406d642f2de2f09a25b85b2
>>>>
>>> Ah, here again, this is something I have never done, which 'C'
>>> function
>>> are you referring to ? and is there anything in samba-tool that
>>> already
>>> does something similar, that I can examine for clues :-)
>> Sadly no, and creating new C bindings isn't trivial either.  I realise
>> this is harder, but I would still prefer it was done right.
>
> I did some investigation into this and I think it is going take me 
> some time to get my head around it, so I will remove the password 
> patch until such time as I get can get it to work :-)
>
> I will post a new set of patches as soon as possible.
>
> Rowland
>
>>
>> The C fuction is samdb_check_password() in source4/dsdb/common/util.c
>> and the bindings for this kind of thing are via source4/dsdb/pydsdb.c
>> via python/samba/samdb.py.
>>
>> Andrew Bartlett
>>
>

OK, here is a new set of patches, without the password checking one.

Rowland
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-samba-tool-domain-provision-remove.patch
Type: text/x-diff
Size: 2457 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160603/c27bc931/0001-samba-tool-domain-provision-remove.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-samba-tool-domain-provision-make-domain-help-a-bit-m.patch
Type: text/x-diff
Size: 2357 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160603/c27bc931/0002-samba-tool-domain-provision-make-domain-help-a-bit-m.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-samba-tool-domain-provision-check-length-of-NetBIOS-.patch
Type: text/x-diff
Size: 1486 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160603/c27bc931/0003-samba-tool-domain-provision-check-length-of-NetBIOS-.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-samba-tool-domain-provision-make-interactive-ask-if.patch
Type: text/x-diff
Size: 2560 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160603/c27bc931/0004-samba-tool-domain-provision-make-interactive-ask-if.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-samba-tool-domain-provision-add-examples-to-help.patch
Type: text/x-diff
Size: 2088 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160603/c27bc931/0005-samba-tool-domain-provision-add-examples-to-help.diff>


More information about the samba-technical mailing list