Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 603965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:59:16+00:00 2026-05-13T16:59:16+00:00

I have an interesting situation, and Google doesn’t appear to have any information regarding

  • 0

I have an interesting situation, and Google doesn’t appear to have any information regarding the issue.

I develop a web-based software written in PHP. Most of our clients have some sort of CAS server setup for authentication, and we simply point our site at their authentication server. We have a new client that does not have a CAS server, so I told them we could use LDAP, preferably with SSL (LDAPS). I’m not sure if they have the ability to do LDAPS, but the real problem is that (at the moment) they require the LDAP connection to be on the same network, thus, I would need to connect to their VPN first, and then query their LDAP server.

Now, I’m sure that I could make the VPN connection on our server, and have all traffic directed through that, but that would create a single point of failure for all of our clients and would be totally out of our control; so this really isn’t an option.

I could probably find a way to make a connection, authenticate the user, then release the connection; but that seems like a poor choice that would take a long time.

So, does anybody know if I can (a) open a VPN connection in only PHP and then use that connection to connect to the LDAP server or (2) somehow code PHP/configure my server so that only requests to the LDAP server use the VPN and all other requests use the default Internet connection?

I’m really a bit lost as to a good way to do this, any help would be greatly appreciated. Thanks very much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:59:16+00:00Added an answer on May 13, 2026 at 4:59 pm

    Is there an SSH server at the client end? If so, perhaps you could arrange with the client to tunnel the connection through to an SSH server at their end. You could then ask your application to open the SSH tunnel just before it authenticates, and close it when it’s done, similar to VPN.

    You could possibly do this with VPN depending on the underlying OS. Either way is not going to be pretty and going to be lacking in performance. Also either way, the tunnel is going to be available for all applications on the server to use while it’s open.

    If this were me, I would write a webservice to do the authentication, set up an agreement with the client to host this for me, and relay all authentication attempts to the web service. You would ideally set this up to use HTTPS as well.

    Depending on the network set up between your application and your client, and how much control you both have over your networks, your client may be able to route requests from one of your IPs through to their network – we did this once with a third party. We needed access to one of their services on a private subnet, and because we were both with the same ISP we reached an agreement that the ISP would configure and maintain the routing so we effectively got a completely private tunnel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an interesting situation where I need to deploy an ASP.NET MVC app
I have somewhat interesting development situation. The client and deployment server are inside a
I just came across an interesting situation in JavaScript. I have a class with
I have found an interesting issue in windows which allows me to cause the
Have an interesting situation: I have a foreign key from a.name (child table) to
We have an interesting situation. Our build server seems to want to go back
I have an interesting situation. In some (large) legacy code, there is a namespace
I am having an interesting situation. In my test assembly, I have folders having
I have an interesting problem and would appreciate your thoughts for the best solution.
I have one interesting problem. I must parse mail body (regular expression), get some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.