propagating LDAP Authentication to IIS with PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jesbuddy07

    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.co m 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

  • Jerry Stuckle

    #2
    Re: propagating LDAP Authentication to IIS with PHP

    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.co m 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@attgl obal.net
    =============== ===

    Comment

    Working...