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
Kurt Zeilenga
09bff5c2d5
Should include lutil.h to get it's own prototype.
1998-11-06 22:03:15 +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
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
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