Active Directory Activities: Firewall Ports

I want to use the UiPath Active Directory Activities, but have to connect through a firewall.
Which ports are needed to connect to the directory server?

(Later on I will have the same question regarding the exchange activies, maybe we can handle it in one go?)