Querying AD on Win 2K3 server

P

Pradeep

Hi,
I have pounded my head for the last couple of hours tyring ot figure out
on how to make my query using LDAP to the AD. The code works fine on XP. And
also works great in a windows application. But on a web page, it just fails.
I am sure its something to do with IIS settings on Win 2K3 server. But dont'
know what. Would be really really thankful if someone can help me out here.

thanks in advance.
Pradeep
 
J

Joe Kaplan \(MVP - ADSI\)

Can we see the code and also see the stack trace from the exception? If the
code is complex, please post a simple sample that demonstrates the issue.

I would expect that your problem is indeed related to security. If your
DirectoryEntry objects do not include specific credentials, you'll use the
current thread identity to access the directory. This can be discovered
with System.Security.Principal.WindowsIdentity.GetCurrent().Name. Depending
on what this identity is and how it was generated, it might be able to
authenticate with a remote AD or not. If you are impersonating the logged
in user in ASP.NET and use IWA with IIS and the browser is on a different
machine than the web server, you'll need to implement Kerberos delegation.

HTH,

Joe K.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top