Request.ServerVariables(AUTH_USER)

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Request.ServerVariables(AUTH_USER)

    I've noticed on my company's intranet that the
    Request.ServerVariables(AUTH_USER) command will not return a value unless
    the requesting web page's permission has been restricted first. Otherwise
    there is no need for no authentication and the value remains null.

    I would like to be able to take advantage of that variable request in an
    application, but I don't want to have to keep updating the permission list
    for the web page as employees come and go.

    Is there a way to restrict the page to members of the organization all at
    once, so that I can then be able to retrieve the individual user's name with
    the request?


    Mike Z Guest

  2. Similar Questions and Discussions

    1. Workaround needed for: Request.ServerVariables("HTTP_Referer")
      Hi. Having trouble with Request.ServerVariables("HTTP_Referer") due to firewalls etc. Does anyone have a neat workaround other than passing and...
    2. Display Request.ServerVariables in .CFM
      Can someone show me how to display the values of Request.ServerVariables in .CFM file? Many Thanks
    3. Request.ServerVariables Question
      i would like to capture the server variables from a remote server in our org. is this possible ??
    4. Automatic Login - Forms Authentication - Request.ServerVariables["LOGON_USER"]
      Hi there, I'm busy building a site that authenticates users from a database but would like Windows authenticated users to bypass the logon screen...
    5. Request.ServerVariables missing?
      Hello to all, Here is my situation. I have an old .ASP application that is doing the following: Uses Request.ServerVariables("Auth_User")...
  3. #2

    Default Re: Request.ServerVariables(AUTH_USER)

    I believe that in order for this to work, you'll need to turn of Anonymous
    Authentication to your site in IIS (at least that's the way it works for the
    LOGON_USER variable). Hopefully, after that, IIS should have access to that
    information (hopefully!).

    Best regards,
    Chris


    Chris In Madison Guest

  4. #3

    Default Re: Request.ServerVariables(AUTH_USER)

    Thanks for replying. Below shows who is listed in the Properties/Security
    tab of a standard unsecured file:

    Administrators (Acme\Administrators)
    Everyone
    Internet Guest Account (Acme\IUSR_D323R511)
    Internet Guest Account (Acme\IUSR_913R511)
    My Name (MyName at Acme dot Com)
    NWSERVICES Admins (Acme\NWSERVICES Admins)
    NWSERVICES Authors (Acme\NWSERVICES Authors)
    NWSERVICES Browsers (Acme\NWSERVICES Browsers)
    SYSTEM

    Acme represents the company name and My Name represents me. Does one of
    those control Anonymous Authentication, or is it something that has to be
    configured on the web server for the entire site?

    Typically when I secure a file or folder, I remove the "Everyone" and guest
    accounts (IUSR), so that I end up with this:

    Administrators (Acme\Administrators)
    My Name (MyName at Acme dot Com)
    NWSERVICES Admins (Acme\NWSERVICES Admins)
    NWSERVICES Authors (Acme\NWSERVICES Authors)
    NWSERVICES Browsers (Acme\NWSERVICES Browsers)
    SYSTEM
    And then the user names of allowed employees

    Thanks for anymore answers regarding this.


    Mike Z Guest

  5. #4

    Default Re: Request.ServerVariables(AUTH_USER)

    I believe giving permission to the "Authenticated Users" group will do as
    you need.
    Double check me, though:
    [url]http://www.microsoft.com/technet/prodtechnol/windows2000serv/evaluate/featfunc/07w2kadc.mspx[/url]

    "Mike Z" <mikeyz@rocktmail.com> wrote in message
    news:d4o7jt$lsj$1@forums.macromedia.com...
    > Thanks for replying. Below shows who is listed in the Properties/Security
    > tab of a standard unsecured file:
    >
    > Administrators (Acme\Administrators)
    > Everyone
    > Internet Guest Account (Acme\IUSR_D323R511)
    > Internet Guest Account (Acme\IUSR_913R511)
    > My Name (MyName at Acme dot Com)
    > NWSERVICES Admins (Acme\NWSERVICES Admins)
    > NWSERVICES Authors (Acme\NWSERVICES Authors)
    > NWSERVICES Browsers (Acme\NWSERVICES Browsers)
    > SYSTEM
    >
    > Acme represents the company name and My Name represents me. Does one of
    > those control Anonymous Authentication, or is it something that has to be
    > configured on the web server for the entire site?
    >
    > Typically when I secure a file or folder, I remove the "Everyone" and
    > guest accounts (IUSR), so that I end up with this:
    >
    > Administrators (Acme\Administrators)
    > My Name (MyName at Acme dot Com)
    > NWSERVICES Admins (Acme\NWSERVICES Admins)
    > NWSERVICES Authors (Acme\NWSERVICES Authors)
    > NWSERVICES Browsers (Acme\NWSERVICES Browsers)
    > SYSTEM
    > And then the user names of allowed employees
    >
    > Thanks for anymore answers regarding this.
    >

    Lionstone Guest

  6. #5

    Default Re: Request.ServerVariables(AUTH_USER)

    That's half of the equation. You've got the user/group access rights to the
    folders of the web site, and that's good. The next part is to tell IIS to
    use those permissions.

    Go to your IIS console and right click the web site in question and choose
    Properties. Go to the Directory Security tab, then click the Edit button
    under Anonymous access and authentication control. Uncheck the Anonymous
    access checkbox then select an authentication method below it. If your
    visitors are using IE/Win only, you can use the Integrated Windows
    Authentication option. I believe that's the one that the AUTH_USER variable
    uses. If you're using other browsers and/or operating systems, you'll
    probably want to use Basic Authentication and the LOGON_USER variable (I
    believe that's the one).

    Keep in mind that Basic Authentication sends credentials in plain text.
    Windows Authentication is encrypted as I recall.

    I think that should cover it, but it's been a long time since I did this
    kind of thing.

    Best regards,
    Chris


    Chris In Madison Guest

  7. #6

    Default Re: Request.ServerVariables(AUTH_USER)

    Thanks to both of you for the help, I've decided to keep it simple and not
    authenticate users for this application. I was concerned about people
    deleting entries, but I figured out that the application will be write-only
    now so I won't have to protect the entries.

    I did not get around to trying the suggestion of removing anonymous
    authentication on the server, but I will keep it in mind if I want to force
    authentication for the intranet users.


    Mike Z Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139