Kurt Zeilenga
4040fc39ca
zap ber buf pointer on free.
1999-01-29 06:07:02 +00:00
Kurt Zeilenga
26d29bb2f4
Add (back in) destroy functions...
1999-01-29 06:05:18 +00:00
Kurt Zeilenga
2c4e2fbfb2
ldap_sort_entries() should try to malloc(0) when the count is zero.
...
should also return error in ldap_count_entries returns an error.
1999-01-29 03:56:18 +00:00
Kurt Zeilenga
98f2462af0
ldap_pvt_thread_cond_broadcast() was missing from stubs.
...
I probably deleted it by mistaked when axing cond attrs.
1999-01-28 23:40:26 +00:00
Kurt Zeilenga
72ba4cfb71
Use -lldap_r instead of -lldap -lthread.
...
Likely broke things for non-posix threadings....
Update -lldap_r implementation to:
remove attribute support
hide thread detachment
provide concurrency accessors
provide initialization function
fix gethostby{addr,name}_r codes (not coverred by HAVE_REENTRANT_FUNCTIONS)
Update servers/libraries to use ldap_pvt_thread_ calls.
Cleanup server codes (no #ifdef HAVE_PTHREAD_THIS or _THATs)!
Removed -llthread
1999-01-28 04:34:55 +00:00
Kurt Zeilenga
bd6dfe333d
LDBM/back-ldbm locking reworked!
...
back-ldbm was using a cache specific lock to protect non-reentrant
database routines from being reenterred. This is inadequate.
Also, reentrant database systems calls were serialized unnecessarily.
Non-reentrant database calls must have a big_mutex. Implemented
this within -lldbm itself. library requires ldbm_initialize()
be called before any other ldbm call to initialize the big_mutex
and to do any other db specific initialization (ie: such as
required for DB2).
The dbc_mutex, dbc_cv, & dbc_readers fileds of dbcache are history.
The "reentrant_database" (REENTRANT_DATABASE) define is also axed.
1999-01-26 20:55:54 +00:00
Kurt Zeilenga
321354ecff
Add lber_pvt.h with prototypes of lber_pvt_log_print{,f}.
...
Ripple name change through -llber & -lldap.
Update -lldif to use lber_pvt_log_printf() instead of Debug.
1999-01-26 01:21:35 +00:00
Kurt Zeilenga
7eec267436
Add lber_log_print support to libldap.
...
Redefine Debug macro to call ldap_log_printf(NULL, lvl, fmt, ...)
Should replace each Debug statement with direct call to ldap_log_printf
passing LDAP session if available.
1999-01-26 00:27:51 +00:00
Kurt Zeilenga
d7079a10c3
Add support for LBER_OPT_LOG_PRINT_FN option.
1999-01-25 22:55:00 +00:00
Kurt Zeilenga
941087a09d
Forgotten commit of string rearrangement.
1999-01-24 01:32:04 +00:00
Kurt Zeilenga
97a6648832
Forgot to add new string.c.
1999-01-24 01:07:52 +00:00
Kurt Zeilenga
ddb0752b8f
Move libldap/strdup.c to string.c.
...
libldap/string.c will hold various string.h replacements.
Removed liblutil/strdup.c
Moved ldap_pvt_strtok to string.c.
Moved prototype of ldap_pvt_strtok to <ac/string.h>.
Added #define strtok_r ldap_pvt_strtok (if strtok_r doesn't exist).
1999-01-22 04:33:29 +00:00
Kurt Zeilenga
eed7408e7e
Update ldap_first_attribute/ldap_next_attribute to handle
...
BerElement argument per latest IETF ldapext draft c api spec.
That is, caller is solely responsible for freeing the BerElement
allocated and returned by ldap_first_attribute.
Update man pages accordingly.
Update applications accordingly.
1999-01-20 20:21:38 +00:00
Kurt Zeilenga
e90c6566b8
Reorder build order: libavl depends on libldap (for str*).
1999-01-17 17:50:01 +00:00
Bart Hartgers
c149f48e5c
Added OpenLDAP copyright to files.
1999-01-17 15:46:19 +00:00
Kurt Zeilenga
f1c89effeb
Add reference to ldap.conf(5).
1999-01-16 01:50:12 +00:00
Bart Hartgers
0c1cb93c69
Changes to support threads from libldap_r.
1999-01-15 14:54:25 +00:00
Bart Hartgers
027d2fadc6
Updates regarding threads and names.
1999-01-15 14:49:03 +00:00
Kurt Zeilenga
d66a450344
Update init and ldap.conf(5) to handle LDAPNOINIT, LDAPCONF, LDAPRC
...
environment settings.
1999-01-14 23:04:08 +00:00
Bart Hartgers
f6a47058b6
Improved ldap_int_strtok. If strtok_r does not exists, it will be worked
...
simulated with strspn and strpbrk. If strspn or strpbrk aren't there, they
will be supplied.
In addition, the memory-handling of the ldap_int_gethostby's is better now.
1999-01-14 15:19:29 +00:00
Kurt Zeilenga
4de6a10ce2
Insert missing ')'...
1999-01-14 06:28:50 +00:00
Kurt Zeilenga
a784654da9
Modify build order to have lutil first and lthread last (libldap_r
...
will eventually be very last). Add lthread/lutil to libldap_r test
program linkage.
1999-01-14 01:38:32 +00:00
Kurt Zeilenga
28a671d10d
Revamp build system yet again to move all external libraries to
...
end of link. Basic order is:
$LDFLAGS internal-libs external-libs $LIBS $LTHREAD_LIBS
LTHREAD_LIBS is last as -lpthread (or equiv) must be last on many systems.
LIBS is next to last as some user might have put -lpthread (or equiv)
in $LIBS.
1999-01-14 01:31:43 +00:00
Kurt Zeilenga
82b94e2258
Change SLAPD shutdown to do a cond wait on active threads instead
...
of a busy wait and allow the pthread_yield within the loop to be
removed. This was the only pthread_yield which was necessary
when usng non-preemptive threads. As such, the configure.in
sched_yield/pthread_yield missing error can be removed from
configure.in. If explicit yield function is missing, just provide
a no-op replacement.
Moved declaration of various slapd globals from main.c to init.c
so they can be shared with ldbm tools.
1999-01-11 18:36:40 +00:00
Kurt Zeilenga
334768c1bb
Update build environment to fix VPATH support.
...
make depend, make tests, and make install all work when build directory
is not the $srcdir.
Also modified library handling such that -lpthread more likely to be last.
WARNING: new orderring requires use of LDFLAGS to set global loader options
such as -L/usr/local/lib. If you put this in LIBS, some libraries
may not be found a link time.
Likely broke Kerberos/LDAPD support. Don't have those in my testbed.
1999-01-10 02:25:41 +00:00
Kurt Zeilenga
959f370e57
Backout extraneous changes made by last commit.
1999-01-07 17:51:23 +00:00
Kurt Spanier
9c6d384b9a
- Make install creates $(RUNDIR)/var for pid and args files of slapd.
...
- slapd's pid/args file names are based on the servers binary file names,
providing for multiple servers beeing run on one host.
- slapd supports the -l command line parameter for selection of a
syslog LOCAL user (-lLOCAL0 .. -lLOCAL7)
- db_appinit() is called during first ldbm_open() in DB 2.x to initialize
DB debugging features (good to find bugs in the DB code :-)
- a patch for a non-initialized variable in DB's 2.x db_open is provided.
1999-01-05 15:40:58 +00:00
Kurt Zeilenga
114a0cd339
Update ctime_r() argument macro to cache results and to produce
...
one preprocessor macro instead of two. Ran aclocal, autoconf,
autoheader to update derived files. Modify util-int.c to use
CTIME_R_NARGS define and fallback to ctime() if not set.
Made LDAP_API_FEATURE_X_OPENLDAP_REENTRANT dependent upon result.
1999-01-02 23:40:31 +00:00
Bart Hartgers
f9d26dacd4
Teached autoconf to figure out how may arguments ctime_r expects.
...
Updated util-int.c to use this information.
1999-01-02 00:56:45 +00:00
Dave Storey
2ee0dcfc0a
Added salted MD5 and SHA support. (SSHA,SMD5)
1998-12-30 05:32:17 +00:00
Kurt Zeilenga
695508813d
Fix --disable-crypt and --disable-cleartext
...
mutex declaration should be moved from slapd/main.c to slapd/init.c
so we don't have ripple changes through slapd/tools.
1998-12-29 21:45:08 +00:00
Kurt Spanier
bfb27120be
Patch for Berkeley DB 2.6.4 (beta) (DB)->cursor() call.
...
Introduction of ldbm_datum_init().
Patch for non-NULL pointer test befor call to ldbm_datum_free().
1998-12-29 17:28:45 +00:00
Kurt Zeilenga
54fbeeb427
Set 'expected' defaults
1998-12-29 05:52:27 +00:00
Kurt Zeilenga
4d2761a6a6
Add simple copyright notice.
1998-12-28 20:53:15 +00:00
Kurt Zeilenga
763ce84f7c
Minor update to copyright (forgot 'portions')
1998-12-28 20:46:13 +00:00
Kurt Zeilenga
88ec459a5f
Add simple copyright notice
1998-12-28 20:38:04 +00:00
Kurt Zeilenga
ff447a31e2
Added ldap_get_entry_contols() and ldap_parse_reference(), but
...
have not implemented ldap_get_ber_controls() helper function yet.
1998-12-27 21:59:12 +00:00
Hallvard Furuseth
521f6cfda9
Change overlapping strcpy( x, y )' to
SAFEMEMCPY( x, y, strlen( y ) + 1 )'
1998-12-27 02:15:08 +00:00
Hallvard Furuseth
c3a692787c
Change overlapping strcpy( x, y )' to
SAFEMEMCPY( x, y, strlen( y ) + 1 )'
1998-12-27 02:00:08 +00:00
Kurt Zeilenga
1d718296b4
Needs ldap-int.h
1998-12-26 18:55:46 +00:00
Hallvard Furuseth
aa3fa58f4c
Plug memory leaks when ber input fails: Let ber_scanf & co set the
...
free the memory they have allocated, and set the arguments to NULL.
1998-12-26 09:05:57 +00:00
Kurt Zeilenga
138d76ecf4
getentry.c: LDAP_RES_SEARCH_REFERENCE changes after fixing loop initializer.
...
references.c: fix same bug here. need to implement parsing.
Still need to implement chasing in cldap.c/result.c
1998-12-24 06:00:53 +00:00
Kurt Zeilenga
090b7ccca0
Backout previous entry... causes runaway ldapsearch.
1998-12-24 05:39:14 +00:00
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
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
Kurt Zeilenga
ba47ae1c6d
Update options.c to use new defines.
1998-11-04 20:08:37 +00:00
Kurt Zeilenga
cedf6b4b5f
8-bit memcmp()
1998-11-04 18:47:15 +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
Kurt Zeilenga
1203736b7b
Add setproctile to liblutil
1998-11-04 01:36:44 +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
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
ded2194df7
Apply Ken McGarrahan's ldif padding fix.
1998-10-25 18:57:03 +00:00
Kurt Zeilenga
adb49a3daf
Working LDAP search on NT4!
1998-10-25 17:40:01 +00:00
Kurt Zeilenga
684ad6b857
Add VC++ projects/workspaces from AC branch.
1998-10-25 17:31:07 +00:00
Kurt Zeilenga
7ae5aa69a7
wasn't merged in first round.
1998-10-25 03:22:04 +00:00
Kurt Zeilenga
926ba6cb4a
New files from Autoconf branch.
1998-10-25 03:15:45 +00:00
Kurt Zeilenga
dd51f86042
More files that didn't get merged properly.
1998-10-25 03:13:43 +00:00
Kurt Zeilenga
eb16d5d88f
replace with autoconf versions
1998-10-25 02:08:13 +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
cbb281cc4e
remove old files
1998-10-25 01:50:47 +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
c277fff67f
Still looking for the ldapsearch bug... and cleaning up things along the way.
1998-10-24 21:39:29 +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
d3123eada8
Quick NT port of liblter test utilities.
...
Updated AVL NT port.
1998-10-22 20:44:42 +00:00
Kurt Zeilenga
f320dcbcb9
re-add sys/stat.h include for GDBM
1998-10-22 20:19:48 +00:00
Kurt Zeilenga
12a81157a1
Add project/workspace files for testavl.
...
Resolved compiler warnings on NT.
1998-10-22 20:04:24 +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
71b34373b7
Moved strdup/tempnam to liblutil
1998-10-22 01:45:30 +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
bed979f9fc
No longer supported.
1998-10-21 02:36:02 +00:00
Kurt Zeilenga
92b28cf397
Fix BYTE_ORDER test.
1998-10-21 02:22:43 +00:00
Kurt Zeilenga
c7fe14a916
Have code use <sys/types.h> BYTE_ORDER as before.
1998-10-21 01:23:00 +00:00
Kurt Zeilenga
4bce7aa748
VC++ update... tools now link!
1998-10-20 21:14:19 +00:00
Kurt Zeilenga
98dd3e9b2f
Add test for little/big endian.
1998-10-20 21:08:08 +00:00
Kurt Zeilenga
6880f37fdc
modified for OpenLDAP
1998-10-20 19:51:08 +00:00
Kurt Zeilenga
b2ccd693a3
add public domain getopt(3)
1998-10-20 19:48:10 +00:00
Kurt Zeilenga
eb94d0d608
Fix fake error generation.
1998-10-20 18:38:59 +00:00
Kurt Zeilenga
30eb9ed76f
Modified NT changes to work under UNIX.
1998-10-20 17:47:51 +00:00
Kurt Zeilenga
7018dd1eb5
HTONL -> AC_HTONL
1998-10-20 04:41:28 +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
76ed17f794
Merge in latest from -current.
1998-10-19 19:19:48 +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
46c3cddad4
more ldap_cdefs.h, less bridge.h
1998-09-23 08:56:54 +00:00
Kurt Zeilenga
6949ab31ac
Use ldap_cdefs.h more. Use bridge.h less.
1998-09-23 08:13:37 +00:00
Kurt Zeilenga
84864e55e1
Added acconfig.h defines. started to clean up -llber.
1998-09-23 04:33:15 +00:00
Kurt Zeilenga
14df2c8ba2
Fixed md5/sha files.
1998-09-22 08:59:26 +00:00
Kurt Zeilenga
d0339b19a2
Fix VPATH includes/libraries
1998-09-21 02:59:21 +00:00
Kurt Zeilenga
4a5d740e2e
Merged in per cache entry reader/writer locks from OPENLDAP_DEVEL_THREAD
1998-09-20 20:22:46 +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
b5d6d5e2a8
Allow OpenLDAP to be built without LDBM.
1998-09-19 20:57:14 +00:00
Kurt Zeilenga
2753c5176a
FreeBSD2 has POSIX_THREADS but is missing sched_yield()
1998-09-19 05:43:12 +00:00
Kurt Zeilenga
59c26cc381
Added detection of POSIX thread defines.
1998-09-19 01:03:25 +00:00
Kurt Zeilenga
92a1440f2d
Fixed CRYPT, MD5, and SHA1 support.
...
Added basic -lwrap detection.
1998-09-18 22:54:37 +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
310163f611
Add DEFS/LIBS support.
1998-09-17 18:58:48 +00:00
Kurt Zeilenga
adf3d5a200
Libraries actually compiles using current templates...
...
however much is still needed (included db2 and thread detection)
1998-09-17 10:13:13 +00:00
Kurt Zeilenga
b60b0fe58a
Add Makefile templates for libraries.
1998-09-17 09:46:56 +00:00
Kurt Zeilenga
0d680845af
Second level directory templates now appear to working correctly.
1998-09-17 08:14:20 +00:00
Kurt Zeilenga
30bdcf4035
Reassign copyright and add liblutil directory
1998-09-17 04:47:36 +00:00
Kurt Zeilenga
4d552de346
From BOOLEAN_LDAP
1998-09-17 04:46:19 +00:00
Kurt Zeilenga
3e20891263
Merge in platform updates from main.
1998-09-16 02:47:02 +00:00
Kurt Zeilenga
58718e3bc6
Add #ifdef for when sched_yield/sched.h is missing.
1998-09-16 02:41:38 +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
7fed5fb3ef
Remove binary file
1998-09-08 02:06:36 +00:00
Kurt Zeilenga
15f771aee9
remove binary files
1998-09-08 02:06:07 +00:00
Kurt Zeilenga
f3a0f5cdf9
Remove binary files.
1998-09-08 02:05:24 +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
cb587e9bf0
Added check routines from Stuart Lynne
1998-08-30 18:55:54 +00:00
Kurt Zeilenga
7b531e8e62
Fix includes
1998-08-30 17:52:37 +00:00
Kurt Zeilenga
9071e067ec
Belongs in the include directory
1998-08-30 17:51:34 +00:00
Kurt Zeilenga
c98a6ff9e9
Document important limitation of this basic implementation
1998-08-29 21:46:42 +00:00
Kurt Zeilenga
efac7f4c88
Add Reader/Writer Locks to library
1998-08-29 21:45:04 +00:00
Kurt Zeilenga
5d64c8f95d
Added Reader/Writer lock code from publicily available examples for
...
Nichols, Butler, Farrell's book "Pthreads Programming" (O'Reilly).
1998-08-29 21:43:18 +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
3a431b77ef
pthread_create attr argument should be passed by value per POSIX
...
standard. Was working as is only because pthread_attr_t is normally
a struct. However, on some systems it may be a integer.
1998-08-14 20:41:47 +00:00
Kurt Zeilenga
1b5451d619
Added patch to support LWP under SunOS 5.6
1998-08-14 20:12:02 +00:00
Kurt Zeilenga
c46afcbd63
Backed up LDAP world P16, causes hang
1998-08-14 05:08:34 +00:00
Kurt Zeilenga
f3e9bc606c
integrated changed from rage.net glibc.patch
1998-08-13 19:32:43 +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
271d678b0e
LDAPworldP22: problem with msgids greater than 32767 on 64bit architectures
1998-08-09 03:40:29 +00:00
Kurt Zeilenga
b63a0b1c61
LDAPworldP19: Patch for Next C-Threads
1998-08-09 03:13:49 +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
f6c2f2e6ab
Merge FreeBSD Make-templates into LDAPworld branch
1998-08-09 02:24:07 +00:00
Kurt Zeilenga
df38bf83e8
apply FreeBSD changes to main branch
1998-08-09 01:35:58 +00:00
Kurt Zeilenga
d4cfec8612
Fixed RCS headers
1998-08-09 01:32:39 +00:00
Kurt Zeilenga
168d8d9560
Fixed RCS Headers
1998-08-09 01:31:11 +00:00
Kurt Zeilenga
04ff180cbf
Modified make system to support CVS instead of RCS
1998-08-09 01:24:49 +00:00
Kurt Zeilenga
8b2170bcf4
Import of FreeBSD LDAP 3.3 Port
1998-08-09 01:05:15 +00:00
Kurt Zeilenga
42e0d83cb3
Initial revision
1998-08-09 00:43:13 +00:00