Commit Graph

28 Commits

Author SHA1 Message Date
Kurt Zeilenga
c1cef27bda Update slapd to use lutil_passwd() for both user and root passwords.
Remove MD5 and SHA1 options (both are now always on).  Rename
functions to be lutil_ instead of ldap_.
Create --enable-cleartext option.  Default is currently 'on'.
1998-12-01 03:36:37 +00:00
Kurt Zeilenga
1494cf2a44 Update code to use HAVE_STDARG and to properly include <ac/stdarg.h> 1998-11-23 02:41:30 +00:00
Hallvard Furuseth
7273fd47fd gcc -W cleanup 1998-11-23 01:46:32 +00:00
Kurt Zeilenga
499735fec6 OBJS: passwd.c -> passwd.o (I thought I already fixed this once) 1998-11-18 16:15:10 +00:00
Kurt Zeilenga
6d2f28c080 Protect strdup/memcmp from macro subsitution. Let compiler pick registers. 1998-11-18 16:13:51 +00:00
Hallvard Furuseth
e4171a78db Back out probable fix to strange alignment code 1998-11-17 17:44:50 +00:00
Kurt Zeilenga
b5494457d8 Remove extern declarations of library functions from source.c.
This could cause problems on odd systems.  The generic
  headers should be extended as needed to include necessary
  system headers or, if necessary, make explicit declarations.
Extended ac/string.h header to look for string.h/strings.h if
  STDC_HEADERS is not defined.  Also provide basic declarations for
  str*() functions.  This could cause problems on odd systems.
Extended ac/unistd.h header to define basic declaration for misc
  functions that might be missing from headers.   This includes
  externs for getenv(), getopt(), mktemp(), tempname().
Protect fax500.h from multiple inclusion.  Moved includes of
  system/generic headers back to source files.
Made mail500 helper functions static.
Fixed includes of ctype.h, signal.h, etc. to use generics.
lutil/tempname.c: was including stdlib.h twice, one should stdio.h.
Wrapped <sys/resource.h> with HAVE_SYS_RESOURCE_H.
lber/io.c/ber_get_next(): Changed noctets back to signed.
  Used with BerRead which expects signed int as second arg and
  returns signed int.
1998-11-16 05:07:27 +00:00
Hallvard Furuseth
7e6ad5100c Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking.  Retyped a number of functions, usually
to return void.  Fixed a number of printf format errors.

API changes (in ldap/include):
  Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
  for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.

A number of `extern' declarations are left (some added by protoize), to
be cleaned away later.  Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-15 22:40:11 +00:00
Hallvard Furuseth
523fd2c891 Fix most `wider type truncated to int' bugs on OSF1 due to implicit decls:
#include <stdlib.h>    to get malloc & co various places,
 #include <ac/string.h> to get strlen & co in (liblutil/setproctitle.c),
 declare ch_malloc & co (slurp.h), avl_find_lin (avl.h), Malloc (ud/edit.c).
Also changed ch_malloc & co from char* to void* functions.
1998-11-11 23:37:38 +00:00
Kurt Zeilenga
d6e05ecbd7 Update NT4 port. 1998-11-11 05:50:51 +00:00
Kurt Zeilenga
f67adafb44 Fix detach.c typo in OBJS 1998-11-07 00:33:02 +00:00
Kurt Zeilenga
d4a4a4cd25 Add lutil_passwd() 1998-11-06 22:04:14 +00:00
Kurt Zeilenga
09bff5c2d5 Should include lutil.h to get it's own prototype. 1998-11-06 22:03:15 +00:00
Kurt Zeilenga
36378ea411 Updated MSVC5 workspaces and projects.
Added ac/stdarg.h and updated liblber encode/decode to use it.
1998-11-06 01:18:49 +00:00
Kurt Zeilenga
02e98f106c Make sure vsnprintf() exists before using it. Add fallbacks. 1998-11-04 23:25:56 +00:00
Hallvard Furuseth
2f33278850 Added lutil_detach() 1998-11-04 23:05:02 +00:00
Kurt Zeilenga
cedf6b4b5f 8-bit memcmp() 1998-11-04 18:47:15 +00:00
Hallvard Furuseth
d171cd4f42 Some gcc -W cleanup 1998-11-04 13:15:18 +00:00
Kurt Zeilenga
1203736b7b Add setproctile to liblutil 1998-11-04 01:36:44 +00:00
Kurt Zeilenga
adb49a3daf Working LDAP search on NT4! 1998-10-25 17:40:01 +00:00
Kurt Zeilenga
684ad6b857 Add VC++ projects/workspaces from AC branch. 1998-10-25 17:31:07 +00:00
Kurt Zeilenga
926ba6cb4a New files from Autoconf branch. 1998-10-25 03:15:45 +00:00
Kurt Zeilenga
dd51f86042 More files that didn't get merged properly. 1998-10-25 03:13:43 +00:00
Kurt Zeilenga
eb16d5d88f replace with autoconf versions 1998-10-25 02:08:13 +00:00
Kurt Zeilenga
cbb281cc4e remove old files 1998-10-25 01:50:47 +00:00
Kurt Zeilenga
2a869f5a99 merged with autoconf branch 1998-10-25 01:41:42 +00:00
Kurt Zeilenga
cac3ea1e92 Import public domain sha1 routines from Steve Reid <steve@edmweb.com>.
Modified for OpenLDAP use by Daniel J. Gregor <djg@gregor.com>.
1998-09-03 06:25:38 +00:00
Kurt Zeilenga
8c5868b500 Add basic support for MD5 and SHA1 passwords.
SHA1 support is contributed by Daniel J. Gregor <dj@gregor.com>
	MD5 support is contributed by me <kurt@OpenLDAP.org>
	Uses public domain MD5 routines
	Uses ISC/IBM freely redistributable Base64 routines
	SHA1 support requires external SHA1 routines
1998-09-02 21:31:35 +00:00