Hallvard Furuseth
185586f5c2
Plug memory leak
1998-11-23 01:44:24 +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
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
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
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
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
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
Kurt Zeilenga
435a502cbc
Fix LDAP_DNS code to use LDAP_BOOL_GET
1998-11-08 01:11:09 +00:00
Kurt Zeilenga
418c49de0c
MSVC5 does like -1UL... replaced with (unsigned long) -1L
1998-11-06 02:04:07 +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
b06e8682a9
add exit, check commitlogs
1998-11-05 06:18:06 +00:00
Kurt Zeilenga
7cd83cc8a0
Simple test to verify commitlog fix.
1998-11-05 06:16:11 +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
6b0a490026
Some gcc -W... cleanup
1998-11-05 06:05:52 +00:00
Hallvard Furuseth
c6e48d6770
Typo when !LDAP_REFERRALS
1998-11-05 04:58:52 +00:00
Kurt Zeilenga
275d82352d
Add descriptive comment at top.
1998-11-05 02:48:41 +00:00
Hallvard Furuseth
f81ee9b63e
Added ldap_msgtype() and ldap_msgid()
1998-11-04 23:51:31 +00:00
Hallvard Furuseth
41e25b4041
Added ldap_explode_rdn()
1998-11-04 23:28:51 +00:00
Kurt Zeilenga
a169d9dea6
Add apitest to build.
1998-11-04 20:09:25 +00:00
Kurt Zeilenga
8dae04328f
API test for checking draft API issues.
1998-11-04 20:09:07 +00:00
Kurt Zeilenga
ba47ae1c6d
Update options.c to use new defines.
1998-11-04 20:08:37 +00:00
Hallvard Furuseth
d171cd4f42
Some gcc -W cleanup
1998-11-04 13:15:18 +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
Stuart Lynne
80cf83ace8
1. add ldap_get_lderrno(), required if struct ldap is private
1998-10-27 07:10:20 +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
adb49a3daf
Working LDAP search on NT4!
1998-10-25 17:40:01 +00:00
Kurt Zeilenga
7ae5aa69a7
wasn't merged in first round.
1998-10-25 03:22:04 +00:00
Kurt Zeilenga
dd51f86042
More files that didn't get merged properly.
1998-10-25 03:13:43 +00:00
Kurt Zeilenga
a57b7a5bb0
replace with ac version
1998-10-25 02:02:31 +00:00
Kurt Zeilenga
2fa8827ccf
replace with autoconf version
1998-10-25 02:01:14 +00:00
Kurt Zeilenga
41a48b09dd
Wasn't merged. Just use autoconf version.
1998-10-25 01:57:30 +00:00
Kurt Zeilenga
2a869f5a99
merged with autoconf branch
1998-10-25 01:41:42 +00:00
Kurt Zeilenga
af77c232f5
Found the really, really stupid bug. The SAFEMEMCPY macro
...
in string.h was hosed for memmove/memcpy cases.
1998-10-25 00:35:35 +00:00
Kurt Zeilenga
4426899396
remove some lint...
1998-10-24 22:06:36 +00:00
Kurt Zeilenga
198461b7ff
minor cleanup
1998-10-24 20:25:50 +00:00
Kurt Zeilenga
6c6d3d8f0c
update locking codes, remove old platform specific defines
1998-10-24 20:18:31 +00:00
Kurt Zeilenga
5c296dc0ba
Minor changes to support NT.
1998-10-23 17:42:19 +00:00
Kurt Zeilenga
a9fff6ae9d
Whoops.
1998-10-22 23:28:20 +00:00
Kurt Zeilenga
5ee53ca851
Add in WINSOCK2 ifdefs (ugh).
1998-10-22 23:25:45 +00:00
Kurt Zeilenga
984a661277
clean up includes
1998-10-22 21:35:53 +00:00
Kurt Zeilenga
569087f1ba
Add ltest/test workspaces/project files for NT/VC++ port.
1998-10-22 21:23:15 +00:00
Kurt Zeilenga
309ed6442f
Fix ltest/ttest linking.
1998-10-22 21:06:55 +00:00
Kurt Zeilenga
0549966661
Tried to port to NT... but no resolver routines.
1998-10-22 20:58:37 +00:00
Kurt Zeilenga
5b62482fac
The world compiles and links....
...
Need to sort out remaining ifnames and run testsuite.
1998-10-22 03:03:07 +00:00
Kurt Zeilenga
c4b1286fa9
SLAPD and tools compile and link!
...
LTHREAD still needs work.
1998-10-22 00:40:49 +00:00
Kurt Zeilenga
4bce7aa748
VC++ update... tools now link!
1998-10-20 21:14:19 +00:00
Kurt Zeilenga
30eb9ed76f
Modified NT changes to work under UNIX.
1998-10-20 17:47:51 +00:00
Kurt Zeilenga
13bd786abf
VC++ Port: round 1
1998-10-20 04:13:34 +00:00
Kurt Zeilenga
490bb72f82
Remove DEFS variables from Makefiles, remove bridge.h.
...
Rely on portable.h.
1998-10-19 23:51:45 +00:00
Kurt Zeilenga
ae21b1ee94
Clean up sh commands in Makefiles (incorrect use of ';').
...
Fix make install problems.
1998-09-28 19:27:53 +00:00
Kurt Zeilenga
0c0f011dc0
Everything compiles.... but tests fail...
1998-09-25 19:25:20 +00:00
Kurt Zeilenga
d0339b19a2
Fix VPATH includes/libraries
1998-09-21 02:59:21 +00:00
Kurt Zeilenga
32a688f0df
Added basic VPATH support. VPATH Make depend still needs work.
1998-09-20 18:54:36 +00:00
Kurt Zeilenga
86aaa17f2d
Remove old build system.
1998-09-18 19:00:28 +00:00
Kurt Zeilenga
09b44ff101
Fixed make clean/install for everything but man pages.
1998-09-18 18:11:02 +00:00
Kurt Zeilenga
2e769ccf43
Make all, clean, veryclean, depend, install all appear to work!
...
Now to sort out configure enable/with options.
1998-09-18 06:03:19 +00:00
Kurt Zeilenga
b60b0fe58a
Add Makefile templates for libraries.
1998-09-17 09:46:56 +00:00
Kurt Zeilenga
2fb96905d2
Add Kerberos V5 support from Predrag Balorda <pele@artewisdom.com>
1998-09-08 02:26:56 +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
cbc4b47f70
removed lint
1998-08-20 19:42:38 +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
fa2da63ca4
Merge from LAMBERT branch
1998-08-17 23:26:25 +00:00
Kurt Zeilenga
c46afcbd63
Backed up LDAP world P16, causes hang
1998-08-14 05:08:34 +00:00
Kurt Zeilenga
fcbca73f90
Merged LDAPworldCurrent (P1-10,13,15,16,19-22)
...
Cleaned up old rcs keyworld subs
1998-08-09 04:13:55 +00:00
Kurt Zeilenga
0b0c178c1a
LDAPworldP16: Search responses may not be returned properly
1998-08-09 03:08:09 +00:00
Kurt Zeilenga
29eda9c799
LDAPworldP15: Internal LDAP function rename
1998-08-09 03:04:12 +00:00
Kurt Zeilenga
1cad5fd9b2
LDAPworld P13: LDAPv2 client referrals bug
1998-08-09 02:56:52 +00:00
Kurt Zeilenga
8d5c2b41e6
LDAPworld P3: SLAPD LDBM Generation with Multiple Backends
1998-08-09 02:33:01 +00:00
Kurt Zeilenga
860038cff1
LDAPworld P1: DEC and other portability issues
1998-08-09 02:28:45 +00:00
Kurt Zeilenga
d4cfec8612
Fixed RCS headers
1998-08-09 01:32:39 +00:00
Kurt Zeilenga
04ff180cbf
Modified make system to support CVS instead of RCS
1998-08-09 01:24:49 +00:00
Kurt Zeilenga
42e0d83cb3
Initial revision
1998-08-09 00:43:13 +00:00