I have a problem to get your smart proxy to work as well.
I have build the gem file and installed it. But when restarting the foreman-proxy the log says:
Disabling all modules in the group [‘realm’]: following providers are not available [‘realm_ad’]
Do you have any ideas where to look