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