Problem:
I am trying to provision a new host with automatic creation of the server account in an active directory realm and I am receiving an error from the smart-proxy stating “Unknown Realm.
Expected outcome:
Server is provisioned with realm entry created
Foreman and Proxy versions:
Version 3.19.1
Foreman and Proxy plugin versions:
3.19.1
Distribution and version:
Rocky Linux 9
Other relevant data:
2026-07-24T11:33:26 84fa38c4 [I] Started POST /realm/CHEEKY.LOCAL/
2026-07-24T11:33:26 84fa38c4 [I] Proxy::AdRealm: initialize…
2026-07-24T11:33:26 84fa38c4 [I] Proxy::AdRealm: create… CHEEKY.LOCAL, lushan.cheeky.local, {“hostname”=>“lushan.cheeky.local”, “userclass”=>“Infrastructure - EL9”, “realm”=>“CHEEKY.LOCAL”}
2026-07-24T11:33:26 84fa38c4 [E] Unknown realm CHEEKY.LOCAL
2026-07-24T11:33:26 84fa38c4 [W] Error details for Unknown realm CHEEKY.LOCAL: : Unknown realm CHEEKY.LOCAL
/usr/share/gems/gems/smart_proxy_realm_ad_plugin-0.1/lib/smart_proxy_realm_ad/provider.rb:27:in check_realm' /usr/share/gems/gems/smart_proxy_realm_ad_plugin-0.1/lib/smart_proxy_realm_ad/provider.rb:36:in create’