Re: The server is not operational

From: CalSun (calsun_at_gmail.com)
Date: 07/26/05


Date: Tue, 26 Jul 2005 10:58:55 -0700

My bad. It was a typo with a key in appsetting where I have the value set.
Thanks Joe and have a great day.
--CalSun

"Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
in message news:u6di8%23fkFHA.2156@TK2MSFTNGP14.phx.gbl...
> When you do your bind with ldp.exe, what credentials did you use? Those
> are probably the exact same credentials you need to use in your
> DirectoryEntry constructor.
>
> In ldp, the "domain" checkbox in the binding dialog is roughly equivalent
> to specifying "AuthenticationTypes.Secure" in your DE constructor.
>
> The anonymous user in IIS should not come into play unless you have
> impersonation enabled in web.config AND you are not supplying credentials
> in your DE constructor. If you specify credentials, it will use the ones
> you specified.
>
> The domain value that you used in ldp that worked should be the domain
> value you use in your LDAP path in your DE constructor. Thus:
>
> mydomain.com
> in ldp would translate to:
> LDAP://mydomain.com/<something here>
>
> The <something here> should be the distinguished name of the object you
> want to bind to or use as a search root.
>
> You can use the "defaultNamingContext" value you see in ldp when it does
> the initial "root DSE" query for you. This assumes you want to bind to
> the domain root object and want to use it as a search root though.
>
> HTH,
>
> Joe K.
>
> "CalSun" <calsun@gmail.com> wrote in message
> news:uPpFTefkFHA.3288@TK2MSFTNGP09.phx.gbl...
>> Hi Joe,
>> thanks for the informative message. I got ldp and could connect to the DC
>> using the domain as mycompany.com. I din't specify SSL or Connectionless,
>> it still goes.
>> Back to IIS, I checked on the Anonymous option and specified a local user
>> name + password to handle all the Anonymous loging. It fails to
>> connect/authenticate.
>> Do we need a domain user to handle the authentication process (at IIS
>> box)? If so, my web server (iis box) is in dmz and I can't see user list
>> from the domain. I tried manualy to assign a domain user to the Anonymous
>> option such as: domain\user + pw. And it didn't work. This got to be a
>> local user to this IIS box (web server).
>>
>> I use form authentication. When a page is requested, client is redirected
>> to a login page.
>>
>> Again, thanks for all the help.
>>
>> CalSun
>>
>> "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com>
>> wrote in message news:upn9fIfkFHA.2916@TK2MSFTNGP14.phx.gbl...
>>> Ldp.exe ships with the Windows Server Admin Pack which comes on the CD
>>> and also ships with ADAM. The most recent released version is with ADAM
>>> or the Windows Server R2 beta if you can get that. I'm pretty sure
>>> there is no separate download for it, but I can also send you a copy if
>>> you email me offline.
>>>
>>> LDP can be used for testing the connection to various directories using
>>> different values for the server name.
>>>
>>> The other important thing to know is that the ADSI binding string
>>> consists of three parts:
>>> <scheme>://<server>/<objectname>
>>>
>>> The scheme is obviously "LDAP" (case-senstive; watch out!). The server
>>> part is OPTIONAL though. If you don't supply a server name, then the
>>> LDAP API tries to discover a server for you based on the security
>>> context of the current thread. This is the thing that tends to trip
>>> people up in web applications as they are often running under a local
>>> machine account which has no domain affiliation, so the request for a
>>> "serverless bind" as it is called fails with this exact error.
>>>
>>> The server name can contain DNS names, IP addresses or NETBIOS names.
>>> However, DNS names are the way to go as both Kerberos and SSL/LDAP need
>>> DNS names to work properly. The DNS name can be the name of the domain
>>> or the DNS name of a specific server.
>>>
>>> The <objectname> is also optional, but I generally think you should
>>> always specify something. If you want to search the root of the domain,
>>> specify the distinguished name of the domain root. This is usually
>>> something like "DC=yourdomain,DC=com" with AD. You can find out this
>>> value dynamically by getting the "RootDSE" object and looking at its
>>> "defaultNamingContext" attribute. This is better than hard-coding. :)
>>>
>>> HTH,
>>>
>>> Joe K.
>>> "Rinks Singh" <singhmultani@hotmail.com> wrote in message
>>> news:%23FHQw2ekFHA.3148@TK2MSFTNGP09.phx.gbl...
>>>> Thanks Joe and Cal for the information on this thread. I am also
>>>> getting
>>>> the same error while trying connect to the AD.
>>>>
>>>> Can I use LDP.EXE from the workstation to make sure about the
>>>> connection.? From where I can downlaod LDP.EXE tool?
>>>>
>>>> I am able to connect to Directory using command prompt by giving like:
>>>> Run LDAP//:DomainName
>>>>
>>>> After that search box appears and I can search based on Object Type.But
>>>> when I try from program I get an error "The server is not Operational"
>>>>
>>>> Need some help to solve this
>>>>
>>>>
>>>> *** Sent via Developersdex http://www.developersdex.com ***
>>>
>>>
>>
>>
>
>



Relevant Pages

  • Re: Active Directory Authentication in IIS 6
    ... I just installed ldp.exe and have no problems using the same credentials ... used in the code to connect and bind. ... settings in IIS, but I am not sure where to look. ... and Integrated Windows Authentication is checked. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Mixing authentication type flags & By design Bug from MS ?
    ... Additionally, if you want to force a Kerberos bind, you ... can specify Delegation in addition to Secure, ... That said, if you specify credentials, it should use the credentials you ...
    (microsoft.public.dotnet.security)
  • Re: IIS6 - Virtual Directory to URL share, authentication problems.
    ... passing credentials across from webserver -> remote file server ... requires Kerberos (if IIS doesn't have the user's password), ... you won't get automatic logon. ... is that the "secure" authentication mechanisms do ...
    (microsoft.public.inetserver.iis.security)
  • Re: Active Directory Authentication in IIS 6
    ... Dim obj As Object = entry.NativeObject. ... NMOWeb.FormsAuth.LdapAuthentication.IsAuthenticated(String domain, String ... need to keep it on 2000 with IIS 5.1 until we can figure it out. ... I generally recommend people just bind ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Active Directory Authentication in IIS 6
    ... Dim obj As Object = entry.NativeObject. ... String username, String pwd) ... need to keep it on 2000 with IIS 5.1 until we can figure it out. ... bind against the RootDSE object on the domain controller: ...
    (microsoft.public.dotnet.framework.aspnet.security)

Quantcast