Hi,

I m trying to use kerberos security method and calling a simple a WS
which will display user's name. Code is as below :


targetPrincipalName = "host/" + System.Net.Dns.GetHostName()

Dim kerbToken As KerberosToken = New KerberosToken(targetPrincipalName)
If IsNothing(kerbToken) Then
Throw New ApplicationException("Unable to obtain security token.")
End If

Dim KerbProxy As New Reference.TestServiceWse
KerbProxy.RequestSoapContext.Security.Tokens.Add(k erbToken)
KerbProxy.RequestSoapContext.Security.Timestamp.Tt lInSeconds = 60
KerbProxy.RequestSoapContext.Security.Elements.Add (New
MessageSignature(kerbToken))
KerbProxy.RequestSoapContext.Security.Elements.Add (New
EncryptedData(kerbToken))
Return KerbProxy.GetName()



When i run my WS Client, it gives an error as:

System.Security.SecurityException: The Kerberos ticket could not be
retrieved. The RetrieveKerbTicket call failed with the following
message: There are currently no logon servers available to service the
logon request.

what is the reason? if i m missing something? What is the solution?


*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***