Security Problem With Active Directory

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Security Problem With Active Directory

    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 [url]www.dotnetjohn.com[/url]
    Hriday Guest

  2. Similar Questions and Discussions

    1. I have a problem with LDAP (Active Directory).
      Hi, I would like that they were helping me in a problem: I need to authenticate my users inside the domain with the Active Directory without the...
    2. Get UserGroup of Active Directory to control the security
      Hi, I have an ASP.Net Intranet App with C#. I don't need to ask users about by User and PWD since they are already logged in. This is acheived...
    3. Obsucre Active Directory Problem
      We have a very obscure problem relating to Active Directory. We have an application server, Silver Stream, which pulls user names from the...
    4. user security policy active directory
      I want to apply a policy to a single user in our domain. For example, take away the run command, force background, etc. Like you could do with...
    5. Local v. Domain/Active Directory Security
      I have what I believe is fairly common. I am running XP Pro on a home network. I have 4 computers connected to a LinkSys router/switch. I use...
  3. #2

    Default Re: Security Problem With Active Directory

    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:
    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;329986[/url]

    Joe K.

    "Hriday" <hriday_rai@yahoo.com> wrote in message
    news:%23JKcFkMYEHA.3420@TK2MSFTNGP12.phx.gbl...
    > 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 [url]www.dotnetjohn.com[/url]

    Joe Kaplan \(MVP - ADSI\) Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139