xtraeme
a35b6d287f
Kill __P(), ANSIfy, remove main() prototype, whitespace; WARNS=2
2005-01-20 15:41:14 +00:00
xtraeme
61ae8d8c7b
Kill __P() and ANSIfy, ok christos.
2005-01-12 05:34:23 +00:00
christos
4a9bb0c8f3
Add a -a option to pass the host address of the host we logged in from in
...
addition to the host name. This option is needed by programs suchs as
telnetd, because at the point they invoke login, they already have opened
a pty, and the stdin of login is no longer the socket connected to the
remote host. In addition don't chop the hostname up to the first dot if
the domain matches. These practices are 70's fashion and they only serve
to lose information. These days we have long enough fields in utmpx and
wtmpx to store the full names.
2004-11-14 18:01:21 +00:00
wiz
3408fd1acc
Use getprogname(); add -F to usage. From Kouichirou Hiratsuka in PR 26222.
2004-07-13 11:56:24 +00:00
lukem
32e6b841fb
Generate the copyright string from sys/conf/copyright rather than
...
replicating it here. Idea from Simon Burge.
2004-01-05 03:53:10 +00:00
mycroft
a9866938b5
Welcome to 2004!
2004-01-01 00:00:05 +00:00
itojun
53284b73d0
snprintf() terminates string with \0, so there's no need for "sizeof(x)-1".
2003-10-16 05:31:47 +00:00
wiz
31fd31ccf7
Make getlastlogx have the pathname to the lastlogx database as first
...
argument, to be consistent with updlastlogx.
Approved by christos, reviewed by kleink.
[The lastlogxname function should not be used any longer.]
2003-08-26 16:48:32 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
mycroft
d73e77b28c
Update copyright notice.
2003-01-01 00:00:13 +00:00
itojun
9593086444
use strlcpy
2002-11-16 04:34:13 +00:00
itojun
7798fe3a64
disallow users from alter log file entries by using "login foo".
...
from xs@kittenz.org
2002-09-25 03:45:32 +00:00
itojun
129dc41857
make sure to use %s on printf format string. xs@kittenz.org
2002-09-20 21:01:31 +00:00
itojun
2994867f8f
remove debugging message leftover
2002-07-30 14:37:38 +00:00
christos
51de4d82f7
make this compile without SUPPORT_UTMPX
2002-07-27 22:58:07 +00:00
christos
48715dcc0c
Factor out the utmp/wtmp/lastlog updating and add utmpx/wtmpx/lastlogx updating.
...
Both are turned on for now.
2002-07-27 20:10:32 +00:00
perry
57ff912445
Happy New Year!
2002-01-01 09:27:53 +00:00
cgd
d594ce939b
comment or delete text after CPP directives.
2001-01-16 02:50:27 +00:00
lukem
8ea781a956
LOG_ODELAY is deprecated. use LOG_ERR for fatal errors
2001-01-10 12:24:38 +00:00
thorpej
eb80878b1b
Happy new year!
2001-01-01 20:18:34 +00:00
thorpej
3b5855e58d
Don't syslog that krb5_init_context() failed if it failed due
...
to Kerberos not being configured on the system.
2000-08-02 16:51:17 +00:00
thorpej
9e2765e474
If neither Kerberos IV or Kerberos V are configured, don't
...
issue "Warning: no Kerberos tickets issued."
2000-08-02 05:58:35 +00:00
thorpej
676ddec5ac
skey_keyinfo() returns const.
2000-07-28 16:36:53 +00:00
aidan
dbb0b2f74d
Backout login_get_kconf function, because it breaks crypto-intl builds.
...
Keep the variables for setting default behaviour with krb4 and krb5
compiled in, even though they act like constants, to facilitate adding
another preference mechanism later.
2000-06-02 03:01:22 +00:00
aidan
39d1e5b7fd
Allow krb5 and krb4 to be compiled in to the same login binary at once,
...
krb5 can request a forwardable TGT,
can get both krb4 and krb5 tickets, if explicitely configured to do so
by the krb5.conf.
2000-05-30 06:56:16 +00:00
enami
1d82270b8c
- For root, if ignorenologin is set in login.conf, don't call
...
checknologin (previously, checknologin is called if ignorenologin is set).
- For non-root user, make ignorenologin take effect.
2000-03-07 14:11:22 +00:00
enami
6dccad067d
Cosmetic changes.
2000-03-07 13:59:19 +00:00
aidan
d6bf7fdb89
Move include/kerberosIV/com_err.h to include/com_err.h.
2000-02-14 03:21:02 +00:00
mjl
b3204d536b
Add login_getpwclass to libutil as convenience function for
...
programs originally for FreeBSD.
Add parsing of "setenv" parameter which can be used to set
up an initial environment on login.
2000-02-04 02:17:14 +00:00
mjl
8e380b472c
Removed some fallback cases since that is now done in libutil.
2000-01-22 09:48:52 +00:00
mjl
eb1d660e28
Clean up changes a bit.
2000-01-13 12:43:19 +00:00
mjl
07053cf7c1
Re-enable login_cap processing, now that a non-existing login.conf
...
won't make it crash. Also make it less noisy in that case.
2000-01-13 06:52:47 +00:00
mjl
cfdb7e0720
Ack. Disable login caps, until problems are fixed.
2000-01-13 06:30:31 +00:00
mjl
4863ee6f07
Add login.conf capability setting.
2000-01-13 06:17:56 +00:00
billc
7ad9ba975f
copyright year change (thanks cgd) so we emit , 2000 now.
2000-01-07 00:00:37 +00:00
aidan
5375ac8703
Made login continue without kerberos when there is no krb5.conf present
...
(and KERBEROS5 is defined).
1999-12-05 23:39:11 +00:00
christos
f5241efcfa
make this compile....
1999-08-25 19:58:15 +00:00
aidan
3a4abbe0d1
Kerberos5 changes to login -- now supports forwarded TGTs.
1999-07-12 21:36:10 +00:00
christos
9966d744f2
Don't declare login here. It is declared in <util.h>
1999-06-15 14:19:53 +00:00
kim
0c127d7cef
Show year of last login.
1999-01-11 20:20:54 +00:00
lukem
0e36738ca6
add copyright 1999
1999-01-06 13:51:09 +00:00
ross
f670fa10c5
Add { and } to shut up egcs. Reformat the more questionable code.
1998-08-25 20:59:36 +00:00
mycroft
55ac0c2da3
const poisoning.
1998-07-26 21:58:46 +00:00
mrg
95b49ba52b
do _NOT_ use system(3) in setuid programs. KNF.
1998-07-11 08:12:51 +00:00
mrg
2beab49a06
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
...
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
1998-07-06 06:45:41 +00:00
kleink
fd366142a3
Need <time.h> for ctime() and time() prototypes.
1998-04-02 10:27:16 +00:00
hubertf
567c3f3e41
Also save groups before chdir($HOME). This fixes a problem pointed
...
out by Bernd Ernesti with /home/lusers/joe (being uid joe, gid lusers),
with /home/lusers mode 750 and owner root:lusers.
1998-01-16 00:31:53 +00:00
thorpej
974b59d07c
Happy new year!
1998-01-07 00:41:43 +00:00
hubertf
5dda445628
Give up special privileges before chdir($HOME) and access(.hushlogin),
...
fixing PR 4636 by myself with some help from Jason Thorpe.
1997-12-05 08:29:39 +00:00
mrg
6bb686b3be
print TNF copyright, like the kernel does.
1997-11-07 20:32:05 +00:00