Results 1 to 4 of 4

Thread: PHP and IIS : What is the username provided ?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212

    Question PHP and IIS : What is the username provided ?

    Hi there,

    I'm fairly new to this PHP-thing while having done loads of ASP. I'm currently creating an intranet website using PHP and I don't know how to retrieve the username provided by the IIS authentication ?

    $_Server["PHP_AUTH_USER"] doesn't seem to work and I need this information to retrieve information about the people who logged on.

    Thanks in advance,
    Regards,

    El-Nino

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    post your code
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212
    $UserName = $_SERVER['PHP_AUTH_USER'];

    But remember this is running under IIS...
    Regards,

    El-Nino

  4. #4
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337
    The login name with be stored in $AUTH_USER or $_SERVER[AUTH_USER] with $AUTH_TYPE or $_SERVER[AUTH_TYPE] containing the authentication type e.g. NTLM


    NTLM authentication is possible with PHP assuming A) you run it on a NT/2000/.NET box, B) IIS is used.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width