summaryrefslogtreecommitdiffstats
path: root/libexec/rshd/rshd.c
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r262136brueffer2014-02-241-5/+1
| | | | | | | Remove the 3rd clause ("advertising clause") of the BSD license as permitted by the University of Berkeley on July 22, 1999. Reviewed by: imp
* Fix a misplaced parenthesis.brueffer2011-10-301-1/+1
| | | | | | PR: 162164 Submitted by: Henning Petersen <henning.petersen@t-online.de> MFC after: 1 week
* Spell SHUT_RDWR as SHUT_RDWR not 1+1 as the how argument to shutdown(2).jmallett2005-05-111-2/+2
|
* Use sysconf(_SC_ARG_MAX) instead of NCARGS.das2005-03-211-2/+7
|
* Fix most cases where the address of an int is passed to a function expecting astefanf2005-02-141-2/+3
| | | | socklen_t * argument.
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-091-1/+1
|
* Cast the terminating NULL to char * in the execl() call.mux2004-04-041-1/+1
| | | | Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
* Gut out (by default unused) cruft, and tidy up warnings.markm2002-06-261-143/+19
|
* PAMify.des2002-05-081-253/+127
| | | | Sponsored by: DARPA, NAI Labs
* YA patch I forgot to commit last night.des2002-03-061-1/+1
|
* o const poison a few prototypes to avoid gcc3 warningsimp2002-02-071-9/+9
| | | | o s/err/error/ in a couple places to avoid shadowing warnings
* o __P removalimp2002-02-071-26/+19
| | | | | o new style definitions/declarations o declare null_conv static and its arguments __unused
* Mark a function as __printf0like(). This exposes a warning which requireskris2002-02-041-1/+1
| | | | | | some code changes to fix but should be possible. MFC after: 1 week
* Fix the type of the NULL arg to execl()brian2001-07-091-1/+1
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Replacement of the old error() routine with errx(3) was premature.markm2001-04-291-17/+39
| | | | | | | | | There are protocol issues to deal with. Bring back this routine (renamed to avoid a library conflict in libssh) and overhaul it for more 21st Century style coding. Pointed out by: bde
* Grrr. Fix a line that was fatfingered out during the cleanup.markm2001-04-291-0/+1
| | | | | Submitted by: bde Pointy hat: markm
* Clean up the error handling code a bit. There is no need to "roll ourmarkm2001-04-281-89/+26
| | | | | own" error() routine when errx() is available. This resolves a conflict when linking statically.
* Add full PAM support for account management and sessions.markm2001-03-271-52/+210
| | | | | | | The PAM_FAIL_CHECK and PAM_END macros in su.c came from the util-linux package's PAM patches to the BSD login.c Submitted by: "David J. MacKenzie" <djm@web.us.uu.net>
* Fix typo: compatability -> compatibility.asmodai2001-02-061-1/+1
| | | | Compatability is not an existing english word.
* Whitespace-only to sync with -stable.ru2000-12-071-2/+0
|
* Removed broken PAM support from rshd(8) and rlogind(8). rshd doesru2000-10-121-18/+0
| | | | | | | not allocate a pty(4) so it is not suitable at all for interactive PAM modules. rlogind calls login(1) which is already PAM enabled. Approved by: markm
* Plug the hole where rshd would bypass a proper .rhosts check if thebsd2000-07-051-3/+2
| | | | | | password was empty. Reviewed by: Warner Losh <imp@freebsd.org>
* Remove dead debug code.asmodai2000-04-291-8/+0
| | | | This also removes a dependency/reference on COMPAT_43.
* sync iruserok() extension API with other BSDsshin2000-02-011-8/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some of rcmd related function is need to be updated to support IPv6. Some of them are already updated as standard document. But there is also several de-facto functions and they are not listed in standard documents. They are, iruserok() (used by rlogind, rshd) ruserok() (used by kerberos, etc) KAME package updated those functions in original way. iruserok_af() ruserok_af() But recently there was discussion on IETF IPng mailing list about how to sync those API, and it is decided, -Those function is not standard and not documented. -But let BSDs sync their API as de-facto. And after some discussion, it is announced that -add update to iruserok() as iruserok_sa() -no ruserok() API change(it is only updated internaly) So I sync those API before 4.0 is released. The changes are, -prototype changes -ruserok() internal update (use iruserok_sa() inside) -removal of ruserok_af() -change iruserok_af() as static functioin, and also prefix the name with __. -add iruserok_sa() (Just call __iruserok_af() inside) -adding flag AI_ALL to getipnodebyaddr() called from __icheckhost(). This is necessary to support IPv4 communication via AF_INET6 socket could be correctly authenticated via iruserok_sa() -irusreok_af() call is replaced to iruserok_sa() call in rlogind, and rshd. Approved by: jkh
* Fix rshd coredump when AF_INET socket is used.shin2000-01-281-1/+1
| | | | Confirmed by: F. Heinrichmeyer <fritz.heinrichmeyer@fernuni-hagen.de>
* several tcp apps IPv6 updateshin2000-01-251-24/+59
| | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Fix for new Kerberos4. Make a fist cut at PAM-ising while I'm here.markm1999-09-191-148/+57
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Ensure that things returned by gethostname() andbrian1999-04-071-6/+5
| | | | | | | | | | friends are terminated and allow for a maximum host name length of MAXHOSTNAMELEN - 1. Put parenthesis around sizeof args. Make some variables static. Fix telnetd -u (broken by my last commit) Prompted by: bde
* Use realhostname() rather than various combinations ofbrian1999-04-061-42/+14
| | | | | | gethostbyaddr() & gethostbyname(). Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.
* As previously threatened, clean up the rshd -a option and make it defaultpeter1998-12-161-53/+26
| | | | | | | | | | | | | | | | on rshd and rlogind. However, note that: 1: rshd used to drop a connection with -a if the hostname != ip address. This is unneeded, because iruserok() does it's own checking. It was also wrong if .rhosts had an explicit IP address in it, connections would be dropped from that host solely because the DNS was mismatched even though it was explicitly intended to work by IP address. 2: rlogind and rshd check the hostname mappings by default now because that is what goes into the utmp/wtmp and logs. If the hostname != ip address, then it uses the IP address for logging/utmp/wtmp purposes. There isn't much point logging ficticious hostnames. 3: rshd -a is now accepted (but ignored) for compatability. If you really want to make life miserable for people with bad reverse DNS, use tcpd in paranoid mode (which is questionable anyway, given DNS ttl tweaking).
* Added a -D option to turn on TCP_NODELAY.dg1998-12-011-3/+11
|
* Replace _exit() with exit()rnordier1998-05-051-2/+2
| | | | Pointed out by: Nathan Torkington <gnat@prometheus.frii.com> PR 5585
* No \n in syslog() strings. Add man page to Xrefs. Change null byte to NUL byte.charnier1997-12-021-7/+9
|
* Changes for the new KTH Kerberos4.markm1997-09-281-12/+18
| | | | Also make -Wall a bit quieter
* Rshd print to much information if a user does not exists.wosch1997-07-181-4/+4
|
* login_getclass() -> login_getpwclass().davidn1997-05-101-2/+2
|
* Added login.conf support.davidn1997-04-231-4/+54
|
* Be a bit more careful about what port number we are using for thepeter1997-03-291-3/+7
| | | | | second socket. If we're going to check for reserved ports, we should do it properly.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Some patches for source routed packets from OpenBSD.imp1997-02-091-13/+16
| | | | | | | | | | | | | | | Rev 1.13 deraadt: do not warn about valid options; invalid options correctly quit Rev 1.12 deraadt: need not clear options since bad ones cause exit; provos@ws1.physnet.uni-hamburg.de Rev 1.11 deraadt: IPOPT_LSRR/IPOPT_SSRR must exit() due to tcp sequencing; pointed out by provos@wserver.physnet.uni-hamburg.de. also another 1-char buffer overflow. Reviewed by: Peter Wemm Obtained from: OpenSBD
* Make even more copies of hostnames obtained by inet_ntoa(). iruserok()joerg1997-01-271-5/+18
| | | | | could still clobber the static storage, yielding an error message with a wrong hostname.
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Fixes:scrappy1996-10-221-2/+2
| | | | | | | | | | | | When an rsh is denied by rshd because the client is lacking appropriate .rhosts permission, an error message is formatted for syslog which contains the client's hostname. The hostname portion of the message relies on a pointer to a field within gethostbyname()'s internal struct hostent which changes state between when the pointer is initialized and when it is dereferenced to create th e message. Submitted by: skynyrd@opus.cts.cwu.edu
* add forgotten $Id$wosch1996-09-221-0/+2
|
* Fix some compilation warnings.pst1996-09-211-1/+1
|
* #include <kerberosIV/des.h> -> #include <des.h>markm1996-02-111-1/+1
|
* Rename des_set_key -> des_set_key_krb. (libdes conflict)markm1996-02-031-1/+1
|
* Add missing & in des_set_key argumentache1995-11-191-1/+1
|
OpenPOWER on IntegriCloud