Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need access to an LDAP server hosted on a private network from the outside. I have been given a VPN account but that account has no direct access to the LDAP server. (for security reasons, they refuse to open the LDAP server on VPN).

But I have access to several other *nix boxes, all with root acces and those boxes can acces the LDAP server. My question is, can I use those boxes with something like ssh port forwarding to make the LDAP available?

share|improve this question
    
Do you have ssh account on the LDAP server? –  quanta Mar 8 '13 at 9:30
    
No, I don't and I doubt they will create me one. –  Zenklys Mar 8 '13 at 9:38
1  
serverfault.com/a/326577/59925 –  quanta Mar 8 '13 at 9:44
    
That worked, thanks. –  Zenklys Mar 8 '13 at 13:37
add comment

1 Answer

I have found a solution so far thanks to quanta.

I installed rinetd on the bound server with the following rule :

0.0.0.0 389 myldapserver 389

That way, I can directly define my LDAP host as the boundserver on port 389.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.