Re: Change user's group in ASP.NET

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 01/29/04


Date: Thu, 29 Jan 2004 14:54:38 -0600

Assuming you have an NT4 domain, then you should be able to make these
changes using the WinNT provider with System.DirectoryServices. However, I
am not at all an expert in NT4 domains, only Active Directory.

I suggest you repost your question in microsoft.public.adsi.general and let
some of the other experts in this area help out.

Joe K.

"Memi Lavi" <mamil@bezeqint.net> wrote in message
news:fc2413bf.0401291103.4daf708c@posting.google.com...
> Oops. sorry for forgeting mention that important detail...
>
> The users and groups are domain-wide.
> I'm not familiar with the WinNT provider and the directoryServices
> namespace. Could you please supply a sample of using it in order to
> change user's group?
>
> Thanks!
>
> "Joe Kaplan \(MVP - ADSI\)" <joseph.e.kaplan@removethis.accenture.com>
wrote in message news:<uFyK11n5DHA.1664@TK2MSFTNGP11.phx.gbl>...
> > If you don't have AD, what do you have that is the source of the user's
> > groups? Are they from an NT4 domain or a local machine?
> >
> > In either case, you would use System.DirectoryServices with the WinNT
> > provider to do group membership changes.
> >
> > Joe K.
> >
> > "Memi Lavi" <mamil@bezeqint.net> wrote in message
> > news:fc2413bf.0401290412.47ecf75d@posting.google.com...
> > > Hi Guys.
> > >
> > > I need a way to change a user's group in the OS. Unfortunately, I
> > > don't have Active Directory, so I won't be able to use it.
> > > I've searched through the docs, but couldn't find any way of doing so.
> > > I believe a task like this will require high permissions for the IIS
> > > and ASPNET users, but it's not a problem for me.
> > >
> > > How can I do that?



Relevant Pages

  • Re: Newbie : How to query a SAM (NT4) profile using System.DirectoryServices
    ... You can only use the WinNT provider if you are talking an NT4 domain. ... use LDAP, you must use Active Directory or another LDAP database. ... Joe K. ...
    (microsoft.public.dotnet.security)
  • how old a computer account is in an NT4 domain
    ... Can I use ADSI to find out how old a computer Account in NT4 domain is? ... assuming I'd need to use the winNT provider but what attribute should I use? ...
    (microsoft.public.windows.server.scripting)
  • Re: Active Directory interim set up
    ... Our main office is not ready for W2K3 migration so I ... > To make it short, you upgrade your PDC to W2K3, set the Forest and Domain ... >> Currently our company has about 600 computers running NT4 Domain. ... >> don't plan on upgrading to Active Directory 2003 anytime soon. ...
    (microsoft.public.windows.server.active_directory)
  • Error code 87 - NetUserGetLocalGroups - Windows 2003 Active Directory
    ... Last week our customer upgraded his Windows NT4 domain to a Windows 2003 ... Active Directory using the so called "In-Place Ugrade". ... "NetUserGetLocalGroups" returns error code 87. ... In a NT4 domain environment this problem doesn't occurs. ...
    (microsoft.public.win32.programmer.networks)
  • Re: Trust to nt 4 domain from w2k3 forest
    ... Craig Hackl posted their thoughts, ... > so i think it's something in the nt4 domain that is preventing me from ... Microsoft Windows MVP - Active Directory ...
    (microsoft.public.win2000.active_directory)