Re: The server is not operational



Hello,

One cause for this error is a misspelling of the directory path. Could
you post it here?

Another thing to consider is, that the sAMAccountName may not be unique
in a multidomain environment. There may be a fabrikam\johndoe as well as
a contoso\johndoe.

See http://www.infinitec.de/exchange/howtos/findusermultiad.aspx for
more information.

Greetings,
Henning Krause


> -----Original Message-----
> From: palaniselvam
> [mailto:palaniselvam.223y5z@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]
> Posted At: Montag, 23. Januar 2006 22:28
> Posted To: microsoft.public.dotnet.framework.aspnet.security
> Conversation: The server is not operational
> Subject: Re: The server is not operational
>
>
>
> Hi,
> I need to validate user/pwd on LDAP server. When i validate userid on
> LDAP sever using following code always i am getting an error as "The
> server is not operational". With the same path if i type in Iexplorer
> it is opening a popup window from LDAP Server. I need to use secure
> mode. Do i have to do any settings in IIS? Please help me asap.
> Thanks and Regards,
> M. Palani selvam.
>
> Code is:
> ---------
> Public Function IsAuthenticated(ByVal domain As String, ByVal username
> As String, ByVal pwd As String) As Boolean
>
> Dim enTry As New DirectoryEntry(_path)
> enTry.Username = username
> enTry.Password = pwd
> enTry.AuthenticationType = AuthenticationTypes.secure
>
>
> Try
>
> Dim search As DirectorySearcher = New
> DirectorySearcher(enTry, "(SAMAccountName=" + username + ")")
>
>
>
> search.PropertiesToLoad.Add("cn")
> Dim result As SearchResult = search.FindOne()
> If result Is Nothing Then
> Return False
> End If
> _path = result.Path
> _filterAttribute = CType(result.Properties("cn")(0),
> String)
> Catch ex As Exception
> Throw New Exception("Error authenticating user. " +
> ex.Message)
> End Try
> Return True
> End Function
>
>
> --
> palaniselvam
> --------------------------------------------------------------
> ----------
> palaniselvam's Profile: http://www.hightechtalks.com/m801
> View this thread: http://www.hightechtalks.com/t2192113
>

.



Relevant Pages

  • Re: strange problem with smtpmail
    ... Note that remote server is a BLS server but a windows ... e-mails are send but arrive as HTML source instead of formatted HTML ... Public Function SendMailMessage(ByVal Recipient As String, ... Dim mMailMessage As New MailMessage ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Desperately need help to setup with asp net !!
    ... must be done by the Vb.net application on the server. ... What I have hard time to implement is passing data from the browser to ... Dim strConnection As String ... Dim con As New Data.SqlClient.SqlConnection ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Best way to communicate from Desktop to SQL DB
    ... the remote SQL Server, in other words, how do I create a connection string ... to a remote server. ... Dim cmd As New SqlCommand ... Dim ProductID As Integer = CType, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Desperately need help to setup with asp net !!
    ... must be done by the Vb.net application on the server. ... What I have hard time to implement is passing data from the browser to ... Dim strConnection As String ... Dim con As New Data.SqlClient.SqlConnection ...
    (microsoft.public.dotnet.framework.aspnet)
  • Using Visual Basic NET to Access Terminal Services Session and Client Information
    ... It also accesses the Client Information for the client which executes this program on a Terminal Services Server. ... Dim pWinStationName As String ' integer LPTSTR - Pointer to a null-terminated string containing the name of the WinStation for this session ...
    (microsoft.public.windows.terminal_services)