Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Security Problem With Active Directory

Reply
Thread Tools

Security Problem With Active Directory

 
 
Hriday
Guest
Posts: n/a
 
      07-03-2004
Hi there,

I want to get root path for my Active directory. My Active Directory Machine and Web server are on different phisical machine in the same domain. When I execute bellow code form my Web server machine in a web Application,I get error that The specified domain either does not exist or could not be contacted.

Dim RootDSE As New
DirectoryServices.DirectoryEntry("LDAP://RootDSE")
MsgBox(RootDSE.Properties("DefaultNamingContext"). Value)


But the same code gives my root path of AD as
DC=AD,DC=MyComp,DC=Com when I excute it from a Windows
Applicatoin. Why is it so...?

same code gives right result from Windows App, but gives
above error from my Web Application...is this because of
there is some (security)problem of my IIS ? otherwise what is
different in accessing AD through Windows App and Web App..

How can I get or set my IIS root path to my Active
directory?

any help highelly appreciated.

Thanking you..
Hriday.


___
Newsgroups brought to you courtesy of www.dotnetjohn.com
 
Reply With Quote
 
 
 
 
Joe Kaplan \(MVP - ADSI\)
Guest
Posts: n/a
 
      07-03-2004
It is a security context problem. ASP.NET typically runs as a local machine
account instead of a domain account, and ADSI/S.DS needs the domain security
context to infer a domain controller when you use serverless binding.

You should either specify a specific domain controller DNS name, specify the
DNS name of the domain you want to use, or change your underlying security
model in ASP.NET to use a domain account. For the first two options, you
binding string would change to:
LDAP://mydc.mydomain.com/rootdse
LDAP://mydomain.com/rootdse

More details here:
http://support.microsoft.com/default...b;en-us;329986

Joe K.

"Hriday" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi there,
>
> I want to get root path for my Active directory. My Active Directory

Machine and Web server are on different phisical machine in the same domain.
When I execute bellow code form my Web server machine in a web Application,I
get error that The specified domain either does not exist or could not be
contacted.
>
> Dim RootDSE As New
> DirectoryServices.DirectoryEntry("LDAP://RootDSE")
> MsgBox(RootDSE.Properties("DefaultNamingContext"). Value)
>
>
> But the same code gives my root path of AD as
> DC=AD,DC=MyComp,DC=Com when I excute it from a Windows
> Applicatoin. Why is it so...?
>
> same code gives right result from Windows App, but gives
> above error from my Web Application...is this because of
> there is some (security)problem of my IIS ? otherwise what is
> different in accessing AD through Windows App and Web App..
>
> How can I get or set my IIS root path to my Active
> directory?
>
> any help highelly appreciated.
>
> Thanking you..
> Hriday.
>
>
> ___
> Newsgroups brought to you courtesy of www.dotnetjohn.com



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP.NET 1.1 Active Directory Role Based Security Question Mike ASP .Net 5 06-09-2006 01:31 PM
Intranet security should based on Active Directory or Database Patirck Ige ASP .Net 4 10-31-2005 06:28 AM
Active Directory object security =?Utf-8?B?SmF5IEFybXN0cm9uZw==?= ASP .Net 0 02-25-2005 07:57 PM
Active Directory Search fails ("The directory service is unavailab ejcosta ASP .Net Security 2 10-08-2004 09:57 AM
Using Active Directory to handle application security Tom Ewall Java 1 08-17-2004 04:24 AM



Advertisments