Re: Listing domain users



Agreed. Don't do any LDAP for this. Windows does all of the group lookup
stuff for you with WindowsPrincipal.IsInRole (for any version of ASP.NET)
and the new membership stuff for 2.0.

Joe K.

"MikeS" <michael.spencer@xxxxxxxxx> wrote in message
news:1140467048.358973.213000@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The simple answer may be that you may need to use of a rolemanager and
make use of calls to User.IsInRole to determine what you will allow
your users see and do.

I wonder about some other things...

Are you using the WindowsTokenRoleProvider, that is, are the roles you
mentioned defined as NT groups?

Do you have your sql procs locked down with grants based on these same
roles so that you need to impersonate the callers role back to the
database? If so you may want to use different connection strings based
on each type of user. ...Or is there a (nother can of worms) middle
tier...

Me, I think it is probably more trouble to manage different views in a
single page than to just create the three pages that know exactly who
they are dealing with and isolate as much common functionality using
web controls and master pages. But otherwise maybe look at the
multiview control.

Note that location tag lock downs using windows auth and NT group names
don't need a full blown rolemanger but as soon as you want to call any
Roles.* method or anything like it you need the rolemanager.



.



Relevant Pages

  • RE: Dynamic Menu Display problem
    ... installed with the Visual Web Developer on Windows XP, ... "Jyn Burkhart" wrote: ... > This might be more appropriate in the web controls category, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IE Web Controls on Windows Server 2003...
    ... I have posted how to install it here at: http://spaces.msn.com/naijacoder ... I am trying to get a web application to work on a Windows Server ... This didn't seem to work for the IE Web Controls. ...
    (microsoft.public.dotnet.framework.aspnet)
  • IE Web Controls on Windows Server 2003...
    ... Thud! ... I am trying to get a web application to work on a Windows Server ... This didn't seem to work for the IE Web Controls. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to capture current cell address in a datagrid
    ... Well Giri, that explains a lot. ... This news group is dedicated to windows ... For web controls you might have better luck in ...
    (microsoft.public.dotnet.framework.windowsforms)