Commit Graph

515 Commits

Author SHA1 Message Date
Kurt Zeilenga
5c6ad6c5b1 ldif'ize ldif library (ie: everything is now in the ldif_ namespace) 1998-12-20 22:28:33 +00:00
Kurt Zeilenga
362d6cbf2a Add configure code for setting LDAP_SYSLOG but actually use hardcoded
LDAP_SYSLOG in slap.h/slurp.h.
1998-12-20 21:56:44 +00:00
Kurt Zeilenga
a5eee14f72 Add detection of dmalloc library. 1998-12-20 19:12:20 +00:00
Kurt Zeilenga
b5973eba5d Minor change to signal handler. Changed _shutdown flag to
type 'sig_atomic_t' and marked it volatile.  Add detection to
configure to ensure sig_atomic_t and volatile are supported.
1998-12-20 18:16:03 +00:00
Kurt Zeilenga
8aba5c5059 Provide framework for ldap_r and reentrant/thread safety levels.
-lldap_r can now be implemented...
1998-12-20 00:58:55 +00:00
Kurt Zeilenga
0024cf2f4b -lldap reentrantancy improvements from Bart Hartgers <A.Hartgers@phys.tue.nl>
including use of ctime_r, gethostby*_r, etc..  Also reworked ldap_sort_entries
to be reentrant.
Need to add code to properly set LDAP_API_FEATURE_THREAD_SAFE.
1998-12-19 01:27:20 +00:00
Kurt Zeilenga
3a5e383dbd Add draft-ietf-ldapext-ldap-c-api-01 routines ber_init()
and ber_flatten() to the -llber.
1998-12-18 21:08:28 +00:00
Kurt Zeilenga
9db062bb71 Update pthread checks:
Add plain -lpthread check.
	Move *_r() checks so that they are checked for regradless
		of thread libs used.  Before they were only being checked
		when using threads.
	Fix yields test such that compile/link/odd runtime failures results in
		'yes' instead of 'no'.
