krb5-nt-alpha2 on NT 5.0 Beta 1

krb5-nt-alpha2 on NT 5.0 Beta 1

Post by Douglas E. Enge » Wed, 31 Dec 1997 04:00:00



When the MIT krb5-nt-alpha2 code is run
on the Microsoft NT 5.0 Beta 1, the NT gethostbyaddr
returns a hostname with an extra "." on the end.
This causes telnet and rlogin to fail.

Is this a NT 5.0 problem or a configuration problem?
Anyone else seen this?

As a temporary solution, Adding the following to
sn2princ.c removes the trailing "." if present, and telnet works.

            hp = gethostbyaddr(addr, hp->h_length, hp->h_addrtype);
            free(addr);
            if (hp) {
+                /* NT 5.0 beta 1 gethostbyaddr bug */
+                /* NT adds an extra . to the end */
+                if(hp->h_name[strlen(hp->h_name)-1] == '.')
+                hp->h_name[strlen(hp->h_name)-1] = '\0';

                free(remote_host);
                remote_host = strdup(hp->h_name);
---


 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439
 (630) 252-5444

 
 
 

krb5-nt-alpha2 on NT 5.0 Beta 1

Post by Marc Horowit » Wed, 31 Dec 1997 04:00:00



Quote:>> When the MIT krb5-nt-alpha2 code is run
>> on the Microsoft NT 5.0 Beta 1, the NT gethostbyaddr
>> returns a hostname with an extra "." on the end.
>> This causes telnet and rlogin to fail.

>> Is this a NT 5.0 problem or a configuration problem?
>> Anyone else seen this?

A . on the end of a hostname is a legal canonical form.  This should
probably be considered a bug in kerberos.  Of course, Microsoft should
be taken out back and shot for making a gratuitous incompatible change
like this.

                Marc

 
 
 

krb5-nt-alpha2 on NT 5.0 Beta 1

Post by Doug Enge » Wed, 31 Dec 1997 04:00:00




> >> When the MIT krb5-nt-alpha2 code is run
> >> on the Microsoft NT 5.0 Beta 1, the NT gethostbyaddr
> >> returns a hostname with an extra "." on the end.
> >> This causes telnet and rlogin to fail.

> >> Is this a NT 5.0 problem or a configuration problem?
> >> Anyone else seen this?

> A . on the end of a hostname is a legal canonical form.  This should
> probably be considered a bug in kerberos.

A reply from a Microsoft contact says:

Quote:>>>> I confirmed that this does happen (only on NT5, not under NT4), and am
>>>> bugging the DNS people about it.
> Of course, Microsoft should
> be taken out back and shot for making a gratuitous incompatible change
> like this.

So it sounds like a bug in NT 5.0, not Kerberos. Maybe we should wait
to see if it gets fixed before taking them out back...

Quote:>                 Marc

--


 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439
 (630) 252-5444

 
 
 

krb5-nt-alpha2 on NT 5.0 Beta 1

Post by ms323.. » Thu, 01 Jan 1998 04:00:00


Alas, it's still a "buglet" in Kerberos as it _is_ a legal canonical form.  

Richard




>> >> When the MIT krb5-nt-alpha2 code is run
>> >> on the Microsoft NT 5.0 Beta 1, the NT gethostbyaddr
>> >> returns a hostname with an extra "." on the end.
>> >> This causes telnet and rlogin to fail.

>> >> Is this a NT 5.0 problem or a configuration problem?
>> >> Anyone else seen this?

>> A . on the end of a hostname is a legal canonical form.  This should
>> probably be considered a bug in kerberos.

>A reply from a Microsoft contact says:

>>>>> I confirmed that this does happen (only on NT5, not under NT4), and am
>>>>> bugging the DNS people about it.

>> Of course, Microsoft should
>> be taken out back and shot for making a gratuitous incompatible change
>> like this.

>So it sounds like a bug in NT 5.0, not Kerberos. Maybe we should wait
>to see if it gets fixed before taking them out back...

>>                 Marc

>--


> Argonne National Laboratory
> 9700 South Cass Avenue
> Argonne, Illinois  60439
> (630) 252-5444

 
 
 

1. New cygwin patches for krb5-1.3-alpha2 and krb5-current (snapshot)

I have both clients and servers working. tested on Win2K.  This patch
applies cleanly to both krb5-current and krb5-1.3-alpha2.

    -- Chris

  krb5-current.cygwin.patch
3K Download

________________________________________________

https://mailman.mit.edu/mailman/listinfo/kerberos

2. Parallel Intranet?

3. NT alpha2 snapshot

4. SCO Programmer's Frequently Asked Questions (FAQ)

5. SNMP on Win NT 5.0 beta

6. Getting GDB to load symbols

7. PATCH: krb5-1.2.4 Set security on file cache in NT/2000

8. SubmitSynch - problem.

9. NT & UNIX krb5 cfg

10. How to get NT krb5 libs?

11. krb5 nt srvr pam?

12. Problems in changing password with krb5-nt-alpha1

13. Problems with CNS Ticket manager from krb5-nt-alpha1