My web service .asmx file has this function that validates a token to make sure it is a kerberos token.
Public Function ValidateToken() As Boolean
If TypeOf sigTok Is KerberosToken Then
'The logged in user is checked against the Kerberos Key Distribution Center(KDC).
Return sigTok.Principal.Identity.IsAuthenticated
End If
Then I have a windows application that invokes the .asmx file. Before invoking the web method in the web service it needs to get a kerberos token.
I use windows server 2003 to provide the ticketing service meaning to provide the kerberos token. MY question is if i type the coding below will the application be able to retrieve a kerberos token. I want to know wht does (System.Net.Dns.GetHostName()
do?
Dim kToken As KerberosToken = New KerberosToken(System.Net.Dns.GetHostName())
'assign the SecurityToken an Username Token.
token = kToken
Thanks.