Hi all, help needed with an AWX 19.2.1 Kerberos issue that is driving me crazy. My setup is K8s (one master and 2 worker nodes) on
10.0.0.0/16 subnet and I have my domain controller on my internal network
192.168.5.0/24 (along with all my other servers Linux and Windows). AWX is setup to use
metallb load balancer and have an IP on the 192.168.5.0 subnet. No issues connecting to the Web UI, and all my linux tests and playbooks works fine for linux servers residing on my internal network. For a while now I have been trying to get kerberos to work but I keep getting the following error when I try to do a win_ping to any of my windows servers (all residing on the
192.168.5.0/24 subnet):
Kerberos auth failure for principal <user>@<DOMAIN> with pexpect:
Cannot find KDC for realm \"<DOMAIN>\" while getting initial credentials
All my containers inside the AWX pod have krb5.conf set to use my domain (UPPERCASE) and they also have my internal DNS servers in resolv.conf. From the containers I have no problems pinging servers on my internal network (192.168.0.0), and even using kinit <user>@<DOMAIN> works - I do get a kerberos ticket. However, when I try to run a win_ping from the web interface I get the error shown above.
The Execution Environment is v 0.4.0 (also tried with my own customized EE)
Other than the use of Metallb LB, and bringing in krb5.conf and a resolv.conf for DNS on my internal LAN - everything is pretty much standard.
Here is my krb5.conf file:
# To opt out of the system crypto-policies configuration of krb5, remove the
# symlink at /etc/krb5.conf.d/crypto-policies which will not be recreated.
includedir /etc/krb5.conf.d/
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[libdefaults]
default_realm = <DOMAIN>
dns_lookup_realm = true
dns_lookup_kdc = true
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
rdns = false
pkinit_anchors = FILE:/etc/pki/tls/certs/ca-bundle.crt
spake_preauth_groups = edwards25519
default_ccache_name = KEYRING:persistent:%{uid}
[realms]
<DOMAIN> = {
kdc = <dc>.<DOMAIN>
admin_server = <dc>.<DOMAIN>
}
[domain_realm]
.<domain> = <DOMAIN>
<domain> = <DOMAIN>
I cannot for the life of me get this to work - any tips/help on how to get this to work?