Re: Active Directory and Dotnet....
From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 01/13/04
- Next message: Michel Gallant: "Re: How remove Private key located in the registry?"
- Previous message: Hernan de Lahitte: "Re: Authenticate through AD"
- In reply to: Yaseen: "Active Directory and Dotnet...."
- Next in thread: Yaseen: "Re: Active Directory and Dotnet...."
- Reply: Yaseen: "Re: Active Directory and Dotnet...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 13 Jan 2004 10:05:37 -0600
You didn't mention what environment you were running in, but in order to use
serverless binding and default credentials, the current security context
must be a domain account in the domain you are trying to contact. You can
discover this with
System.Security.Principal.WindowsIdentity.GetCurrent().Name.
Also, if you are in an ASP.NET environment and using impersonation, you may
be having double hop issues. This document is very helpful:
http://support.microsoft.com/default.aspx?scid=kb;en-us;329986
Joe K.
"Yaseen" <yaseen@egulfweb.com> wrote in message
news:0ba001c3d9e5$28150430$a401280a@phx.gbl...
> Hi,
>
> I am trying to access the users of active directory.
> I am passing only path to the DirectoryEntry.
> If i pass the username and password along with the path it
> gives all the users from and domain. If i dont pass
> username and password it doesn't give any user.
>
> If i dont pass username and password and check for the
> schemaclassname it gives only one class name as "Schema"
> instead of other classes like user,group,computer,printer
> etc.
>
> Is there anything else to set to access the users from the
> domain?
>
> Regards
> Yaseen
- Next message: Michel Gallant: "Re: How remove Private key located in the registry?"
- Previous message: Hernan de Lahitte: "Re: Authenticate through AD"
- In reply to: Yaseen: "Active Directory and Dotnet...."
- Next in thread: Yaseen: "Re: Active Directory and Dotnet...."
- Reply: Yaseen: "Re: Active Directory and Dotnet...."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|