1998-12-14 00:23:22 +00:00
Kurt Zeilenga
76dc7b2673 Add checks for gethostby{name,addr}_r. Only should be used if
linking with $LTHREAD_LIBS.
1998-12-04 04:21:19 +00:00
Kurt Zeilenga
514c44a5c8 Add checks for reentrant functions when LTHREAD_LIBS is used.
Don't use new HAVE_FUNC_R on the client side (apps or libs).
1998-12-04 02:31:41 +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
febafbdf28 Add varients of REENTRANT... 1998-11-30 20:40:42 +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
30cefc46de Add KRB_LIBS to makefiles. 1998-11-25 23:49:12 +00:00
Kurt Zeilenga
0e2a772173 Fix ldap_sigusr2 vs 1 typo for Linux on alpha & sparc. 1998-11-25 23:35:04 +00:00
Hallvard Furuseth
ee2a3e7871 Add crypt() declaration 1998-11-23 08:14:40 +00:00
Kurt Zeilenga
e020da90c1 Need to add unistd.h and sys/time.h checks back in now that
now that the mktime check is commented out.
1998-11-23 06:02:47 +00:00
Hallvard Furuseth
abfcf15d48 Cast memcpy #defined as bcopy to void, to avoid use of unspecified values.
Clarify a few comments.
1998-11-23 04:29:01 +00:00
Kurt Zeilenga
1650f15d9d Remove mktime/stdtod checks. They are not currently needed. 1998-11-23 03:08:26 +00:00
Kurt Zeilenga
61e8984d7a Add basic NT thread support. 1998-11-23 00:14:12 +00:00
Kurt Zeilenga
53100db1a5 Update portable.h for NT 1998-11-22 23:29:51 +00:00
Kurt Zeilenga
baf8e2f010 Axe the SunOS 5.6 define and use Pthreads. 1998-11-22 23:18:46 +00:00
Kurt Zeilenga
0f518857f0 Update configure with new yielding select test. 1998-11-22 20:25:52 +00:00
Kurt Zeilenga
04d91569e1 Replaced PREEMPTIVE_THREADS with HAVE_YIELDING_SELECT to clarify
the exact nature of the functionality being tested.  -DNO_THREADS
does NOT have a yield select, hence the macro is not defined.
The slapd/daemon code has been changed to test both no threads
and yielding select before using a timeout of NULL.
1998-11-22 20:08:14 +00:00
Hallvard Furuseth
61a3251cf7 Typo: '#ifdef defined(...)' 1998-11-22 10:26:51 +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
b35e18c03f Build library test programs. Fix compiling issues. 1998-11-21 20:39:24 +00:00
Kurt Zeilenga
8dcc4b6c8f Update string.h to unconditional declare forwards for
strdup(), strcasecmp(), strncasecmp().  Should test to see
if these are truely needed.  Hopefully their addition will
not break other platforms.
1998-11-20 07:04:20 +00:00
Kurt Zeilenga
2a0715d947 Remove lint in UserDirectory found on NT 1998-11-18 20:08:02 +00:00
Kurt Zeilenga
3111cfa3bd Update LinuxThread signal handling. Hide #ifdef hell in ac/signal.h. 1998-11-18 17:45:32 +00:00
Kurt Zeilenga
3474bbaed5 Need to add SIZEOF defines. 1998-11-18 06:10:11 +00:00
Kurt Zeilenga
a8586a141b Fix multiple define protection. 1998-11-18 05:11:12 +00:00
Kurt Zeilenga
f05554bddc Shouldn't have removed uint32's multiple defined protection... 1998-11-18 05:09:05 +00:00
Kurt Zeilenga
bda79e1324 Add missing check for crypt.h
Sync portable.h.nt with portable.h.in
1998-11-18 04:48:16 +00:00
Kurt Zeilenga
fb7d6ce5df Move byte orderring stuff to ac/bytes.h 1998-11-17 22:49:47 +00:00
Kurt Zeilenga
05e597d869 Add sizeof checks to configure.in.
Add ac/bytes.h to provided sized types.
Use new sized type in md5/sha1 header through simple typedef.
Should substitute old type for new everywhere.
1998-11-17 22:49:15 +00:00
Kurt Zeilenga
a240efce5c Add AC_C_BIGENDIAN check for <ac/socket.h>. Code should be rewritten
not to require knowledge of byte order such that this check can be removed.
1998-11-17 19:44:59 +00:00
Kurt Zeilenga
5413a9598a NT doesn't have fork. Need to define HAVE_SPAWNLP 1998-11-17 19:14:11 +00:00
Kurt Zeilenga
34780e1dc3 Remove recently added externs. Some may not actually be bogus. 1998-11-17 19:08:29 +00:00
Kurt Zeilenga
da42acb93a Update handling of string headers.
Update NT port.
1998-11-17 19:05:48 +00:00
Hallvard Furuseth
b581bdd23c Back out K&Rification change; would only be needed in ldap.h and lber.h. 1998-11-17 04:07:31 +00:00
Hallvard Furuseth
b1ab654fbe Kill off #elif in ldap/include/. K&R does not support it. 1998-11-17 01:25:45 +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
Kurt Zeilenga
24c5b0e791 Add checks for string.h and strings.h and apply them in generic header. 1998-11-16 02:02:45 +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
63a818078c Added declarations of common str*() functions 1998-11-15 21:52:56 +00:00
Kurt Zeilenga
5c2334c8a4 Updates based upon latest NT UserDirectory changes:
configure checks for getpwuid(), sys/resource.h, and pwd.h
	Fix !TERMIOS && !SGTTY ifdef in ud/util.c
