Howard Chu
33ace5610c
Added ldap_pvt_tls_destroy() to cleanup TLS library on shutdown
2001-11-06 20:52:59 +00:00
Kurt Zeilenga
ac3e6c8dc5
Plug leaks (ITS#1116)
...
Patch provided by John Morrissey <jwm@horde.net>
2001-11-06 17:05:51 +00:00
Mark Adamson
e0ff8d6782
fix various memory leaks
2001-11-05 23:14:42 +00:00
Kurt Zeilenga
f83cbc2c84
Fix typo in last commit
2001-11-04 17:50:16 +00:00
Kurt Zeilenga
9bd4308edf
Fix realloc bug (ITS#1410)
2001-11-03 22:07:41 +00:00
Pierangelo Masarati
556f74c534
remove remaining C++ style comments
2001-10-31 09:28:03 +00:00
Pierangelo Masarati
a2eec74fc1
moved rdn parsing in a dedicated routine, ldap_str2rdn(), that can be used directly; now ldap_rdn2str() handles all the formats
2001-10-30 10:04:24 +00:00
Pierangelo Masarati
64c7e39aa8
More compliant version of str2dn/dn2str;
...
may need optimization;
uncomment #define USE_LDAP_DN_PARSING in libraries/libldap/getdn.c
to enable its use.
The ava/rdn/dn handling routines (append, insert, free and so) must
be made available thru declaration in some header.
2001-10-29 08:05:23 +00:00
Pierangelo Masarati
0ba03b18e7
enhanced dn parsing; see libraries/libldap/dntest for a 'demo'. Need to define USE_LDAP_DN_PARSING to override usual ldap_dn2ufn and so, and PARSE_UTF8 to parse attribute values as utf-8
2001-10-26 18:10:05 +00:00
Kurt Zeilenga
f3f72c5d2a
Add nul termination
2001-10-26 02:01:42 +00:00
Pierangelo Masarati
192f83540c
missing leading quote
2001-10-25 18:56:06 +00:00
Kurt Zeilenga
187f190fb6
Don't pass NULL string pointers to Debug
2001-10-25 18:32:59 +00:00
Pierangelo Masarati
5b4b535617
handle lead/trail escape chars in LDAPv2/LDAPv3; change misleading name of AVA type modifier
2001-10-22 19:23:37 +00:00
Pierangelo Masarati
666f201c14
more elegant use of realloc; still needs cleanup in case of error
2001-10-22 10:24:32 +00:00
Pierangelo Masarati
03a97678ea
use AC_MEMCPY instead of str[n]cpy
2001-10-22 09:39:02 +00:00
Pierangelo Masarati
97e8a2a9da
fixes ITS#1398
2001-10-20 15:49:05 +00:00
Pierangelo Masarati
fefc29786c
skeleton of ldap_str2nd/dn2str; works with most of the simple cases, but there's much to do with unicode, I think
2001-10-18 19:00:07 +00:00
Kurt Zeilenga
9b35077ede
db_strerror not available in bdb2
2001-10-13 00:24:40 +00:00
Kurt Zeilenga
0229b76570
Update utils
2001-10-11 04:01:45 +00:00
Kurt Zeilenga
b9a5fb52e0
Rework set_malloc/set_alloc calls
2001-10-09 19:54:38 +00:00
Pierangelo Masarati
6007789c14
avoid warning
2001-10-08 10:18:34 +00:00
Kurt Zeilenga
e2cca72bdc
Fix ntohs/htons issues
2001-10-07 02:40:16 +00:00
Kurt Zeilenga
75c7331743
Added the easy part of NLS support, behind an #ifdef.
2001-10-04 18:06:08 +00:00
Kurt Zeilenga
3f0917e57b
Move set_alloc to env.
2001-10-04 03:36:48 +00:00
Kurt Zeilenga
7ea46e83f9
Implement r/w locks for BerkeleyDB with DB_THREAD.
...
Code basically ready for BerkeleyDB with DB_INIT_CDB, need detection.
2001-10-02 04:13:47 +00:00
Howard Chu
693a81e1db
More CLDAP tweaks, to differentiate between real LDAPv2 CLDAP and "other"
...
LDAP/UDP messages. Slapd marks received CLDAP messages as LDAP_VERSION2.
The client library can generate CLDAP queries if -Protocol 2 is chosen,
otherwise not. LDAPv2 CLDAP cannot query the slapd rootDSE, gets no reply.
2001-10-02 01:02:23 +00:00
Kurt Zeilenga
44146a1cb7
Rework DB_THREAD support. CDB support needs reimplementation.
2001-10-01 06:08:46 +00:00
Kurt Zeilenga
712295ef4b
Rework getaddrinfo/inet_ntop not to segfault with ai_addr is (bogusly) NULL
2001-09-29 06:32:58 +00:00
Howard Chu
e80b5d4040
Clean up CLDAP stuff
2001-09-28 22:19:51 +00:00
Kurt Zeilenga
ea4bf672cc
Sync detection with use. Don't use DB_CDB_ALLDB. Causes hang.
2001-09-28 20:52:48 +00:00
Kurt Zeilenga
d397f6aa2f
Fix #undef LDAP_CONNECTIONLESS builds
2001-09-28 20:09:49 +00:00
Kurt Zeilenga
af8769b06d
Reorder includes
2001-09-28 00:34:18 +00:00
Howard Chu
647b5f84ee
Resurrection/rewrite of CLDAP (RFC1798 Connectionless LDAP).
...
Compile with -DLDAP_CONNECTIONLESS to use this code.
For slapd, use "-h cldap://" to listen on UDP.
For ldapsearch, use "-H cldap://" to query on UDP.
Client-side support is very minimal:
no automatic timeout/retries
no basedn wildcard expansion on results
no support for specifying multiple servers at once.
2001-09-28 00:18:40 +00:00
Kurt Zeilenga
da22af709b
Move stacksize setting outside of detach #ifdef
2001-09-27 18:54:17 +00:00
Howard Chu
2a853f0ca5
Change avl.c to use ber_memalloc and ber_memrealloc.
...
Add -llber to Makefile so testavl will build.
2001-09-27 01:08:22 +00:00
Kurt Zeilenga
5f4d8a71e6
Use a 64MB stack (instead of a 64K on some systems) by default.
...
This should be tunable...
2001-09-26 02:35:41 +00:00
Kurt Zeilenga
f4d48da5f4
Minor change to last commit...
2001-09-25 19:50:46 +00:00
Kurt Zeilenga
0e53126e68
Additional CR/LF fixes
2001-09-25 19:45:23 +00:00
Kurt Zeilenga
2c1273cd17
ITS#1328 LDIFv1 CR/LF fix
2001-09-25 18:48:48 +00:00
Kurt Zeilenga
790a18cb86
chasing multi-level referrals core dumps (ITS#1346) bug fix
...
from Zachary Amsden <zach@mirapoint.com>.
2001-09-24 18:50:44 +00:00
Kurt Zeilenga
afd665034a
Add ldap_url_desc2str().
2001-09-24 18:30:57 +00:00
Kurt Zeilenga
6cc6a187da
Fix an off by one bug which could cause a realloced buffer to be
...
too small. Changed extra size algorithm to use a much simplier
approach and detailed non-optimized version.
2001-09-22 03:18:02 +00:00
Howard Chu
2f6b7e3d43
Check debug level before invoking debug routine, slight optimization
2001-09-21 17:53:16 +00:00
Kurt Zeilenga
7a4b9e3c32
Minor cleanup
2001-09-18 17:35:47 +00:00
Howard Chu
384cbde4f5
Fix for ITS#1258 - even if we're accepting various malformed definitions,
...
don't allow OIDs that are a mix of numeric and non-numeric fields.
2001-09-18 12:21:33 +00:00
Howard Chu
84e4b860e1
Fix previous patch, didn't take handle syntax/noidlen properly
2001-09-18 12:03:20 +00:00
Howard Chu
6b9b0660c9
Fix ITS#1213, OID macro parsing in attributetypes
2001-09-18 11:30:00 +00:00
Howard Chu
e4d8a87ddc
Silence some typecast warnings
2001-09-18 05:22:53 +00:00
Howard Chu
966616b274
Don't pass NULL hostname to ldap_pvt_tls_check_hostname, use "localhost"
2001-09-18 05:19:55 +00:00
Howard Chu
6a59465686
Fix declaration mismatch when CYRUS is not present
2001-09-18 00:37:56 +00:00