I have an application in php and I need to validate the login against an Active Directory server, that I have already done when the two servers are local, but in this case they are not and they do not open an Active Directory server port for security . They tell me that in these cases a gateway or gateway is used, something similar to what systems like Teamviewer use, but I do not know how it can be implemented. Another option that I have seen would be to create a webservice on the server where the Active Directory is, but to access it I will need to have the corresponding port.
Any ideas? thanks