1998-11-12 23:25:53 +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
Kurt Zeilenga
8c5a6151b1 Rework prototype ifdef to use __NO_PROTOTYPES and __NEED_PROTOTYPES
to force no prototypes or require them.
Remove _WIN32 clause.  Will update portable.h.nt to define __NEED_PROTOTYPES.
1998-11-12 20:30:42 +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
dcec4bf292 Add/Remove defines to make current with ldapconfig.h.edit 1.8 1998-11-11 03:13:55 +00:00
Kurt Zeilenga
10a013f8ce Create feature file for NT build environment. 1998-11-11 03:03:03 +00:00
Kurt Zeilenga
376e1e02ff Update configure to handle DEC OSF1 3.2 special cases.
-thread & -pthread are still treated as libraries, will need
additional work to use them as CFLAGS.
Eliminated HAVE_DCE define (was redundant) and its use.  Code
now relies on draft4 and function existance tests.
1998-11-11 00:24:22 +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
Kurt Zeilenga
962b8dc246 HAVE_PTHREAD_ATTR_SETDETACHSTATE_NP should be HAVE_PTHREAD_ATTR_SETDETACH_NP 1998-11-10 22:42:19 +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
a5ee7b5842 Add -lresolv check for LDAP_DNS.
Updated portable.h.nt based upon portable.h.in (1.11).
1998-11-08 19:37:03 +00:00
Kurt Zeilenga
54c66420f0 Add additional LDAPD/ISODE checks 1998-11-08 00:26:20 +00:00
Kurt Zeilenga
d4a4a4cd25 Add lutil_passwd() 1998-11-06 22:04:14 +00:00
Kurt Zeilenga
fb45c9baba Add LDAPD library checks.
Remove AC_GCC_TRADITIONAL check.  Likely to cause more harm than good.
1998-11-06 21:14:19 +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
0221763eac Generic variable argument header. Hides ugly ifdef. 1998-11-06 01:03:14 +00:00
Kurt Zeilenga
aacfd00141 Updated to 1.8 1998-11-05 19:39:26 +00:00
Kurt Zeilenga
4646b76608 define _REENTRANT & _THREAD_SAFE to pull in reentrant/threadsafe prototypes.
modify apps to use TOLOWER/TOUPPER macros to ensure isupper/islower is
called when approprate.
1998-11-05 06:11:47 +00:00
Hallvard Furuseth
83ec12246e Enclose debug variables in #ifdef LDAP_DEBUG 1998-11-05 05:03:12 +00:00
Kurt Zeilenga
c230adae6b Add cross compiling warnings and errors.
Now require --enable-x-compile if cross compiling.
Add tests for threadsafe/reentrant functions.
Add tests for setconcurrency functions.
1998-11-05 02:50:28 +00:00
Hallvard Furuseth
71eef8a424 Added lutil_detach() 1998-11-05 01:22:42 +00:00
Kurt Zeilenga
efca851ac7 Favor termios over sgtty. 1998-11-05 00:09:41 +00:00
Hallvard Furuseth
f81ee9b63e Added ldap_msgtype() and ldap_msgid() 1998-11-04 23:51:31 +00:00
Kurt Zeilenga
5009ee7b13 Add tests for vsnprintf and snprintf. 1998-11-04 23:29:52 +00:00
Hallvard Furuseth
41e25b4041 Added ldap_explode_rdn() 1998-11-04 23:28:51 +00:00
Kurt Zeilenga
6f3bb4adfb Add additional defines to allow more compile time API checks. 1998-11-04 20:09:57 +00:00
Kurt Zeilenga
8333a03346 struct ldap is now opaque to clients.
updated clients to use ldap_get/set_options
ld_options is renamed ld_booleans.  ldap-int.h has accessor macros.
updated libldap to use new accessor macros.
1998-11-04 01:41:00 +00:00
Kurt Zeilenga
1203736b7b Add setproctile to liblutil 1998-11-04 01:36:44 +00:00
Kurt Zeilenga
0300aebdc5 autoconf update 1998-11-04 01:35:21 +00:00
Kurt Zeilenga
1c0f451699 Check in mach cthread fixes. Should make non-pthread detection
work better.
1998-11-01 18:11:11 +00:00
Kurt Zeilenga
34c945b86d added ber_print_error() and renamed lber_bprint into ber_ namespace. 1998-10-27 07:50:07 +00:00
Stuart Lynne
80cf83ace8 1. add ldap_get_lderrno(), required if struct ldap is private 1998-10-27 07:10:20 +00:00
Kurt Zeilenga
48e53c8487 Add prototypes for LDAPv3 draft functions 1998-10-26 02:47:43 +00:00
Kurt Zeilenga
42f2a83607 rename ber_init() to ber_init_w_nullc in preparation of LDAPv3 ber_init() 1998-10-26 02:38:39 +00:00
Kurt Zeilenga
43f29c3cb8 More header work toward draft-ietf-ldapext-ldap-c-api-01. 1998-10-26 01:49:56 +00:00
Kurt Zeilenga
702109706b update ldap/lber headers towards ldapext-ldap-c-api-01 1998-10-26 01:18:41 +00:00
Kurt Zeilenga
8ffd286942 bash(1) doesn't like empty if statements 1998-10-25 06:26:44 +00:00
Kurt Zeilenga
2a869f5a99 merged with autoconf branch 1998-10-25 01:41:42 +00:00
Kurt Zeilenga
bf6c1e0ad2 Added Will Ballantyne's General Aliasing code.
Not quite sure if the entry lock handling is correct yet.
1998-10-24 02:42:38 +00:00
Kurt Zeilenga
b978170b1a More lint removal from Hallvard. 1998-10-23 23:10:49 +00:00
Kurt Zeilenga
a8040ca213 sched.h not actually required 1998-09-16 02:42:33 +00:00
Kurt Zeilenga
c1b676a13e To the attic these should go. 1998-09-05 06:15:58 +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
2054d40b7c Added support for SleepyCat DB2 DBI.
Derived from public posting to ldap@umich.edu
	by Kurt Spanier <kurt.spanier@zdv.uni-tuebingen.de>
	See Make-common.dist for DB2 options
