Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Posts
    25

    Unanswered: Authentication modes IIS 4.0

    Hi all,

    I'm working with IIS 4.0 and ASP pages. I've configured IIS with Anonymous and Challenge authentication modes (both are checked). I'm asking IIS server for the user name, but no user name is returned (I'm logged into the same domain).

    What is the authentication flow? I thought that the first authentication mode used was the most restrictive and then the others. In this case it seems that only the anonymous mode is being used.

    What can I do in order to obtain the user name (if the user is logged into a Windows domain)? and How can I know which mauthetication method was used?

    Thanks in advance.

    God Bless.

  2. #2
    Join Date
    Nov 2002
    Posts
    11
    Nope. The only time you'll trigger NTCR authentication if Allow Anonymous is also checked is if you hit a file on the server that has NTFS permissions that do not allow anonymous access (IUSR_<machinename> doesn't have read permissions.

    If you want to force a login, you'll need to uncheck allow anonymous.

    But... If I read your question right, you want to know whether they are logged into the local domain and under what username... I think you may need to investigate ADSI for that functionality (if you can even do it without an ActiveX control).

    Hope this helps...
    - Brandon

  3. #3
    Join Date
    Feb 2002
    Location
    North Wales, UK
    Posts
    114
    You can retrieve what username they have logged on under using the Server object in normal ASP but that is all you'll be able to return.
    J^ - web | email
    newsASP Developer

Posting Permissions

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