selftest: Make as_canonicalization_tests.py easier to run outside "make test"
commit0242419a01075e93d4c7cdcb636260694a6f6eab
authorAndrew Bartlett <abartlet@samba.org>
Mon, 9 Nov 2020 22:12:13 +0000 (10 11:12 +1300)
committerJule Anger <janger@samba.org>
Thu, 16 Sep 2021 08:07:11 +0000 (16 08:07 +0000)
tree6ca06de77c767f8297923911033abcc61ba54962
parentd08faae8bd0da140772946e3dfe75e484438ef39
selftest: Make as_canonicalization_tests.py easier to run outside "make test"

This takes the realm from the LDAP base DN and so avoids one
easy mistake to make.  So far the NT4 domain name is not
auto-detected, so much be read from the smb.conf.

By using .guess() the smb.conf is read for the unspecified
parts (eg workstation for an NTLM login to the LDAP server if
the target server is an IP address).

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14817
(cherry picked from commit d85e71f449037fa035fa2fae6b64caf695c53cb3)
python/samba/tests/krb5/as_canonicalization_tests.py