473,396 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

propagating LDAP Authentication to IIS with PHP

Hello,
I'm using IIS 5 and PHP 4.3.5.

I have an html page, page1, that resides at member.company.com server.
It contains a form asking a user to login. I then check the login by
connecting to LDAP.company.com and bind the provided username and
password to the LDAP server. if the user is authenticated by LDAP then
i direct users to a second page, page 2. On page 2, i have a link to a
file that resides in a protected virtual directory. The virtual
directory is protected using Basic Authentication. This virtual
directory also resides at member.company.com server. The problem i'm
having is, users needs to login again on page 2 when they click on the
link to the virtual directory.

how can i use the user name and password the user entered on page 1,
during LDAP Authentication, for page 2 so that when users click on the
link to the protected virtual directory?

any sugegstion will be greatly appreciated

Jul 13 '07 #1
1 2883
jesbuddy07 wrote:
Hello,
I'm using IIS 5 and PHP 4.3.5.

I have an html page, page1, that resides at member.company.com server.
It contains a form asking a user to login. I then check the login by
connecting to LDAP.company.com and bind the provided username and
password to the LDAP server. if the user is authenticated by LDAP then
i direct users to a second page, page 2. On page 2, i have a link to a
file that resides in a protected virtual directory. The virtual
directory is protected using Basic Authentication. This virtual
directory also resides at member.company.com server. The problem i'm
having is, users needs to login again on page 2 when they click on the
link to the virtual directory.

how can i use the user name and password the user entered on page 1,
during LDAP Authentication, for page 2 so that when users click on the
link to the protected virtual directory?

any sugegstion will be greatly appreciated
You can't in PHP. PHP never sees the request, so it can't handle it.
And authentication/authorization is handled between the client and the
server - and PHP doesn't get involved.

You might try an IIS newsgroup. But AFAIK there's nothing you can do in
PHP to bypass LDAP authentication or "prime" the authentication.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 14 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: dmcconkey | last post by:
Hi folks, I've been searching for a while and haven't found my specific question anywhere else. If this has already been asked, please accept my appologies and point me to the appropriate...
0
by: Ronald Wunderlich | last post by:
Hi, My first Question: can db2 (db2ckpw) ask over pam_ldap my edirectory ldap server for user authentication? The scenario: 1. computer suse linx enterprise server 8(SLES8) and edirectory...
3
by: mrwoopey | last post by:
Hi, I am using the example "Authenticate against the Active Directory by Using Forms Authentication and Visual Basic .NET": http://support.microsoft.com/default.aspx?scid=KB;EN-US;326340 ...
1
by: Serge | last post by:
Good Day Folks, I'm still trying to write a class to do LDAP searches on a Novell eDirectory. I've yet to see anything that even compiles, this includes samples from MSDN. Amazing. I...
6
by: Notgiven | last post by:
I am considering a large project and they currently use LDAP on MS platform. It would be moved to a LAMP platform. OpenLDAP is an option though I have not used it before. I do feel fairly...
4
by: Terry Miller | last post by:
I have DB2 V8.2 loaded on a Redhat Enterprise Linux version 3 (RHEL 3) box. RHEL is configured to talk to LDAP for authenticaton besides the local passwd file. I can verify this by executing an su...
2
by: duncan beaumont | last post by:
Hi, - SQLserver 2000 - Yellowfin 2.4 - Windows 2003 server I have been asked to investigate seting up LDAP authentication to access our Yellowfin reporting.
0
by: jayadevi | last post by:
Is it possible to configure an IIS to do both LDAP authentication and Windows authentication? For ex: Suppose one application of server A is hosted in IIS. The requests come from two different...
3
by: RJN | last post by:
Hi I've written a code that queries Windows LDAP server and works fine, but the same doesn't work when querying Solaris LDAP server. DirectoryEntry de = new...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.