Always sort the result in get_members_of_list. (Previously this was
only done for lists of more than 50 members, and implemented such that
the server had to do twice as much work in that case.)
Fix the logic and explanation for one of the guess-what-the-user-meant
cases. (Fixes a bug where blanche would claim MR_NO_MATCH instead of
MR_PERM when you tried to remove a list from a list that you weren't
on the ACL for.)
Make a half-hearted attempt at returning a useful exit status, instead
of always claiming success. (See the man page for details.) We could
probably do better, but it would take a major rewrite.
Check for uniqueness of subnet, filesys, and printer names. (These
were listed in the FIXES file, but not implemented.)
Document the phase 2 printcap checks in the FIXES file.
fix typo in get_ace_use. (This, plus the addition of `gaus TYPE KERBEROS'
and `gaus TYPE RKERBEROS' aliases, allows get_ace_use to be used on
kerberos principals in addition to users and lists.)
Check `strings_id' in the numvalues table at startup. A server crash
in the right place could leave it pointing to an already-filled part
of the table, which makes the server unable to add new strings to the
db until it's fixed. (See [687]-[690] in moira-admin.)
Implement AUTH_002, which isn't vulnerable to replay attacks. Remove
support for AUTH_001 from the update_server (to prevent an AUTH_002
authentication from being replayed as an AUTH_001 authentication.)
Remove INST_001 since it wasn't being used.
Remove code from update_test that was duplicated in client.c
Send data files (but not instruction files) encrypted by default.
When authenticating, try the AUTH_002 protocol first, and fall back to
AUTH_001 if the server doesn't understand AUTH_002.
danw [Tue, 17 Jun 1997 20:20:24 +0000 (20:20 +0000)]
Don't create a user group with new accounts.
Don't allow users to rename a list to someone else's username. Also,
allow users to get `MR_NO_MATCH' if they get_user_account_by_login on
a non-existent account. (Used by the client to be able to check for
this case.)
danw [Thu, 29 May 1997 16:50:04 +0000 (16:50 +0000)]
Fix another freeing-memory-we-didn't-malloc bug in AddMachine. This
should fix the core-dumping bug from [1056] in Moira and several
transactions in bugs.
tytso [Fri, 14 Feb 1997 19:21:01 +0000 (19:21 +0000)]
New version which includes enrolled, half-enrolled, and half-registered
accounts as well. Also write a control file and ship a compressed tar file
to the warehouse.
tytso [Fri, 7 Feb 1997 19:42:27 +0000 (19:42 +0000)]
If we're using GDSS, #define DO_GDSS, so that the gen/Imakefile
can test against DO_GDSS. (gen/Imakefile was previously testing against
GDSS, which was unfortunately getting #undef'ed in Imake.rules; thus,
the sis.gen program was never getting built.)
danw [Tue, 4 Feb 1997 22:53:41 +0000 (22:53 +0000)]
in ASCII backups, write `|'s within fields as \174 instead of \| so
that `awk -F\|' will always break up the fields correctly. (mrrestore
already deals with \xxx, so no changes were needed there.)
danw [Wed, 29 Jan 1997 23:35:53 +0000 (23:35 +0000)]
Imake.rules:
Got rid of `PROFILED_LIBS' and lint libraries.
Got rid of the silly cc, ld, mv process for compiling and just use cc.
(which also gets rid of DEBUG_LIBS since you don't need to do anything
special to get that effect now.)
Got rid of some other unused rules.
Got rid of .dc -> .pc rule since we have .pc files instead now.
Imake.tmpl:
Add in room for extra options (LOCAL_INCLUDES, etc)
Makefile:
fix SRCTOP in config.Imakefile automatically when doing makeconfig
(also, fix reference to /mit/kerberos/src, since we're moira, not
kerberos :-} )
config.Imakefile:
Add all the various new variables used in various places.
Add stuff for __NetBSD__, linux, and __alpha. (Alpha isn't really
supported, although we _think_ it works.)
danw [Wed, 29 Jan 1997 23:24:06 +0000 (23:24 +0000)]
POSIX, ANSI, sanity fixes
s/#endif lint/#endif/ for irix cc
#include <crypt.h> in idno.c for OSes that don't have crypt in stdlib
64-bit OS fixes in mr_param.c
fill in missing return values in sq.c
danw [Wed, 29 Jan 1997 23:16:36 +0000 (23:16 +0000)]
#include file and prototype fixes
s/#endif lint/#endif/ for irix cc
did a modified version of Ezra's alpha patches to make everything work
on 64-bit systems. (Most instances of `long' became `int32' with
appropriate typedefs in the header files. Also, be more careful about
casting between ints and pointers.)
danw [Wed, 29 Jan 1997 23:09:37 +0000 (23:09 +0000)]
use gnu readline if the right variables are passed from config.Imakefile
throw some gratuitous #ifdefs around prototypes to make both POSIX and
non-POSIX systems happy with them.
insert a space between `=*' to make ultrix cc not give a warning.
danw [Wed, 29 Jan 1997 23:06:09 +0000 (23:06 +0000)]
${CRYPT} in Imakefile
same sanity fixes from the sipb-athena port.
several s/#endif lint/#endif/ to make irix cc happy
rename SignalHandler to Signal_Handler to avoid namespace collision in Linux
POSIX and other fixes in menu.c. Kludge for NetBSD since there's no
portable fix. Removed Password_input since it's not used and it was
hopelessly confused about POSIX vs SYSV
danw [Wed, 29 Jan 1997 23:03:24 +0000 (23:03 +0000)]
Get X/Motif library locations from config.Imakefile
#include <stdlib.h> instead of extern char *malloc();
POSIXification in tty.c from the sipb-athena port
danw [Mon, 20 Jan 1997 18:16:45 +0000 (18:16 +0000)]
Oracle changes
(sqlplus prefers input files to have names ending in `.sql')
newdb, newmoira, etc were out of date: New versions should be done
before the public release.
danw [Mon, 20 Jan 1997 18:14:06 +0000 (18:14 +0000)]
Oracle and Solaris/POSIX changes
Source tree should only have Imakefiles, not Makefiles.
Added ;s to awk scripts so Emacs will indent them properly.
Removed ancient files
danw [Sun, 17 Nov 1996 23:14:58 +0000 (23:14 +0000)]
Three bugfixes and a feature
- blank lines no longer give: Unknown request ""
- ^C just cancels the current line instead of killing the program
- \\ is now valid in quoted strings (along with \nnn and \")
- If you define USE_READLINE and tell it where to find includes
and libraries, it will build in support for gnu readline. This
isn't enabled by default, but I'm going to rebuild them with it,
and it will be easily configurable in the future autoconfiscated
version of the source tree.
danw [Tue, 29 Oct 1996 21:56:05 +0000 (21:56 +0000)]
new, more syntactically useful mrtest
allows "foo \"bar\" baz" or "\106\157\157" as arguments (useful for
running queries from moira logs)
It no longer uses the `ss' library, and it doesn't implement some of
the commands that no-one remembers what they do any more anyway. (test
and _compare_query).
danw [Sat, 12 Oct 1996 22:39:13 +0000 (22:39 +0000)]
Append numbers to MUL entries in filsys.db for use with new version of
attach on machines with new versions of BIND that don't always return
the entries in the same order.
If a printer doesn't have a quotaserver, output the printcap.db line
with no `rq' entry instead of the dubious `rq=(null)'.
danw [Thu, 10 Oct 1996 20:28:44 +0000 (20:28 +0000)]
Warn/help users who probably got the arguments in the wrong order:
danw@technomage:blanche> ./blanche danw -a some-list
WARNING: "LIST:some-list" was just added to list "danw".
If you meant to add yourself to the list "some-list", type:
blanche danw -d some-list (to undo this)
blanche some-list -a danw (to add yourself to that list)
danw@technomage:blanche> ./blanche danw -d some-other-list
./blanche: Unable to find member some-other-list to delete from danw
(If you were trying to remove yourself from the list "some-other-list",
the correct command is "blanche some-other-list -d danw".)
The warning message is given when the user tries to add a list to the
list with his/her username, and the help message is given when the
user tries to delete something from the list with his/her username and
it fails.
Additional, unrelated change: make the usage note document
`-db/-database' instead of `-S/-server' (to match the moira client).
The old options are still supported, just not documented.