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