1998-09-03 00:50:13 +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
Kurt Zeilenga
b015c8db24 Add support for OpenBSD. Provided by djg@gregor.com. 1998-08-31 20:49:27 +00:00
Kurt Zeilenga
e77708e516 Add prototypes for check functions provided by Stuart Lynne 1998-08-30 18:58:44 +00:00
Kurt Zeilenga
3780fa4740 rdwr.h from orielly examples (with multiple inclusion protection) 1998-08-30 18:58:06 +00:00
Kurt Zeilenga
8c5cd2a474 Remove BSDREGEX junk 1998-08-27 21:32:49 +00:00
Kurt Zeilenga
926b7cb1c7 Pulled NetBSD changes into current 1998-08-27 08:19:14 +00:00
Kurt Zeilenga
2ec25ef881 Merged files from branch REGEX_REMOVAL. Despite name, this merge
adds POSIX RegEx (and removes BSD re_comp/re_exec) support.
* POSIX RegEx is not currently included in the distribution, however
	we will probably add Henry Spencer's REGEX library soon.
* ACL Group functionality is also included in this merge!
1998-08-21 06:33:42 +00:00
Kurt Zeilenga
c636a39a60 BSD has re_comp/re_exec in -lcompat 1998-08-20 19:44:02 +00:00
Kurt Zeilenga
d2ef362f99 Removed use of paths not defined in ldapconfig.h.edit.
Fixed Dependency Generation not to mess with Make-templates.
	side effect: depends are not carried forward after "make makefiles"
1998-08-20 03:56:19 +00:00
Kurt Zeilenga
b3ac184962 Fixed ldapconfig.h.edit/Make-template to generate ldapconfig.h correctly.
ldif2ldbm.c defaults moved to ldapconfig.h, sed no longer needed.
Changed type of lconn_lastused to time_t.
Added include <time.h> were needed.
1998-08-20 02:18:28 +00:00
Kurt Zeilenga
2cf9690f9f Added support for SLEEPYCAT DB2.
Modified main makefile to support local Make-common.  Builds file
from Make-common.dist.
1998-08-20 00:05:08 +00:00
Kurt Zeilenga
adc2134f03 Modified build environment to correctly support bin,sbin,libexec,etc
and setting of variables from Make-platform with defaults in Make-common.
1998-08-19 18:19:39 +00:00
Kurt Zeilenga
079f21c3ac Added LIBEXECDIR, SBINDIR and patched install rules and files as needed. 1998-08-19 02:38:35 +00:00
Kurt Zeilenga
1b5451d619 Added patch to support LWP under SunOS 5.6 1998-08-14 20:12:02 +00:00
Kurt Zeilenga
f3e9bc606c integrated changed from rage.net glibc.patch 1998-08-13 19:32:43 +00:00
Kurt Zeilenga
cda1faaf00 Linux defines SYS_ERRLIST in stdio (doesn't everyone) 1998-08-12 07:36:36 +00:00
Kurt Zeilenga
412b85ec7e Added linux patch 1998-08-09 04:56:25 +00:00
Kurt Zeilenga
b63a0b1c61 LDAPworldP19: Patch for Next C-Threads 1998-08-09 03:13:49 +00:00
Kurt Zeilenga
92f7e6c3c8 LDAPworld P6: SLAPD on AIX 1998-08-09 02:41:53 +00:00
Kurt Zeilenga
860038cff1 LDAPworld P1: DEC and other portability issues 1998-08-09 02:28:45 +00:00
Kurt Zeilenga
42e0d83cb3 Initial revision 1998-08-09 00:43:13 +00:00