Re: Authenticate user is in local NT group

From: Bob (nobody_at_nowhere.com)
Date: 11/18/05


Date: Thu, 17 Nov 2005 20:02:06 -0800

Wow that worked perfectly! Thank you so much Dominick!

"Dominick Baier [DevelopMentor]" <dbaier@pleasepleasenospamdevelop.com>
wrote in message news:4580be6313f86b8c7b9f61e029778@news.microsoft.com...
> Hello Bob,
>
> simply call Page.User.IsInRole("MachineName\GroupName");
>
> ---------------------------------------
> Dominick Baier - DevelopMentor
> http://www.leastprivilege.com
>
>> I have an IIS server (Windows Server 2003) on an NT domain. I have an
>> ASPX page (using C# and .NET 2.0) which queries a bunch of files (an
>> index server query) and then displays links of the matching files to
>> the user. The links are network UNC paths into the same server. The
>> share is secured by a local NT group which I can populate with domain
>> NT groups and users.
>>
>> However, though the files themselves are protected, any user can go to
>> the query page and submit a query (even though they cannot see the
>> file contents). Basically I need a way to determine if the user
>> (anonymous users are disabled) is within the local NT group I have
>> created. Currently to perform this authentication I simply try to
>> open a known file on the share within the ASPX page (the server is
>> impersonating the user). If the file open fails, then the user is not
>> authenticated. Though this has been working fine, I would like to
>> write C# in the ASPX page which authenticates the user "the right
>> way."
>>
>> Can somebody please tell me what is the correct ASPX method for
>> authenticating the current user in a local NT group?
>>
>> Thanks
>>
>
>



Relevant Pages

  • Re: Authenticate user is in local NT group
    ... > index server query) and then displays links of the matching files to ... The links are network UNC paths into the same server. ... Currently to perform this authentication I simply try to ... > open a known file on the share within the ASPX page (the server is ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Authenticate user is in local NT group
    ... I have an IIS server on an NT domain. ... I have an ASPX ... query) and then displays links of the matching files to the user. ... perform this authentication I simply try to open a known file on the share ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: MailMerge hangs and crashes with Access on Server
    ... Since I am fairly new to working in this environment, I am not sure what you mean by an "Access group" with help to restructuring the query? ... "Peter Jamieson" wrote: ... All I know is that the performance of queries depends to a large extent on whether, for example, a join is performed on the client side, or on the server side, incurring no network traffic and potentially benefitting from caching on the server. ... There are no dialog boxes, and actually, I have now split the database, and have kept the Word templates and the Access frontend locally on my machine, and moved the backend to the server. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Performance Benchmarks?
    ... Are attribute relationships defined properly on the dimensions? ... If you run Profiler against the server, how long is spent in "Query ... I have created aggregations (Partitions tab in cube design). ...
    (microsoft.public.sqlserver.olap)
  • High CPU in client (Excel, OWC, Proclarity, etc.) accessing Analysis Services
    ... the OWC10 with 3 dimensions on the row axis, ... The largest size of any of these 4 dimensions < 360 members. ... Performance Guide to optimize the query, the cube, the server, etc. ...
    (microsoft.public.sqlserver.olap)