Bug 16619

Summary: trimdomain does not handle peer domains
Product: Base System Reporter: pirzyk <pirzyk>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.4-RELEASE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description pirzyk 2000-02-09 21:50:00 UTC
	when rsh/ssh/telnet into a host in a peer domain, the hostname is
	greater than UT_HOSTNAMELEN and so the IP number gets put into the
	wtmp file.  To releave this, we wanted the domain in common part
	to be parsed out.  i.e if I am on snoopy.foo.example.com and want
	to login to woodstock.bar.example.com the finger info should show
	on woodstock me logged in from snoopy.foo

How-To-Repeat: 
	Just login to a host in a peer domain.
Comment 1 Brian Somers 2000-02-11 08:46:36 UTC
> >Number:         16619
> >Category:       bin
> >Synopsis:       trimdomain does not handle peer domains
[.....]
> >Description:
> 
> 	when rsh/ssh/telnet into a host in a peer domain, the hostname is
> 	greater than UT_HOSTNAMELEN and so the IP number gets put into the
> 	wtmp file.  To releave this, we wanted the domain in common part
> 	to be parsed out.  i.e if I am on snoopy.foo.example.com and want
> 	to login to woodstock.bar.example.com the finger info should show
> 	on woodstock me logged in from snoopy.foo
[.....]

No, this is a bad idea.  Last time I was in there, I actually 
implemented this and realised why....

$ hostname
confusion.co.uk.FreeBSD.org
$ slogin freefall.FreeBSD.org

Freefalls logs are now garbage.  This is why name resolution doesn't 
work this way any more either.
-- 
Brian <brian@Awfulhak.org>                        <brian@FreeBSD.org>
      <http://www.Awfulhak.org>                   <brian@OpenBSD.org>
Don't _EVER_ lose your sense of humour !          <brian@FreeBSD.org.uk>
Comment 2 dd freebsd_committer freebsd_triage 2001-06-17 04:15:13 UTC
State Changed
From-To: open->closed

As Brian explained, this is a bad idea.