Commit Graph

201 Commits

Author SHA1 Message Date
Kurt Zeilenga
a4822cf328 Initial versions of functions to step through messages and references.
Fixed entry step through functions to check specifically fore entries.
1998-12-24 04:45:54 +00:00
Randy Kunkee
a451ccc50b Fix line 62 of bprint.c "#elif" line with no expression.
Add check for to configure.in vsprintf, since HAVE_VSPRINTF is presumably
what was intended there.  Finally, also protected a bunch of if test
expressions with double quotes, as they were producing illegal test
commands.
1998-12-24 01:31:40 +00:00
Kurt Zeilenga
2f5ef0d1a8 Initial version of control free/dup functions. 1998-12-23 02:31:35 +00:00
Kurt Zeilenga
52d7a2d8b2 Add client/server control free/dup functions and
ldap_set/get_option support for controls.
1998-12-23 02:30:44 +00:00
Kurt Zeilenga
60f52adc86 Fix get/set error string bugs. 1998-12-23 00:42:38 +00:00
Kurt Zeilenga
32d9cc239c Add ldap_memfree() to the mix. 1998-12-22 18:42:02 +00:00
Kurt Zeilenga
e795f9168d Update main comment and remove unneeded <ac/time.h> inclusion. 1998-12-22 18:27:14 +00:00
Kurt Zeilenga
a64c2a3954 Allow LDAP session errno and error strings to be set. 1998-12-22 04:49:56 +00:00
Kurt Zeilenga
a36412440c Update error codes based upon draft-ietf-ldapext-ldap-c-api-01
Remove ldap_get_lderrno().
1998-12-22 04:45:14 +00:00
Kurt Zeilenga
2d39f617b8 Add LDAP_OPT_API_FEATURE_INFO to obtain feature info (ie: version)
at runtime.
1998-12-22 03:17:25 +00:00
Kurt Zeilenga
811cfab91f Move LDAPServer, LDAPConn, LDAPRequest, and LDAPCache
from ldap.h to ldap-int.
1998-12-22 02:39:24 +00:00
Kurt Zeilenga
a3ac3be6a7 Added lber_get/set_option. Removed lber_debug/ldap_debug.
Updated other codes as needed.
1998-12-22 01:34:01 +00:00
Kurt Zeilenga
2d15a94d16 LDAP C-API changes
struct friendly (Friendly) changed to ldap_friendly (LDAPFriendly)
	  ldap_friendly friend prefix changed to 'lf_' from 'f_'
	removed mod_next field from LDAPMod (struct ldapmod)
	modified slapd to use new LDAPModList (struct ldapmodlist) struct.
Added LDAPv3 result codes to ldap.h
1998-12-21 00:21:58 +00:00
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
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
d44a54e543 Don't include -lldap_r in make all (yet). 1998-12-19 16:59:51 +00:00
Kurt Zeilenga
27e8d218ee Add -lldap_r build environment (no code yet). 1998-12-19 03:24:36 +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
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