propagating LDAP Authentication to IIS with PHP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I'm using IIS 5 and PHP 4.3.5.

I have an html page, page1, that resides at server.
It contains a form asking a user to login. I then check the login by
connecting to 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 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

Re: propagating LDAP Authentication to IIS with PHP

jesbuddy07 wrote:
Quoted text here. Click to load it

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.

Site Timeline