Re: VB .Net Security Question

From: Joe Kaplan (ilearnedthisthehardway@noway.com)
Date: 02/17/03


From: "Joe Kaplan" <ilearnedthisthehardway@noway.com>
Date: Mon, 17 Feb 2003 11:03:43 -0600


The user's token needs to include the new group information. Depending on
the domain controller where you made the change, the domain controller the
user is logged in to, replication lag, the last time the user actually
logged in, etc., there could be all kinds of lag.

So I guess that is normal. You might be able to minimize this in a web app
by making your group membership changes to the same DC that the web server
is authenticating against (if you can figure that out...).

Glad things are working better though!

Joe K.

"David Allen" <dallen@carrieraccess.com> wrote in message
news:#g0wENq1CHA.1776@TK2MSFTNGP09...
> Well, things go a whole lot better once I installed .Net Framework SP2! I
> also got better results once I ensured that it was a WindowsPrincipal
object
> that I was dealing with (thanks Joe!). I am still finding that there is a
> serious lag between the time that I make a change in the group membership,
> and the time that the check works correctly and notices it. Is this
normal?
>
> - Dave
>
> "Joe Kaplan" <ilearnedthisthehardway@noway.com> wrote in message
> news:#hw8mt90CHA.2372@TK2MSFTNGP09...
> > You definitely need the domain name in front of the group if it is a
> Windows
> > domain group. Are you sure the current principal is a WindowsPrincipal
> and
> > is a member of that domain group? You can do a quick and dirty
imperative
> > check in ASP.NET with context.User.IsInRole("DOMAIN\ArtUser").
> >
> > Joe K.
> >
> > "David Allen" <dallen@carrieraccess.com> wrote in message
> > news:eyQDMZ40CHA.428@TK2MSFTNGP09...
> > > Hi:
> > > I am working on the middle tier of an enterprise application, and am
> > > embedding security checking in it. I am trying to use the following
> > snippet
> > > of code to check to see if the currently logged-on use is in the group
> > > ArtUser. I have tried putting the domain in front of the group name
> > > (DOMAIN\ArtUser) and that didn't work. I can make this code work just
> fine
> > > if I use on of the BUILTIN groups like BUILTIN\Users, and it works
fine
> > > using Name := and the user's name. Can anyone help me out with this?
Am
> I
> > > missing something that is just blatently obvious?
> > >
> > > <PrincipalPermission(SecurityAction.Demand, Role:="ArtUser")>
_
> > > Public Function GetArtRefs() As ArtRefs
> > >
> > > 'returns a collection of artref objects.
> > > Dim oRefs As New ArtRefs()
> > >
> > > Thanks in advance,
> > >
> > > Dave Allen
> > >
> > >
> >
> >
>
>



Relevant Pages

  • Re: VB .Net Security Question
    ... the domain controller where you made the change, ... logged in, etc., there could be all kinds of lag. ... > serious lag between the time that I make a change in the group membership, ...
    (microsoft.public.dotnet.security)
  • Re: ADPrep
    ... make sure that you follow the article exactly so that you have the correct permissions/ group membership to modify the schema. ... run the ADPrep.exe located on the Windows 2003 CD media but from my 2000 FSMO ... >> I'm planning to intrduce the first Windows 2003 Domain Controller in my ... I have to run ADPrep/Forestprep and>> ADPrep/DomainPrep before I introduce the firs 2003 DC. ...
    (microsoft.public.win2000.active_directory)
  • Re: AD sites and services
    ... A search for "Active Directory Sites" yeilds the following: ... After an Unsuccessful Domain Controller Demotion" ... http://support.microsoft.com?kbid=220140 "FRS Replication Protocol and Topology ... Windows 2000 Domain Controllers" ...
    (microsoft.public.win2000.active_directory)
  • RE: Internet Connection Wizard failing at Firewall Config and Secu
    ... You can use the Dcdiag.exe (Domain Controller Diagnostic Tool) included ... in Windows Support Tools to verify the AD status. ... Windows Server 2003 Active Directory Diagnostics, ...
    (microsoft.public.windows.server.sbs)
  • Site-tosite VPN Issue
    ... Windows Server 2003 domain controller ... Mixture of PCs running Windows 2000 Profressional with SP3 and Windows XP ... the VPN to the Windows Server 2003 domain controller. ... 12.7MB file from the server to the client PC. ...
    (microsoft.public.windows.server.networking)