|
Posted by Jerry Stuckle on 07/14/07 01:21
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.
jstucklex@attglobal.net
==================
[Back to original message]
|