Hello,
I have a similar use case. I was searching for something and found this forum post.
I am asking switch in the other task, which may be of interest to you.
https://forum.proxmox.com/threads/configuring-freeipa-ldap-server-with-proxmox.113500/#post-784470