Howard Chu
de3e81cebb
Changed ldap_pvt_tls_get_my_dn and ldap_pvt_tls_get_peer_dn to store result
...
in dn parameter and return a result code.
2002-04-30 13:50:56 +00:00
Pierangelo Masarati
d019bff7b8
First commit of Hallvard's backend documentation effort
...
Backend documentation patch, version 1
================
Most of this text is taken from OpenLDAP. The work of rewriting it
to manual pages is done by by Hallvard B. Furuseth and placed into
the public domain. This software is not subject to any license of
the University of Oslo.
================
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-29 20:24:29 +00:00
Stig Venaas
e08bc054c7
Adding support for compatibility decomposition to ucdata lib, and switch
...
from NFC to NFKC in UTF8bvnormalize() and UTF8bvnormcmp()
2002-04-19 12:59:57 +00:00
Howard Chu
5528772f23
In ldap_int_tls_start, authid is very temporary, not const.
2002-04-19 04:35:16 +00:00
Howard Chu
202aa8c793
Fix memory leak in previous commit
2002-04-18 16:02:02 +00:00
Howard Chu
17ae956518
Added ldap_X509dn2bv()
...
deleted ldap_pvt_tls_get_peer()
changed ldap_pvt_tls_get_peer_dn() to use ldap_X509dn2bv()
added ldap_pvt_tls_get_my_dn()
2002-04-18 12:29:30 +00:00
Howard Chu
315ac06912
Fix warnings from sasl_errdetail
2002-04-18 12:20:55 +00:00
Howard Chu
98a416b584
Additional error reporting for Cyrus SASL 2. Attempt to get SASL-EXTERNAL
...
working ifor Cyrus 2. (Both GSSAPI and EXTERNAL are broken at the moment.)
2002-04-18 00:48:36 +00:00
Howard Chu
dc3e5fb99d
ITS#818, ITS#980, ITS#1234 ldapsearch/referral hang - set refer_cnt to 0
...
after v3refs have been chased. They are fully processed by the time we get
back, so we should just return the current result message to the caller.
2002-04-16 12:53:13 +00:00
Howard Chu
491d2ae5b9
ITS#1720 chk_sasl for Cyrus SASL 2
2002-04-16 04:05:51 +00:00
Kurt Zeilenga
709ce4fa6c
Re: Patch: ctype functions require 'unsigned char' args (ITS#1678)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
Here are fixes for more places where the argument to ctype.h functions
should be in the range of `unsigned char'.
Explanation of the last patch (to schema_init.c:bvcasechr()):
TOLOWER() and TOUPPER() return values in the range of `unsigned char',
but bvcasechr() then compares those values with a plain `char'. So I
convert the return values from TOLOWER()/TOUPPER() to `char' first.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-15 20:42:42 +00:00
Kurt Zeilenga
319440033f
Patch: ucdata 2.4 bugs (ITS#1751)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
ucgendat.c accessed unallocated memory when i == ncodes_size.
The changes others are trivial, I just include them since I'm patching
ucdata anyway:
ucdata.c had some pointless '0 <= unsigned' comparisons.
ucstr.c assigned a long* to an unsigned long*. Since malloc()
returns void*, the result need not be cast at all.
I'll send the ucgendat.c and ucdata.c patches to Mark Leisher
<mleisher@crl.nmsu.edu>.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-15 20:39:22 +00:00
Kurt Zeilenga
02e8527248
Patch: Escape character troubles (ITS#1753)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
maildap could address buf[-1] if len was < 2.
REWRITE_SUBMATCH_ESCAPE is '%', not '\'.
librewrite and saslautz could walk past the end of a string which
ended with an escape character.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-15 18:29:39 +00:00
Howard Chu
bb17493d31
ITS#1732 signed/unsigned fixes
2002-04-11 08:47:37 +00:00
Pierangelo Masarati
4a2b9b2195
ITS#1730
2002-04-08 18:39:23 +00:00
Pierangelo Masarati
8de44663f7
ITS#1730 and completion of ITS#1701
2002-04-08 10:34:04 +00:00
Pierangelo Masarati
4a8ab5dbf2
Mostly based on patches provided by Hallvard B. Furuseth
...
ITS#1677 - cast away const warnings
ITS#1678 - unsigned char args to ctype funcs
ITS#1682 - don't redefine ldap_debug
ITS#1683 - uninitialized vars
ITS#1703 - ldo_debug initialization
ITS#1705 - unsigned testing
ITS#1706 - socklen_t args
ITS#1719 - back-tcl update (other cleanups/fixes/improvements; yet untested)
ITS#1724 - integerNormalize/integerFilter/integerIndexer bugs
ITS#1725 - libdes not required
Implement back-null (/dev/null style backend)
Cleanup some misc warnings ("%lu" format, unused/uninitialized vars,
ambiguous operator precedence)
Kurt, please regenerate configure
2002-04-08 09:43:22 +00:00
Pierangelo Masarati
6b8e16efec
fix ambiguous use of && and || (please check :)
2002-04-06 09:30:24 +00:00
Howard Chu
5c70106657
ITS#1708 ldap_pvt_tls_sb_ctx() et al
2002-04-05 06:48:03 +00:00
Stig Venaas
891f987928
Changed to use lower case for case folding
2002-04-04 12:50:46 +00:00
Kurt Zeilenga
b0b8546f05
Patch: More format bugs (ITS#1702)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
2002-04-02 18:56:26 +00:00
Kurt Zeilenga
26b99bc35d
ITS#1701. Fix ber_scanf() return tag handling.
...
Based upon patch submitted by Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>.
2002-04-02 18:40:04 +00:00
Julius Enarusai
b082ed9355
Added LDAP_LOG Messages
2002-04-02 00:22:57 +00:00
Julius Enarusai
e86782aab9
Added LDAP_LOG messages
2002-04-01 23:39:36 +00:00
Julius Enarusai
fff5d3de60
Added LDAP_LOG messages
2002-04-01 22:31:44 +00:00
Julius Enarusai
e30c52dfb7
Added LDAP_LOG Messages
2002-04-01 22:28:02 +00:00
Julius Enarusai
70c73da22c
Added LDAP_LOG messages
2002-04-01 22:08:32 +00:00
Kurt Zeilenga
111b464642
move ldap_int_put_filter to ldap_pvt_put_filter
...
and other cleanup
2002-03-30 00:42:40 +00:00
Julius Enarusai
b7bd4368d9
Added LDAP_LOG messages
2002-03-29 17:46:28 +00:00
Julius Enarusai
ae31411a0d
Added LDAP_LOG messages
2002-03-27 22:35:35 +00:00
Julius Enarusai
688f45dd06
Added LDAP_LOG messages
2002-03-27 22:23:24 +00:00
Julius Enarusai
171281f3ec
Added LDAP_LOG messages
2002-03-27 22:03:35 +00:00
Julius Enarusai
3921e1b0c2
Added LDAP_LOG messages
2002-03-27 21:38:32 +00:00
Julius Enarusai
c0325aed88
Added LDAP_LOG messages
2002-03-27 21:16:36 +00:00
Julius Enarusai
3654b0d4c0
Added LDAP_LOG messages
2002-03-27 19:51:13 +00:00
Julius Enarusai
9c90811315
Added LDAP_LOG messages
2002-03-27 19:43:07 +00:00
Julius Enarusai
a299e74d21
Added LDAP_LOG messages
2002-03-27 19:37:50 +00:00
Julius Enarusai
b4243bc119
Added LDAP_LOG messages
2002-03-27 19:28:43 +00:00
Julius Enarusai
150aa3fc7b
Added LDAP_LOG messages
2002-03-27 19:18:11 +00:00
Julius Enarusai
3ab1ea7300
Added LDAP_LOG messages
2002-03-27 19:12:18 +00:00
Julius Enarusai
e4f2c9425a
Added LDAP_LOG messages
2002-03-27 18:50:45 +00:00
Julius Enarusai
d88bc7a8b5
Added LDAP_LOG messages
2002-03-27 18:20:08 +00:00
Kurt Zeilenga
e0f33c6674
s/getdat/gendat/
2002-03-24 01:55:37 +00:00
Kurt Zeilenga
a64cae0f8c
Need a bigger buffer
2002-03-23 21:14:50 +00:00
Pierangelo Masarati
e8c5f59d84
ldap_int_thread_pool_wrapper was called with wrong prototype (ITS#1673)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
ldap_int_thread_pool_wrapper() was defined with an parameter
struct ldap_int_thread_pool_s* but called with a void* argument.
Since these may have different representations, it can crash.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, March 2002.
2002-03-23 17:24:38 +00:00
Kurt Zeilenga
fcf9f451a5
Copyright 2001, Adrian Thurston, All rights reserved.
...
This software is not subject to any license of
Xandros Corporation.
This is free software; you can redistribute and use it under the same
terms as OpenLDAP itself.
-------------------------------------------------------------------
This patch adds an option to ldap_get_option which can be called after
ldap_start_tls in order to obtain the pointer to the SSL object used
2002-03-11 03:39:08 +00:00
Stig Venaas
c476878fde
Using new UTF8bv* all over, getting rid of UTF8normalize() and
...
UTF8normcmp().
2002-02-27 16:11:24 +00:00
Stig Venaas
94983da942
Added code for approximate matching in UTF8bvnormalize() and changed to use
...
this in approxMatch etc in schema_init.c
2002-02-26 18:38:40 +00:00
Stig Venaas
d6c3ccadc4
Optimizing UTF8bvnormcmp() by adding flags that tells which arguments are
...
in NFC. By default no arguments are assumed to be NFC.
2002-02-25 13:20:09 +00:00
Kurt Zeilenga
d50eb2e959
C translator portability changes (ITS#1609)
2002-02-23 23:47:37 +00:00
Kurt Zeilenga
6d9307b534
Silence a warning
2002-02-23 23:26:48 +00:00
Kurt Zeilenga
3d9cf98dad
If port is zero, use default.
2002-02-21 15:39:35 +00:00
Stig Venaas
9e8f3053cb
Added UTF8bvnormcmp(), should replace UTF8normcmp()
2002-02-20 15:51:10 +00:00
Pierangelo Masarati
2aec424646
use memchr in ber_bvchr
2002-02-14 21:10:13 +00:00
Pierangelo Masarati
215448ac83
substrings match works with NULs in UTF8 strings
2002-02-14 18:55:38 +00:00
Pierangelo Masarati
c31596eb78
not-so-easy-to-spot bug in filter writing
2002-02-14 18:01:15 +00:00
Stig Venaas
217103b138
Added UTF8bvnormalize which is like UTF8normalize but returns berval. It
...
can be passed a pointer to the berval to be used for the return value. If
this is NULL, it will allocate a new one.
2002-02-14 14:03:27 +00:00
Howard Chu
933f6a5fdd
For ITS#1601, add ber_init2() using given buffer in-place instead of
...
allocating a copy.
2002-02-14 13:32:40 +00:00
Pierangelo Masarati
32e48d9e4d
disallow unescaped NULs in UTF-8 string values
2002-02-13 22:49:03 +00:00
Kurt Zeilenga
63bdcda971
Fix for Linux on zSeries.
2002-02-13 21:26:24 +00:00
Pierangelo Masarati
39891e4e5b
make UTF8STringNormalize handle NUL
2002-02-13 21:25:57 +00:00
Kurt Zeilenga
427478a753
Use memchr, not strlen, to look for embedded NULs.
2002-02-13 17:48:39 +00:00
Kurt Zeilenga
dd12660a14
Add embedded NUL check. This is one case where we don't want to
...
be liberal in what we accept.
2002-02-13 17:23:33 +00:00
Kurt Zeilenga
ee6d1a4d40
Check for NULs in DNs.
2002-02-13 16:41:41 +00:00
Pierangelo Masarati
6913aadcdf
minor cleanup
2002-02-13 14:44:08 +00:00
Pierangelo Masarati
33d5f0f8f8
honor the ber_len field to allow to exploit ldap_bv2[r]dn to handle DNs embedded in longer strings ...
2002-02-13 12:09:36 +00:00
Pierangelo Masarati
a117c5eee7
use ldap_bv2[r]dn and turn ldap_str2[r]dn into wrappers
2002-02-13 11:46:33 +00:00
Howard Chu
b1c39eff65
Fix previous commit, need to detect very short packets.
2002-02-13 11:29:05 +00:00
Pierangelo Masarati
959edd88c0
prepare for ldap_bv2dn()
2002-02-13 10:05:22 +00:00
Howard Chu
ab099caed5
ber_get_next: return error if decoded ber_len is smaller than actual count
2002-02-13 09:59:10 +00:00
Kurt Zeilenga
f1cc2b7ab2
#if 0 RDN debugging
2002-02-13 08:00:31 +00:00
Kurt Zeilenga
275f3be363
Misc. DN fixes and cleanups, namely don't muck with AVA_BINARY values
...
Also, pass empty_bv when bv_val is NULL.
2002-02-13 06:35:27 +00:00
Kurt Zeilenga
a9cf0f5c08
Add uuid_to_str() detection.
2002-02-11 20:17:08 +00:00
Kurt Zeilenga
defed68e82
Fix typo
2002-02-11 18:18:34 +00:00
Howard Chu
a916535a27
Fix #include of sasl.h
2002-02-11 09:39:15 +00:00
Kurt Zeilenga
d23c559646
Don't use 'shtool mkln' as ln(1) replacement.
...
Allow both <sasl/sasl.h> and <sasl.h>
2002-02-11 08:28:51 +00:00
Kurt Zeilenga
ce07fb958e
Update libtool usage
...
s/-L.../libraries -lldap/.../libraries/libldap/libldap.la/
2002-02-10 22:42:51 +00:00
Kurt Zeilenga
b315d8af34
Update Cyrus SASL detection to always look for <sasl.h> regardless
...
of version and then try -lsasl2 and -lsasl. Make SASL code
conditional on SASL_VERSION_MAJOR, not HAVE_CYRUS_SASL.
2002-02-10 17:51:19 +00:00
Howard Chu
8a4e92b259
Support for Cyrus SASLv2. Untested.
2002-02-10 14:27:23 +00:00
Howard Chu
ffa4b26343
Slightly better fix for library cleanup. Requires GCC.
2002-02-09 01:09:23 +00:00
Howard Chu
1fba3a5c13
Fix flag initialization
2002-02-08 21:53:04 +00:00
Howard Chu
7d41a446cb
Added conversion from UTF-8 to T.61.
2002-02-01 03:13:04 +00:00
Howard Chu
cb88cae005
First pass at T.61 <-> UTF-8 translation. Only does T.61 to UTF-8.
...
Feel free to inspect, not yet ready for use.
2002-01-31 13:42:06 +00:00
Howard Chu
63a4a19732
Send a warning to the client if we try to use a bad cert.
2002-01-27 03:48:08 +00:00
Howard Chu
c3c85b4062
Extended TLS_REQCERT/TLSVerifyClient syntax to 4 states: never,allow,try,
...
and hard/demand.
2002-01-27 02:56:18 +00:00
Howard Chu
c81d2bb855
Fix, errno was incorrect after SSL_read returned 0 bytes, caused slapd to
...
close the connection prematurely.
2002-01-26 13:43:22 +00:00
Howard Chu
25cd89b443
Use ber_scanf 'm' format for ignored UDP string
2002-01-17 23:30:05 +00:00
Kurt Zeilenga
7f0289a390
Move most of the new ber_*cmp routines to lber_pvt.h to keep them private,
...
rework them slightly to avoid computations which might result in underflow.
Rename them for consistency with other berval routines.
Remove some utf8 lint.
2002-01-16 18:16:15 +00:00
Pierangelo Masarati
5c1d9b4fce
fix assertion
2002-01-16 10:58:04 +00:00
Pierangelo Masarati
6c5be3006d
don't auto-detect DCE form; assert the UTF-8 charlen is legal
2002-01-16 09:57:20 +00:00
Howard Chu
40542984cd
Added some reference comments for ldap_utf8_charlen2
2002-01-15 09:01:44 +00:00
Howard Chu
e21e900392
Use LDAP_UTF8_CHARLEN2 to check shortest possible encoding
2002-01-15 08:27:19 +00:00
Howard Chu
2d51ad52b3
Added LDAP_UTF8_CHARLEN2() to validate shortest possible encoding
...
of UTF8 string. (Returns charlen if valid, 0 if not.)
2002-01-15 08:07:46 +00:00
Howard Chu
19f3ba216f
Fix ldap_utf8_lentab to detect illegal two-byte sequences.
2002-01-15 03:31:37 +00:00
Pierangelo Masarati
bde71e45f9
fix format
2002-01-14 19:48:09 +00:00
Pierangelo Masarati
36f6a1169a
make temporary RDN and AVA arrays rescalable if needed
2002-01-14 19:44:04 +00:00
Pierangelo Masarati
9d6ebd822e
fix typo
2002-01-14 19:42:59 +00:00
Pierangelo Masarati
2ee2e7a145
quick fix that in pretty mode escapes with hexpair the specials ',', '+' and '\'
2002-01-14 19:33:13 +00:00
Pierangelo Masarati
7887ef7e92
revert previous commit: do accept '\00'
2002-01-14 11:09:14 +00:00
Pierangelo Masarati
3a6676a082
accept '\<special>' anywhere in the string
2002-01-14 10:50:02 +00:00
Pierangelo Masarati
c4164193ad
fix behavior on improperly escaped illegal hexpair; do not accept '\00'
2002-01-14 09:56:54 +00:00
Howard Chu
ac1332cdb8
Renamed BVarray to BerVarray. Moved slapd:bvarray_{add,free} to
...
liblber:ber_bvarray_{add,free}.
2002-01-14 01:43:17 +00:00
Kurt Zeilenga
ce2d8ebc7e
Misc cleanup, lint removal, and minor optimizations
2002-01-13 05:00:59 +00:00
Howard Chu
4298f5d991
Rewrote ber_get_next, fixed byte-order dependency on ber_tag and optimized
2002-01-13 03:00:45 +00:00
Howard Chu
923e64156d
More cleanup in ldap_pvt_tls_destroy()
2002-01-12 02:31:41 +00:00
Howard Chu
07119f7342
Fix ldap_start_tls_s, don't check for TLS present on a non-existent sockbuf
2002-01-12 02:25:22 +00:00
Howard Chu
0ecc0414a5
Fix struct initialization in ber_scanf() for ANSI C conformance
2002-01-12 02:23:04 +00:00
Howard Chu
914f33fc9a
Cleanup lint
2002-01-11 06:56:24 +00:00
Kurt Zeilenga
dffb050d81
Remove lint
2002-01-10 05:30:23 +00:00
Howard Chu
627d354b98
For Windows, use getsockopt() to retrieve error if connect() fails.
...
Don't use ldap_pvt_is_socket_ready() at all on Windows, it is
totally unneeded and getpeername() misbehaves on W2K.
2002-01-10 05:12:11 +00:00
Kurt Zeilenga
c80d93f2bb
Start of new operational attribute framework
2002-01-10 00:17:21 +00:00
Kurt Zeilenga
f80b4ad53e
Minor const'ification cleanup
2002-01-08 20:24:56 +00:00
Kurt Zeilenga
7db15e9d12
Remove lint.
2002-01-07 21:48:17 +00:00
Kurt Zeilenga
962e351271
Minor cleanup
2002-01-07 21:22:38 +00:00
Kurt Zeilenga
c4902e88d5
Don't unlock if we've never locked.
2002-01-07 20:18:38 +00:00
Pierangelo Masarati
e5f503c24a
Passes last test (empty value); also passes many of the invalid DN tests if liberal parsing is allowed
2002-01-07 15:23:23 +00:00
Pierangelo Masarati
e15aa7b682
fix non-printable flag detection; improve dn test (passes all but last in http://www.openldap.org/ietf/ldapbis/dn.txt )
2002-01-07 15:10:50 +00:00
Pierangelo Masarati
23cd7e837a
fix domain generation for UFN
2002-01-07 13:16:53 +00:00
Howard Chu
5fb87a7d6c
Changed 'w' format character to 'M': 'm' and 'M' for "memory" ?
2002-01-06 06:10:05 +00:00
Howard Chu
c6384d875e
Added doalloc flag to ber_get_stringbv. Added 'm' type to ber_scanf
...
to scan a berval in-place.
2002-01-06 05:36:07 +00:00
Howard Chu
76386bde5e
Cleanup lint in previous commit
2002-01-06 03:05:02 +00:00
Howard Chu
b92e0011dd
Prep for in-place parsing. Cache a ber_tag byte.
...
No visible impact from these changes.
2002-01-06 02:23:36 +00:00
Kurt Zeilenga
0c36372134
Some memory allocation cleanup.
2002-01-06 02:18:37 +00:00
Kurt Zeilenga
c36352c173
Misc allocator cleanup
2002-01-05 19:38:54 +00:00
Kurt Zeilenga
f1afebe727
struct * are not to be const'ified
2002-01-05 18:54:04 +00:00
Pierangelo Masarati
d0261ee534
leftover ber_bvdup eliminated; rewritten ber_bvdup in terms of ber_dupbv; eliminated wrapper macro; other ber_* improvements
2002-01-05 17:49:59 +00:00
Pierangelo Masarati
1cf91cd6db
meaningful message in case max_incomingis hit
2002-01-05 17:16:18 +00:00
Howard Chu
bbee3551b8
Fix for Windows, don't call gethostbyname until WSAStartup has occurred.
2002-01-04 23:10:48 +00:00
Kurt Zeilenga
0e2af54a3f
Update copyright statements
2002-01-04 21:17:25 +00:00
Kurt Zeilenga
72eb26180f
Another minor filter fix (unescaped *)
2002-01-04 20:36:41 +00:00
Kurt Zeilenga
96138a8424
Fix ) in value handling
2002-01-04 05:37:19 +00:00
Kurt Zeilenga
6c80cfb2e8
Use LDAP_FREE not free
2002-01-04 03:53:13 +00:00
Kurt Zeilenga
11175ed95e
Some misc cleanup
2002-01-04 03:50:54 +00:00
Kurt Zeilenga
6fc8c3ff4e
Fix attribute description checks
2002-01-04 00:45:05 +00:00
Howard Chu
da00e5dac1
Use LDAP_FREE instead of free
2002-01-03 23:30:45 +00:00
Howard Chu
a802f32f71
Use ber_memfree instead of free
2002-01-03 23:29:55 +00:00
Kurt Zeilenga
e60d22e3c6
Quick fix for NULL sos
2002-01-03 23:25:25 +00:00
Kurt Zeilenga
1d4e2342d2
Add LBER DN format flag (no code yet).
...
Return API result codes, not protocol result codes.
2002-01-03 20:06:29 +00:00
Kurt Zeilenga
789b81aa75
Misc cleanup
2002-01-03 20:05:29 +00:00
Kurt Zeilenga
28bc149884
Remove lint.
2002-01-03 20:04:31 +00:00
Kurt Zeilenga
fdb62b5650
Even larger TMP_SLOTS
2002-01-03 19:45:34 +00:00
Kurt Zeilenga
c8d7b334e6
Add copyright notices
2002-01-03 16:36:46 +00:00
Howard Chu
8c04993cdf
Use <lber.h> ber_memalloc, not malloc. Shortcuts for pure-ASCII strings.
...
Still need to add some kind of isNormalized() check to avoid rework on
UTF8 strings that are already properly normalized.
2002-01-03 16:22:53 +00:00
Howard Chu
7a853f3030
One more hack to ber_get_stringbvr for do_search
2002-01-03 05:36:26 +00:00
Howard Chu
61aa7bef74
Fix previous commit
2002-01-03 03:44:38 +00:00
Howard Chu
276b52098d
Cleanup, added some explanation/comments
2002-01-03 03:30:55 +00:00
Howard Chu
bab600baf6
Safety checks for bvec's in previous patch
2002-01-03 03:11:14 +00:00
Howard Chu
829b49b5c6
New ber_get_stringbvr recursively decodes a vector, to avoid
...
hard-coded TMP_SLOTS limitation.
2002-01-03 02:53:41 +00:00
Kurt Zeilenga
dedc7588c9
We'll need queue macros in -llber...
2002-01-03 00:49:52 +00:00
Kurt Zeilenga
73b2d62bcd
Fix queue.h include
2002-01-03 00:39:09 +00:00
Howard Chu
029306a5be
Use ldap_queue.h instead of <ac/queue.h>
2002-01-03 00:12:46 +00:00
Howard Chu
9b73b8a568
Fix some externs
2002-01-02 23:31:44 +00:00
Kurt Zeilenga
81d2a0f289
fix empty substrings any bug
2002-01-02 23:03:37 +00:00
Howard Chu
fca5613e98
Hide (make static) sb_bio_method and tls_sbio structures. They're
...
already completely hidden by accessor functions.
2002-01-02 22:29:11 +00:00
Howard Chu
cc60686c0d
Renamed parse_numericoid to ldap_int_parse_numericoid since it is
...
no longer static. Moved declaration to ldap-int.h and removed extern
from getdn.c
2002-01-02 21:59:26 +00:00
Howard Chu
4bd58083ad
Make .links depend on Makefile so it gets automatically reinvoked
...
whenever the Makefile is updated
2002-01-02 21:58:22 +00:00
Howard Chu
dd6fc04587
Fix externs, moved to lber-int.h
2002-01-02 21:19:45 +00:00
Kurt Zeilenga
ccc4d0d5ae
Fix extensible filters
2002-01-02 20:31:21 +00:00
Kurt Zeilenga
490ac259f4
Fix escape bug
2002-01-02 20:05:48 +00:00
Kurt Zeilenga
2931cec6c0
Fix stupid bug in last commit
2002-01-02 18:16:09 +00:00
Pierangelo Masarati
1f49164725
fix missing trailing ')'
2002-01-02 17:38:46 +00:00
Kurt Zeilenga
772b7760b8
New filter code
2002-01-02 17:10:21 +00:00
Kurt Zeilenga
3ecc6b8b2c
Add filter.c
2002-01-02 17:08:42 +00:00
Kurt Zeilenga
763c0de59b
Rework filter code
...
Misc cleanup / lint removal
2002-01-02 17:06:56 +00:00
Howard Chu
81e9e86861
Fix ldap_str2rdn, make sure to update progress pointer; don't
...
free attrType since we never allocate it
2002-01-02 09:59:37 +00:00
Howard Chu
670c66bda9
Added 'W' fmt char for BVarrays
2002-01-02 08:50:07 +00:00
Howard Chu
445a4766ea
Added ber_get_stringbv
2001-12-31 14:43:54 +00:00
Howard Chu
ac39aa5032
Tweak previous commit
2001-12-31 12:57:17 +00:00
Howard Chu
d8e70bd5f4
in sb_debug_read/write save errno before logging a failure.
...
ber_log_printf can cause errors of its own and obscure the original.
2001-12-31 12:50:09 +00:00
Howard Chu
e823c74811
Fix typo
2001-12-31 12:37:45 +00:00
Howard Chu
9405761404
Moved free list to avoid additional mutex
2001-12-31 06:46:03 +00:00
Howard Chu
b92710e3a5
Minor cleanup
2001-12-31 06:44:36 +00:00
Howard Chu
fbc54d47d3
Added ber_free_buf()
2001-12-31 06:01:59 +00:00
Howard Chu
6e66d14311
Fix previous commit
2001-12-31 04:01:26 +00:00
Howard Chu
3e90c7dd42
Use queue-compat.h for queue management. Cache ctx structures on a free
...
list instead of always freeing them.
2001-12-31 03:05:56 +00:00
Howard Chu
b7be022824
Minor fix for LDAP_DN_IS_RDN_DC macro
2001-12-30 23:10:31 +00:00
Howard Chu
776ce133e9
More str2rdn tweaks
2001-12-30 09:42:58 +00:00
Howard Chu
5d28b4555e
Reorganize LDAPAVA allocation layout
2001-12-30 06:56:57 +00:00
Pierangelo Masarati
754470162d
remove useless function
2001-12-29 12:13:11 +00:00
Howard Chu
a191392e2e
Changed LDAP_AVA struct berval * to struct berval.
2001-12-29 10:35:24 +00:00
Howard Chu
60510c5e39
Fix memory leak in ldap_explode_dn
2001-12-29 06:37:20 +00:00
Howard Chu
729fe56698
Made LDAP_UTF8_CHARLEN/ldap_utf8_charlen table-driven.
2001-12-29 02:57:32 +00:00
Pierangelo Masarati
2f3f7c6765
ldap_str2rdn() can parse without allocating a LDAPRDN* (not very clean, though); used by dn_rdnlen
2001-12-28 12:50:48 +00:00
Howard Chu
4d7e904404
Added ldap_dn2bv and ldap_rdn2bv
2001-12-28 10:03:39 +00:00
Howard Chu
06b350c04c
Moved WSAStartup/WSACleanup to libldap/init.c. Cleanup occurs in the
...
internal atexit handler.
2001-12-28 06:12:17 +00:00
Kurt Zeilenga
c214a13a59
Works... now to test our filter parser!
2001-12-28 04:33:57 +00:00
Kurt Zeilenga
bf5fc54473
Add ftest (filter test) to the mix, needs work.
...
Misc cleanup of other tests.
Add *.dsp files for tests
2001-12-28 03:39:05 +00:00
Kurt Zeilenga
52a354f753
Mark more stuff as deprecated and remove some unused deprecated
...
routines.
2001-12-27 23:01:17 +00:00
Pierangelo Masarati
1f8e4d3884
cleanup
2001-12-27 13:54:22 +00:00
Kurt Zeilenga
cddf7e0e00
More struct berval DN changes
...
decrease dependency on dn_validate/dn_normalize
2001-12-27 07:13:13 +00:00
Kurt Zeilenga
a553a03586
More struct berval DNs changes
2001-12-26 23:43:28 +00:00
Kurt Zeilenga
5105b656b7
lint removal
2001-12-26 21:05:56 +00:00
Howard Chu
327f253183
Add optional len to ber_str2bv
2001-12-26 13:45:22 +00:00
Howard Chu
a1460e74ce
Added ldap_xxx2bv schema functions
2001-12-26 12:31:44 +00:00
Howard Chu
733056970e
Changed ber_bvdup to ber_dupbv with destination provided
2001-12-26 11:15:28 +00:00
Howard Chu
fb3af1ccbd
Merged ber_bvstr and ber_bvstrdup into ber_str2bv.
2001-12-26 10:06:19 +00:00
Pierangelo Masarati
5f28673792
hex escape everything requires escape (uncomment #define PRETTY_ESCAPE to revert to previous behavior)
2001-12-24 19:17:10 +00:00
Pierangelo Masarati
4d981f7cc5
better rdn exploding
2001-12-24 15:47:06 +00:00
Pierangelo Masarati
65fad45129
bug in explode dn (caused most test failures when requesting client-side sorted results)
2001-12-24 10:31:11 +00:00
Kurt Zeilenga
450e0d6803
Some minor bugs for dntest ""
2001-12-24 07:22:25 +00:00
Kurt Zeilenga
a2c6a98427
cannot assert la_private == NULL on free
2001-12-24 07:03:14 +00:00
Kurt Zeilenga
883196d348
Clean up some symbol scoping
2001-12-24 06:36:44 +00:00
Kurt Zeilenga
04ea760a91
Delete USE_LDAP_DN_PARSING
2001-12-24 06:02:59 +00:00
Kurt Zeilenga
d0abe6f59f
Misc DN cleanup, no functional changes
2001-12-24 06:00:02 +00:00
Kurt Zeilenga
25b5aaf262
Delete ldap_build_filter(), it's broke.
...
Clean up headers.
2001-12-24 03:49:54 +00:00
Kurt Zeilenga
9d56c59d1b
Minor cleanup, rename ldapava_free_*() routines and
...
don't expose symbols of ava helper routines
2001-12-23 22:46:37 +00:00
Pierangelo Masarati
dcc062dce5
least escaping in dnPretty (hope my wife doesn't catch me in front of the laptop :)
2001-12-23 09:26:44 +00:00
Pierangelo Masarati
6620bbff16
small bug exploited by malformed DCE format
2001-12-23 09:04:44 +00:00
Stig Venaas
9705dcfcd6
Error in exclusion set macros
2001-12-22 17:17:52 +00:00
Kurt Zeilenga
0845c0bf6f
zap tmplout
2001-12-21 04:38:36 +00:00
Kurt Zeilenga
80649933bd
Zap tmplout
2001-12-21 03:28:48 +00:00
Kurt Zeilenga
6ca3ed1b1e
Fix cache debugging (ITS#1501) based upon patch provided by
...
Will Day <willday@rom.oit.gatech.edu>.
2001-12-20 20:11:03 +00:00
Kurt Zeilenga
ae6b840350
Remove ttest
2001-12-20 07:29:33 +00:00
Kurt Zeilenga
c9afb5e8a3
misc cleanup
2001-12-20 01:43:03 +00:00
Kurt Zeilenga
c90b4fc878
Back out last change
2001-12-19 21:55:52 +00:00
Kurt Zeilenga
1f8cba688d
dsparse still needed by filter templates (which are used by ud(1)).
2001-12-19 21:53:30 +00:00
Kurt Zeilenga
b3b17ca4e7
Remove srchpref and disptmpl stuff.
2001-12-19 21:46:34 +00:00
Kurt Zeilenga
9ce6d07b61
More cleanup
2001-12-19 21:37:41 +00:00
Kurt Zeilenga
de857a1152
Misc cleanup
2001-12-19 21:23:49 +00:00
Kurt Zeilenga
266d8f5fc0
misc cleanup
2001-12-19 21:23:11 +00:00
Kurt Zeilenga
d0991d97fb
const'ify and remove lint
2001-12-19 21:22:04 +00:00
Howard Chu
dfba82c441
minor cleanup from jon@symas.com
2001-12-18 05:17:06 +00:00
Howard Chu
773b3aff16
more cleanup from jon@symas.com
2001-12-18 04:52:55 +00:00
Howard Chu
3d4c9a7284
Fix typo in previous commit
2001-12-18 02:55:38 +00:00
Howard Chu
d829c02f0b
Add checks for mkstemp and mktemp. Tweak utils.c:mkstemp to honor the
...
HAVE_MKTEMP macro in addition to HAVE_MKSTEMP
2001-12-18 02:54:49 +00:00
Howard Chu
3bdbaf5487
Emulate mkstemp() using mktemp() if mkstemp() is not found by configure
2001-12-18 02:48:20 +00:00
Kurt Zeilenga
ca975216b8
Regenerate configure and fix AC header inclusion
2001-12-18 02:25:21 +00:00
Kurt Zeilenga
c1a257a83f
stdlib.h should be included as <ac/stdlib.h>
2001-12-18 01:24:31 +00:00
Howard Chu
b917625a85
Revert previous commit.
2001-12-18 00:20:58 +00:00
Howard Chu
6456e5f559
from jon@symas.com - misc cleanup
2001-12-18 00:16:15 +00:00
Kurt Zeilenga
943800a534
We "understand" localhost to be same as the local hostname as
...
returned by gethostname().
2001-12-17 23:56:16 +00:00
Howard Chu
e5eb270e6c
from jon@symas.com - misc Windows cleanup
2001-12-17 22:42:55 +00:00
Howard Chu
320d6742b7
Added atexit handler to free global_opts->ldo_defludp.
2001-12-15 13:43:49 +00:00
Howard Chu
2b0819c4a9
Don't copy and leak user; it's an env var so just use it directly.
2001-12-15 12:07:40 +00:00
Howard Chu
3655c57594
Close some stdio fopen leaks.
2001-12-15 09:19:07 +00:00
Kurt Zeilenga
4e79e82972
Treat (!) and (!(x=a)(y=b)) as filter errors...
2001-12-12 06:23:02 +00:00
Howard Chu
e65f4c235f
Some more version cleanup
2001-12-10 16:26:32 +00:00
Pierangelo Masarati
f4b21cc7b5
reworked internal stuff
2001-12-10 09:43:31 +00:00
Kurt Zeilenga
abd9be4def
Remove lint and misc MSVC updates
2001-12-09 02:34:45 +00:00
Howard Chu
0552b1c53f
NT updates from jon@symas.com.
2001-12-07 04:03:25 +00:00
Howard Chu
ff701c286b
Minor fix to allow build with BDB 4
2001-12-07 03:56:16 +00:00
Howard Chu
c96f8f168e
Minor fixes from jon@symas.com
2001-12-07 03:19:29 +00:00
Howard Chu
257fd527c5
Avoid unnecessary strcmp's
2001-12-07 02:26:33 +00:00
Howard Chu
e6d6faf3c9
From jon@symas.com - patches for consistent use of directory separators
...
in pathnames.
2001-12-07 01:46:26 +00:00
Pierangelo Masarati
67ed3982fb
now dnValidate loops thru each value; added private member to LDAPAVA to hold the attribute description
2001-12-06 11:50:17 +00:00
Pierangelo Masarati
9260b22dec
liberally accept many LDAPv2/LDAPv3 stuff in DN (quoted parts, ';' as rdn separator and so); enforce exact case match of normalized dn in dnMatch (let's see what happens ...); fix a ldapava_free_rdn bug
2001-12-06 10:01:25 +00:00
Kurt Zeilenga
583336caa6
Minor portablility change
2001-12-05 16:55:28 +00:00
Pierangelo Masarati
fb60696ac4
my system does not have the removed headers; however it compiles by adding sys/time.h, is it fine?
2001-12-05 08:51:49 +00:00
Pierangelo Masarati
6568f10b7d
my compiler complains about this; does my fix comply with the intended behavior?
2001-12-05 08:49:52 +00:00
Pierangelo Masarati
2a2f5ad8fa
minor cleanup
2001-12-05 08:48:53 +00:00