Hi
This is the code we wrote:

Dim memberscollection As Object
        Dim group As New
DirectoryEntry("WinNT/NTTestDomain/Co5049/Users,group",
"Administrator", "intelligroup",
System.DirectoryServices.AuthenticationTypes.Secure)
        memberscollection = group.Invoke("Members")
        Dim filter As System.Object() = {"user"}
        memberscollection.Filter = filter
        Dim user As Object
        For Each user In memberscollection
            MessageBox.Show("ADsPath " + user.ADsPath
+ "Name: " + user.Name)
        Next


Since we are working with a remote machine we are
giving username and password. still we have the same
problem. pls help in this issue.

thanks
george









--- Willy Denoyette <[EMAIL PROTECTED]>
wrote:
> If "serverName" denotes a local machine, there
> should be no problem binding with the current
> process identity, but
> you'll have to specify valid credentials when
> binding against a remote machine (see DirectoryEntry
> - UserName and
> Password properties).
>
> Willy.
>
> ----- Original Message -----
> From: "george antony" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 22, 2002 7:59 AM
> Subject: Re: [DOTNET] Retrieving user properties
> from a WinNT provider using .Net
>
>
> > There is a comexception thrown  when the
> Group.Invoke
> > method is called .It says Access denied . what do
> we
> > do abt this ? Some more help pls ..
> > thanks in advance
> > George
>
> You can read messages from the DOTNET archive,
> unsubscribe from DOTNET, or
> subscribe to other DevelopMentor lists at
http://discuss.develop.com.


__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to