diff options
author | David Malone <dwmalone@FreeBSD.org> | 2001-06-04 11:43:29 +0000 |
---|---|---|
committer | David Malone <dwmalone@FreeBSD.org> | 2001-06-04 11:43:29 +0000 |
commit | 9a0b3389d51824dff69964406322c0cc9c31b704 (patch) | |
tree | e3f358a33ab4321d4dd40e29edb1723e0647a34b /usr.sbin/inetd/inetd.8 | |
parent | 0becf102d7c5e1629e3816c301529f84b0dc637a (diff) | |
download | src-9a0b3389d51824dff69964406322c0cc9c31b704.tar.gz src-9a0b3389d51824dff69964406322c0cc9c31b704.zip |
This patch cleans up the ident stuff in inetd. The code which has
been patched so many times it was a bit of a mess. There are style,
code and man page cleanups. The following are the functional changes:
The RFC only permits the returning of 4 possible error
codes, make sure we only return these (PR 27636).
Use MAXLOGNAME to determine the longest usernames.
Add a -i flag, which returns the uid instead of the username
(this is from a PR 25787, which also contained alot of the
cleanups in this patch).
PR: 25787, 27636
Partially Submitted by: Arne.Dag.Fidjestol@idi.ntnu.no
Reviewed by: Arne.Dag.Fidjestol@idi.ntnu.no, green
MFC after: 3 weeks
Notes
Notes:
svn path=/head/; revision=77684
Diffstat (limited to 'usr.sbin/inetd/inetd.8')
-rw-r--r-- | usr.sbin/inetd/inetd.8 | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/usr.sbin/inetd/inetd.8 b/usr.sbin/inetd/inetd.8 index 3cd6e5af6136..fda2267ac942 100644 --- a/usr.sbin/inetd/inetd.8 +++ b/usr.sbin/inetd/inetd.8 @@ -455,6 +455,21 @@ If the real service is disabled, return this username for every request. This is primarily useful when running this service on a NAT machine. +.It Fl g +Instead of returning +the user's name to the ident requester, +report a +username made up of random alphanumeric characters, +e.g. +.Dq c0c993 . +The +.Fl g +flag overrides not only the user names, +but also any fallback name, +.Pa .fakeid +or +.Pa .noident +files. .It Fl t Xo .Ar sec Ns Op . Ns Ar usec .Xc @@ -465,6 +480,8 @@ Offer a real .Dq auth service, as per RFC 1413. All the remaining flags apply only in this case. +.It Fl i +Return numeric user IDs instead of usernames. .It Fl f If the file .Pa .fakeid @@ -474,29 +491,25 @@ If the the username found in .Pa .fakeid is that of an existing user, then the real username is reported. +If the +.Fl i +flag is also given then the username in +.Pa .fakeid +is checked against existing user IDs instead. .It Fl F same as .Fl f but without the restriction that the username in .Pa .fakeid must not match an existing user. -.It Fl g -Instead of returning the user's name to the ident requester, report a -username made up of random alphanumeric characters, e.g. -.Dq c0c993 . -The -.Fl g -flag overrides not only the user names, but also any -.Pa .fakeid -or -.Pa .noident -files. .It Fl n If the file .Pa .noident exists in the home directory of the identified user, return .Dq ERROR\ : HIDDEN-USER . -instead. +This overrides any +.Pa fakeid +file which might exist. .It Fl o Ar osname Use .Ar osname |