Commit Graph

182 Commits

Author SHA1 Message Date
Kurt Zeilenga
c65938abe0 Make sure that four characters, rather than only the first three,
are being analysed in the transaltion to base64.
From: Lucio de Re <lucio@proxima.alt.za>
1998-12-14 04:21:04 +00:00
Kurt Zeilenga
bfd6702f9f testavl wasn't being linked. 1998-12-04 02:17:57 +00:00
Kurt Zeilenga
6232170a03 Commit preliminary fix for ldap.conf base usage. 1998-12-01 20:08:39 +00:00
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
ff559f551a Remove LDAP_PORT dependencies so that ldap.conf defaults take over. 1998-11-30 03:55:49 +00:00
Kurt Zeilenga
edd464ee8f Update build environment:
default sysconfdir subdirectory is openldap instead of ldap.
    This removes conflicts with other ldap subsystems.  Should
    be configure option.
  *.conf files are now preserved.  A *.conf.default are always
    created with the latest conf.
  *.help and ldapfriendly are now placed in $(datadir)/$(ldap_subdir)
  updated man pages to reflect changes.
1998-11-29 19:48:28 +00:00
Kurt Zeilenga
21b249ca6e Change init_w_userconf to not interpet the filename. If it's
give "/foo", then it will check $HOME/foo, $HOME/./foo, then /foo.
This might not be what the installer hand it mind... but then again
may be it is.
w_userconf and w_conf both now use NULL arguments to disable conf loading.
1998-11-23 03:03:06 +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
Hallvard Furuseth
185586f5c2 Plug memory leak 1998-11-23 01:44:24 +00:00
Kurt Zeilenga
07a03d2245 Should use right define HAVE_NT_THREADS... 1998-11-23 00:17:23 +00:00
Kurt Zeilenga
61e8984d7a Add basic NT thread support. 1998-11-23 00:14:12 +00:00
Kurt Zeilenga
baf8e2f010 Axe the SunOS 5.6 define and use Pthreads. 1998-11-22 23:18:46 +00:00
Hallvard Furuseth
e2b8daf62b gcc -W cleanup: Remove implicit int, remove unused idtest:usage() 1998-11-22 06:43:49 +00:00
Kurt Zeilenga
6f92e197dc Add libtool support based upon patch by Bart Hartgers <Hartgers@kfm1.phys.tue.nl>
Updated to use libtool 1.2 (with FreeBSD3.0 a.out v. elf detection).
  Updated autoconf to 1.12 with sed patch (don't use stock 1.12).
  aclocal.m4 is built using automake's aclocal, v1.3.
  Updated mkdep to support libtool .lo files.
Updated automake provided macros for TERMIOS, STRTOD, MKTIME, PTRDIFF_T
Autoconf now checks to ensure C compiler supports ANSI C prototypes.
Updated make files templates.
1998-11-22 04:22:28 +00:00
Kurt Zeilenga
1941422b2d LIBS needs to be redefined to link test programs. 1998-11-21 20:50:35 +00:00
Kurt Zeilenga
b35e18c03f Build library test programs. Fix compiling issues. 1998-11-21 20:39:24 +00:00
Hallvard Furuseth
de808662ac stack.c did not compile, needed ldap_log.h for its debugging statements. 1998-11-20 11:44:19 +00:00
Kurt Zeilenga
d693e3015a Add strdup.c to project file. 1998-11-20 07:38:09 +00:00
Kurt Zeilenga
120b7fedae Add strdup.c from -llutil, renamed to ldap_strdup() and always used.
This will allow us to substitute malloc() at a later date.
1998-11-20 07:02:39 +00:00
Hallvard Furuseth
c24d932b02 add ldap_strdup and eliminate strdup in libldap 1998-11-19 06:18:23 +00:00
Kurt Zeilenga
cbf7c28c0a Support $LDAPRC to specify fullpath to additional rc file
Don't support ./.ldaprc...  can be spoofed to easily.
1998-11-19 03:55:56 +00:00
Kurt Zeilenga
1b51fc23f3 Check in default ldap.conf file 1998-11-19 02:10:52 +00:00
Kurt Zeilenga
2a0715d947 Remove lint in UserDirectory found on NT 1998-11-18 20:08:02 +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
86fc474a50 Make sure tblsize in initialized in ldap_new_select_info()
Regenerate configure.
1998-11-16 23:55:37 +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
Kurt Zeilenga
1c91859e9b Remove #ifdef sunos in lthread HAVE_LWP code. 1998-11-15 22:05:28 +00:00
Hallvard Furuseth
4ed85bbbb4 Removed space in front of #endif'; make depend' did not like it. 1998-11-13 03:06:54 +00:00
Kurt Zeilenga
a9d6d0c6a1 Move extern declarations to headers.
Update NT portable.h and features.h
1998-11-12 21:07:28 +00:00
Hallvard Furuseth
ce5dcbc522 Check if inet_addr() returns 0xffffffff as well as -1.
It returns (int)0xffffffff on OSF1 which has 64-bit long, so
`unsigned long address; ... if((address = inet_addr(str)) == -1)' fails.
1998-11-12 02:24:43 +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
Hallvard Furuseth
dfc9a1c2ff &deref_kv -> deref_kv; som compilers don't like &array 1998-11-11 15:42:22 +00:00
Kurt Zeilenga
d6e05ecbd7 Update NT4 port. 1998-11-11 05:50:51 +00:00
Kurt Zeilenga
1fc810bfe5 Added support for ldap.conf file. See ldap.conf(5) for details.
Modified clients to reduce use of ldapconfig.h.edit.
ldap_{get,set}_option support is relatively complete.  Needs
to be extended to support other "features" of OpenLDAP.
1998-11-10 23:37:30 +00:00
Hallvard Furuseth
12b9ad0954 Removed LDAP_P in unhex' prototype; unhex(char) is incompatible with unhex(). 1998-11-10 22:18:22 +00:00
Kurt Zeilenga
120f75219d Update apitest with to toy with additional ldap options and extensions. 1998-11-10 20:27:47 +00:00
Kurt Zeilenga
e6ac1f46c3 Add support for runtime determination of API extensions. 1998-11-09 23:21:38 +00:00
Kurt Zeilenga
fd3000d5dc Initialize openldap_ldap_global_options struct (not yet used). 1998-11-09 23:02:27 +00:00
Kurt Zeilenga
1f4b479b2b Update thread detection:
ifndef HAVE_PTHREAD_KILL pthread_kill() code and prototype.
  Fix HAVE_FUNC_PTHREAD defines from previous change.
1998-11-09 21:15:56 +00:00
Kurt Zeilenga
8cb0ff3a68 Fix rwlock pthread draft4 compatibility.
Fix pthread_attr_init/destroy pthread draft4 compatibility.
1998-11-09 20:50:52 +00:00
Kurt Zeilenga
a48b606a2f Initial LDAP_API_FEATURE_X_OPENLDAP commit:
configure generates ldap_features.h based from ldap_features.h.in
  LDAP_REFERRALS -> LDAP_API_FEATURE_OPENLDAP_V2_REFERRALS
  LDAP_DNS -> LDAP_API_FEATURE_OPENLDAP_V2_DNS
1998-11-09 19:41:09 +00:00
Kurt Zeilenga
5960272713 Split out ldapoptions from struct ldap to facilate global options.
Add openldap_ldap_initialize() call to ldap_init/ldap_open/ldap_get/set_options.
1998-11-09 18:40:37 +00:00
Hallvard Furuseth
ee4ee470d5 dtest.c needed lber-int.h (struct berelement) 1998-11-08 02:31:31 +00:00
Kurt Zeilenga
435a502cbc Fix LDAP_DNS code to use LDAP_BOOL_GET 1998-11-08 01:11:09 +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