selftest: Make as_canonicalization_tests.py easier to run outside "make test"
commitd85e71f449037fa035fa2fae6b64caf695c53cb3
authorAndrew Bartlett <abartlet@samba.org>
Mon, 9 Nov 2020 22:12:13 +0000 (10 11:12 +1300)
committerGary Lockyer <gary@samba.org>
Wed, 11 Nov 2020 01:15:39 +0000 (11 01:15 +0000)
treeff17efb95769db8709db10caeac9580cb9f7a991
parent579a3c641c72b65f6ba39141a55c765b517bd7f8
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>
python/samba/tests/krb5/as_canonicalization_tests.py