Bug 48399

Summary: Can't put URL in GECOS phone field
Product: Base System Reporter: Galen Hancock <galen>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.7-STABLE   
Hardware: Any   
OS: Any   

Description Galen Hancock 2003-02-18 01:10:09 UTC
	It is not possible to put SIP URLs like "sip:19081@fwd.pulver.com" in
	the phone field of the GECOS information. This should be allowed,
	because such URLs are used for Voice over IP.

Fix: 

Since the GECOS information is stored in the passwd file, where colons
	are used as delimiters, some means of quoting or encoding the colon
	will be necessary.
How-To-Repeat: 	When attempting to use a colon in the phone field, chfn gives the
	following message:
	chfn: illegal character in the "office phone" field
	re-edit the password file? [y]:
Comment 1 Mike Makonnen 2003-02-18 04:42:56 UTC
As you've allready noted, colons are not allowed in _any_ passwd field.

The better solution is probably to encode the information in a human readable
format. Example: <sip>19081@fwd.pulver.com</sip>


Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm@identd.net | Fingerprint: D228 1A6F C64E 120A A1C9  A3AA DAE1 E2AF DBCC 68B9
Comment 2 le freebsd_committer freebsd_triage 2004-07-23 13:09:50 UTC
State Changed
From-To: open->closed

Colons are used as separators in passwd records and thus not allowed  
in the GECOS data.