Realm problem

Cant create host with realm i got message:

  • Failed to create’s realm entry: ERF12-5287 [ProxyAPI::ProxyException]: Unable to create realm entry ([RestClient::BadRequest]: 400 Bad Request) for proxy

config smart proxy:
realm: true
realm_listen_on: https
realm_provider: freeipa
realm_keytab: “/etc/foreman-proxy/freeipa.keytab”
realm_principal: realm@X.Y.Z
freeipa_config: “/etc/ipa/default.conf”
freeipa_remove_dns: true

log form /var/log/foreman-proxy/proxy.log

|Jun 06, 11:12:25 AM|ERROR|Failed to initialise credential cache from keytab
|Jun 06, 11:12:25 AM|ERROR|Failed to initailize credentials cache from keytab: krb5_get_init_creds_keytab: Key table entry not found |

I have freeipa.keytab on /etc/foreman-proxy/freeipa.keytab

Foreman and Proxy versions:

Distribution and version:
Rocky Linux 8.7

I fix keytab and now i have

2023-06-06T12:35:04 b3ee7967 [I] Finished GET /v2/features with 200 (32.15 ms)
2023-06-06T12:35:32 432cf846 [I] Started POST /realm/X.Y.Z/
2023-06-06T12:35:32 432cf846 [E] Authorization failed.
HTTP-Error: 401 Unauthorized
2023-06-06T12:35:32 432cf846 [W] Error details for Authorization failed.
HTTP-Error: 401 Unauthorized: : Authorization failed.
HTTP-Error: 401 Unauthorized
/usr/share/gems/gems/xmlrpc-0.3.2/lib/xmlrpc/client.rb:507:in `do_rpc’

When i try:

sudo -u foreman-proxy kinit realm@X.Y.Z -k -t /etc/foreman-proxy/freeipa.keytab

everything is fine