kcr [Fri, 30 Oct 1998 18:10:35 +0000 (18:10 +0000)]
Have chsh look up the fmodtime instead of the modtime in the user table.
Made uglier by the fact that you have to look up the fmodtime and the shell
with two different queries. Should be revisited if danw ever adds gush.
kcr [Fri, 30 Oct 1998 18:08:20 +0000 (18:08 +0000)]
Change the uush (update user shell) query to change the fmodtime field
instead of the modtime field in the users table so that deactivations can
more accurately depend on modtime.
danw [Mon, 19 Oct 1998 20:18:58 +0000 (20:18 +0000)]
Add a cast to (unsigned char) in a sprintf argument. Otherwise,
default promotions cause "\377" = 255 = -128 to be written as
"\37777777600" instead of "\377", causing a buffer overrun.
Don't try to build afssync or incremental if we don't find AFS, and don't
try to build afssync if that directory is missing (as it will be in the
public release)
danw [Tue, 25 Aug 1998 15:58:18 +0000 (15:58 +0000)]
rewrite FORCED_USERNAME message since if we're returning it from SWRD,
(1) we won't have the user's full name and account class available, and
(2) the user will already have seen FOUND, so it's weird to say "I've
found you in the database" a second time.
danw [Tue, 25 Aug 1998 15:52:48 +0000 (15:52 +0000)]
find_usernames returns NULL either for "can't suggest a username" or
"an error occurred". make sure it sets or unsets errno appropriately and
check errno as well as the return value when calling it. fixes [1185] in
moira / [1519] in moira-admin
danw [Thu, 13 Aug 1998 18:20:51 +0000 (18:20 +0000)]
remove encrypted ID support: if we do load in someone who already has
an account with an encrypted ID field, encrypting their current MIT ID
and comparing against it will fail anyway, since the encrypted ID
would be their SSN or old MIT ID. So the code is useless.
jis [Tue, 4 Aug 1998 20:33:18 +0000 (20:33 +0000)]
----------------------------------------------------------------------
Edited the Rules of Use and changed the layout of the "Key Word"
prompting dialog to match the appearence of the account coupon.
Change meaning of "secure" flag to refer to whether or not the user
needs a "6-words" account coupon rather than whether or not they've
gotten a .extra instance, since we don't use that information any more
anyway.
Also fix an unrelated bug in RealDeactivateUser, noticed by carla.
Add an extra (abstraction-violating) access-check to amtl and dmfl: do
not allow someone to add or remove someone from a list which is a
query acl unless they are on the acl for that list, even if they're on
the amtl/dmfl query acl. (This means someone on list-admin can't give
themselves dbadmin.)
Don't pass constant strings containing "\n" to Put_message. (It will strip
off the \n before adding its own, but you can't modify constant strings.)
Reported by Richard Courtemanche (kilroy@mit.edu).
Fix bug (noticed by Purify) that would prevent you from being able to do
an update_host on a machine with an invalid name even if you weren't
changing that name.
danw [Sat, 30 May 1998 18:17:21 +0000 (18:17 +0000)]
Move max_row_count into do_for_all_rows so that we can stop fetching data
as soon as we've decided there's too much. (Otherwise the server can suck
up huge amounts of memory.)
danw [Sat, 30 May 1998 16:10:08 +0000 (16:10 +0000)]
setup_ahst: Return MR_NO_ID ("Cannot allocate new ID") rather than
MR_ADDRESS ("Bad address") if the user specifies "unique" IP address
but there are no empty addresses in the subnet.