IIS Auth

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

    IIS Auth

    Hi

    I was wondering how I could get the username of the user that is logged in
    though the auth of IIS...

    Is also a way where I can get information on the current user from Active
    Directory, is there sometime of dll for this?

    Thanks,

    --

    - Hayden Kirk
    Technical Manager
    iXon LTD


  • Dennis Biletsky

    #2
    Re: IIS Auth


    "Hayden Kirk" <spam@spam.co m> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
    news:Bl3fc.316$ cY5.26839@news0 2.tsnz.net...[color=blue]
    > Hi
    >
    > I was wondering how I could get the username of the user that is logged in
    > though the auth of IIS...
    >
    > Is also a way where I can get information on the current user from Active
    > Directory, is there sometime of dll for this?
    >
    > Thanks,
    >
    > --
    >
    > - Hayden Kirk
    > Technical Manager
    > iXon LTD
    >
    >[/color]
    Yes you can get information from Active Directory using LDAP
    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.



    Comment

    • Dennis Biletsky

      #3
      Re: IIS Auth


      "Hayden Kirk" <spam@spam.co m> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
      news:Bl3fc.316$ cY5.26839@news0 2.tsnz.net...[color=blue]
      > Hi
      >
      > I was wondering how I could get the username of the user that is logged in
      > though the auth of IIS...
      >
      > Is also a way where I can get information on the current user from Active
      > Directory, is there sometime of dll for this?
      >
      > Thanks,
      >
      > --
      >
      > - Hayden Kirk
      > Technical Manager
      > iXon LTD
      >
      >[/color]
      Auth via IIS can be occur using NTLM.
      http://www.innovation.ch/java/ntlm.html read it there


      Comment

      • Hayden Kirk

        #4
        Re: IIS Auth

        Awsome

        Thanks for the LDAP.

        Umm, I was wondering though, when someone logins in via authentication, like
        htaccess file, can I get the username of that user that has logged in? Will
        this work in Windows or is that something different again?

        Thanks.

        "Hayden Kirk" <spam@spam.co m> wrote in message
        news:Bl3fc.316$ cY5.26839@news0 2.tsnz.net...[color=blue]
        > Hi
        >
        > I was wondering how I could get the username of the user that is logged in
        > though the auth of IIS...
        >
        > Is also a way where I can get information on the current user from Active
        > Directory, is there sometime of dll for this?
        >
        > Thanks,
        >
        > --
        >
        > - Hayden Kirk
        > Technical Manager
        > iXon LTD
        >
        >[/color]


        Comment

        • Dennis Biletsky

          #5
          Re: IIS Auth


          "Hayden Kirk" <spam@spam.co m> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
          news:qekfc.468$ cY5.45703@news0 2.tsnz.net...[color=blue]
          > Awsome
          >
          > Thanks for the LDAP.
          >
          > Umm, I was wondering though, when someone logins in via authentication,[/color]
          like[color=blue]
          > htaccess file, can I get the username of that user that has logged in?[/color]
          Will[color=blue]
          > this work in Windows or is that something different again?
          >
          > Thanks.
          >
          > "Hayden Kirk" <spam@spam.co m> wrote in message
          > news:Bl3fc.316$ cY5.26839@news0 2.tsnz.net...[color=green]
          > > Hi
          > >
          > > I was wondering how I could get the username of the user that is logged[/color][/color]
          in[color=blue][color=green]
          > > though the auth of IIS...
          > >
          > > Is also a way where I can get information on the current user from[/color][/color]
          Active[color=blue][color=green]
          > > Directory, is there sometime of dll for this?
          > >
          > > Thanks,
          > >
          > > --
          > >
          > > - Hayden Kirk
          > > Technical Manager
          > > iXon LTD
          > >
          > >[/color]
          >
          >[/color]

          This should works:
          "Another limitation is if you're using the IIS module (ISAPI), you may not
          use the PHP_AUTH_* variables but instead, the variable HTTP_AUTHORIZAT ION is
          available. For example, consider the following code: list($user, $pw) =
          explode(':', base64_decode(s ubstr($_SERVER['HTTP_AUTHORIZA TION'], 6)));
          IIS Note:: For HTTP Authentication to work with IIS, the PHP directive
          cgi.rfc2616_hea ders must be set to 0 (the default value). "


          Comment

          Working...