J
JKruza
Hello!
I have intranet web app in ASP.NET 2.0. IIS is set to require "Windows
Integrated" or "Digest against AD" authentication. ASP.NET auth mode is
"Windows", impersonation is set to true.
Up to this moment everything works just fine.
The problem is, that i can't query AD in any way without providing user
credentials.
I tried both direct LDAP queries trough DirectoryEntry and
ActiveDirectoryMembership, in every case username and password was required.
I simply can't find any info or example not using credentials...
Additional info:
Server: Windows Server 2000 with IIS and ASP.NET
User I'm impersonating with is domain user and belongs to "Administrators"
group on this server. (Target is to auth. and impersonate with any domain
user...)
Code security trust level is "Full".
Launching console or windows app reusing the same code on this server works
fine without providing credentials.
Because of the company policy I can't hardcode (or put in config)
credentials of any domain user...
Again: Is this possible to query AD trough LDAP without providing
credentials from ASP.NET 2.0 app? I'm starting to doubt...
Thanks in advance,
JK
I have intranet web app in ASP.NET 2.0. IIS is set to require "Windows
Integrated" or "Digest against AD" authentication. ASP.NET auth mode is
"Windows", impersonation is set to true.
Up to this moment everything works just fine.
The problem is, that i can't query AD in any way without providing user
credentials.
I tried both direct LDAP queries trough DirectoryEntry and
ActiveDirectoryMembership, in every case username and password was required.
I simply can't find any info or example not using credentials...
Additional info:
Server: Windows Server 2000 with IIS and ASP.NET
User I'm impersonating with is domain user and belongs to "Administrators"
group on this server. (Target is to auth. and impersonate with any domain
user...)
Code security trust level is "Full".
Launching console or windows app reusing the same code on this server works
fine without providing credentials.
Because of the company policy I can't hardcode (or put in config)
credentials of any domain user...
Again: Is this possible to query AD trough LDAP without providing
credentials from ASP.NET 2.0 app? I'm starting to doubt...
Thanks in advance,
JK