Problems with kerberos authentication.

blurgal

Member
Joined
Sep 24, 2005
Messages
9
Programming Experience
Beginner
I have this source code listed below. When I run the application I will get message error saying:
The kerberos ticket cannot be retrieved.The RetriveKerbTicket call failed with the following message: There are currently no logon servers available to service the logon request.

What is the problem? Can anyone help me? I am stuck with this problem for 2 months. I need help desperately. Thnx.


private
void SubmitButton_Click(object sender, System.EventArgs e)
{
KerberosToken token;
string targetPrinciple;
// Create an instance of the proxy
WeblogProxy proxy = new WeblogProxy();
string hostname = System.Environment.MachineName;

string domainname = System.Environment.UserDomainName;

targetPrinciple = "host/" + hostname;

// Create a KerberosSecurityToken
token = new KerberosToken( targetPrinciple );
// Add the SecurityToken to the Request Context
proxy.RequestSoapContext.Security.Tokens.Add( token );
// Sign the message with a signature object
proxy.RequestSoapContext.Security.Elements.Add( new MessageSignature( token ) );
}
 
Hi

Your PC needs to have a valid DNS address in the TCP/IP settings (via the Network Connections applet in Control Panel). If not, it won't find the IP address of a Domain Controller. If it doesn't find a domain controller, it can't log you on.

If you use IP addresses instead of server names, authentication defaults to NTLM instead of kerberos.

If you're not connected to your domain, you can't log on.

If you're using a workstation instead of being part of a domain, then you can forget about kerberos authentication - the SAM database doesn't support it.

Hope this helps

Chris Seary
 
Back
Top