GSSAPI client on Windows SFBZH at
Tue Jul 5 12:13:10 EDT 2005

Thank you Jeffrey but my program still fails the same way.

I have replaced my "server/pc36 at DOMAIN.COM" with a "server/ at DOMAIN.COM" in the KDC.
I have imported the ticket in the pc35 local cache and I have modified my client program to ask for server/ at DOMAIN.COM credentials:

>/* create server name */
>name_string = (char *)malloc(32 * sizeof(char));
>strcpy(name_string, "server/ at DOMAIN.COM");
>name_buffer->value = name_string;
>name_buffer->length = strlen(name_buffer->value) + 1;
>majs = gss_import_name(&mins, name_buffer, 
>  GSS_C_NT_HOSTBASED_SERVICE, &server_name);
>gss_release_buffer(&mins, name_buffer);
>/* get service credentials */
>majs = gss_init_sec_context(&mins, cred_handle,
>  &context_handle, server_name, GSS_C_NULL_OID,
>  NULL, GSS_C_NO_BUFFER, &oid, tocken, NULL, NULL);

The test is exactly the same as the one described in my previous mail. The only difference is the service name. The result is exacly the same: "An invalid name was supplied" with the same values in mins and majs.

I must be doing an other mistake.

My host file contains:
> aaa.bbb.ccc.36  pc36

and my krb5.ini:
>   default_domain =
>   default_realm = DOMAIN.COM
>   DOMAIN.COM = {
>       admin_server = pc36:750
>       kdc = pc36:88
>   }

Best regards


More information about the krbdev mailing list