Re: The server is not operational
- From: "Henning Krause" <hkrause.remove@xxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Jan 2006 23:39:40 +0100
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
>
.
- References:
- Re: The server is not operational
- From: palaniselvam
- Re: The server is not operational
- Prev by Date: Re: The server is not operational
- Next by Date: Re: The server is not operational
- Previous by thread: Re: The server is not operational
- Next by thread: Re: The server is not operational
- Index(es):
Relevant Pages
|
|