LDAP authentication Question


I have a client that has LDAP authentication on a site on port 9999, they have forms on port 8888, is there a way to check to see if they are logged in and get the session info on port 8888 with PHP?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

btanExec ConsultantCommented:
I am thinking to access the form, it is sort of doing some redirect only after it is successful, so there may be some sort of use of JavaScript to accomplish this redirect such as the pseudo steps of the JS
- detect the clients computer name, user name, domain by using the network object in WScript
- detect the credentials and then send them to the server to check with AD
- Valid with AD server - create a user session, reply an JSON Object for success is true. Redirect client.
- Otherwise, no user session and no redirect.  
So maybe we can grab some evidence of a 302 or 301 is presence instead of a error http response such as unauthorised 401 etc. Just some quick thoughts

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
movieprodwAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Active Directory

From novice to tech pro — start learning today.