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
Kurt Zeilenga
86f79b85d8
Add experimental UUID/CSN support (needed for LCUP).
2001-12-05 07:25:25 +00:00
Kurt Zeilenga
268ee5ff4a
Add CSN routine.
2001-12-05 06:30:58 +00:00
Kurt Zeilenga
3da9378c3a
Set multicast bit
2001-12-05 06:09:22 +00:00
Kurt Zeilenga
8c0de8326f
Some minor cleanup...
2001-12-05 06:00:57 +00:00
Kurt Zeilenga
524c139d7c
Add UUID code from John E. Schimmel
2001-12-05 05:39:34 +00:00
Pierangelo Masarati
9004262d95
reimplement dn_validate/normalize/(match) using the ldap_str2dn/dn2str stuff; need to #define USE_LDAP_DN_PARSING
2001-12-04 20:22:26 +00:00
Kurt Zeilenga
850702ba99
Remove lint
2001-12-04 06:14:16 +00:00
Kurt Zeilenga
4041ef05bf
Slight memfree cleanup
2001-12-04 06:10:10 +00:00
Kurt Zeilenga
8b4bae1fe3
Friendly name removal
2001-12-03 20:04:31 +00:00
Kurt Zeilenga
95b3e2a97d
Minor cleanup
2001-12-03 20:04:08 +00:00
Pierangelo Masarati
598d6e7859
small improvements and fixes; now honors ';' as rdn separator in LDAPv2 mode
2001-12-03 07:55:25 +00:00
Howard Chu
88e3454654
Add #include <openssl/safestack.h> to fix ITS#1412
2001-11-30 02:37:39 +00:00
Kurt Zeilenga
bfe4dc289a
ITS#1429 url search fix
2001-11-28 16:49:46 +00:00
Pierangelo Masarati
ea54a1a8e8
fix bug in previous commit
2001-11-12 08:47:09 +00:00
Pierangelo Masarati
6400698d17
struct berval * instead of char * in ldap_ava struct; minor cleanup
2001-11-12 08:10:12 +00:00
Mark Adamson
156c9b3177
typo in declaration of function.
2001-11-09 19:22:03 +00:00
Mark Adamson
f05420c8d8
use berval's instead of strings with UTF8normalize()
2001-11-09 19:01:23 +00:00
Steve Sonntag
367c5e81ba
Compile error if Cyrus Sasl is not present. Put ifdefs in
...
unbind call around free of sasl data.
2001-11-08 20:08:36 +00:00
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
Kurt Zeilenga
241d6a558e
Remove dead code
2001-09-09 04:47:03 +00:00
Kurt Zeilenga
553d80cedd
Blindly fix TLS/SASL external interaction.
2001-09-09 03:42:26 +00:00
Kurt Zeilenga
3c844f0225
Minor cleanup of ldap_perror()
2001-09-09 03:02:54 +00:00
Kurt Zeilenga
05c9d4bfda
Fix TLS ldap.conf issues
2001-09-05 21:22:41 +00:00
Kurt Zeilenga
65686b72fd
Do version checks for BDB 3 or greater
2001-09-03 19:23:05 +00:00
Kurt Zeilenga
2f62c3722a
Import backwards compatibility for BDB 3.0.x
2001-09-03 19:01:09 +00:00
Howard Chu
f3501cbf50
Fix ldap_int_tls_start to set its error codes in ld->ld_errno.
2001-09-02 12:06:41 +00:00
Howard Chu
b10e0029a5
Full implementation of server identity checking per RFC2830 section 3.6
2001-09-02 11:23:28 +00:00
Kurt Zeilenga
d3cb8a357f
Move Cyrus SASL initializing forward
2001-08-31 00:14:04 +00:00
Howard Chu
44a3160fec
Remove redundant call of SSL_set_info_callback, to allow users
...
to override it in the SSL_CTX.
2001-08-29 20:28:08 +00:00
Kurt Zeilenga
fb5df59342
Add DB 3.3 support...
...
likely needs work on NT4 (but so did old code)
2001-08-27 22:06:07 +00:00
Kurt Zeilenga
05960887bb
Fix -H ldaps:// crashes due to rework of TLS code
2001-08-27 20:22:28 +00:00
Pierangelo Masarati
511e8b606f
fix bug in '%' escaping in substitution pattern compile
2001-08-25 15:20:16 +00:00
Kurt Zeilenga
16fa8c4a21
Fix bug introduced during TLS rework
2001-08-02 04:20:11 +00:00
Kurt Zeilenga
2ad03e6041
To be consistent, should assert that ld is valid.
2001-07-24 16:38:42 +00:00
Kurt Zeilenga
2b7727882d
misc updates, constification, deprecation...
2001-07-23 05:00:39 +00:00
Kurt Zeilenga
978e417699
Make some additional UTF8 public
...
Remove lint
2001-07-21 23:13:04 +00:00
Pierangelo Masarati
93923d4345
honors multiple type/value in rdn when generating ufn
2001-07-11 20:16:25 +00:00
Kurt Zeilenga
f61152ccbd
Check for critical client controls.
2001-07-06 03:13:42 +00:00
Kurt Zeilenga
803e84fcdd
TLS doesn't need ldap_host_connected_to()
2001-06-25 21:44:41 +00:00
Kurt Zeilenga
c731288dc6
Replace ATTR_URIS with ATTR_OPTION (more general solution)
2001-06-25 21:39:14 +00:00
Kurt Zeilenga
77f776dfd1
Another round of TLS updates to support secure referral chasing
2001-06-25 19:17:42 +00:00
Kurt Zeilenga
350ffe6d15
Rework tls check
...
Needs to be connection specific
2001-06-25 18:20:14 +00:00
Kurt Zeilenga
c4f5497ac6
move TLS ctx to lconn struct in prep for supporting TLS with referrals
...
need to rework cert check to use per lconn host name
2001-06-25 07:33:42 +00:00
Pierangelo Masarati
1aa97d5f87
actually, <ac/strings.h> rather goes into rewrite-int.h
2001-06-23 16:06:34 +00:00
Kurt Zeilenga
903940014c
Sync with 2.x
2001-06-23 01:25:21 +00:00
Kurt Zeilenga
fdbe100e5f
include <ac/string.h> as needed (not in rewrite.h)
2001-06-23 01:20:32 +00:00
Kurt Zeilenga
4a23c08678
Fix up error handling
2001-06-22 21:01:04 +00:00