Search code examples
ldapvirtual-machineopendj

Connect host ldap server to local VM


I have a server installed on VM and a LDAP(opendj) server created using Apache Directory Studio on my host computer. Now, I would like to connect that LDAP server to local VM so that the VM server can pull user's information from LDAP server. is it possible to do that? I could not understand how to establish a communication between these two server.

Thanks.


Solution

  • Remote Port Forwarding actually does work here.

    my ldap server port was 10389. I have created a tunnel from host to vm:

    ssh -R 10389:localhost:10389 [email protected](vm-ip)
    

    after then, vm can reach to the host through this port (10389).

    Sorry, I don't have that much knowledge on ssh. But this one worked for me.