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
Randy Kunkee
ba4371db84
Tune db3 caching: only call set_cachesize for environment, and not individual
...
files. Don't call set_cachesize if dbcachesize = 0.
2001-06-22 08:31:36 +00:00
Randy Kunkee
1656f2c774
Patches from Mark Whitehouse (with changes from myself) to make the
...
dbcachesize setting actually work for db-3.2.9.
2001-06-21 18:54:56 +00:00
Kurt Zeilenga
10fd143311
s/__/LDAP_P/g
2001-06-16 07:37:43 +00:00
Kurt Zeilenga
55755fea2a
Rebind cleanup
2001-06-15 04:49:38 +00:00
Kurt Zeilenga
11b6d1f284
Misc updates for NT4
2001-06-15 04:16:55 +00:00
Kurt Zeilenga
5f25c10980
new rebind proc
...
new SASL locking
2001-06-15 00:14:56 +00:00
Kurt Zeilenga
5ac196e3f9
Update headers
2001-06-15 00:02:12 +00:00
Kurt Zeilenga
7ee53eb12e
Remove const from salt_format
2001-06-14 02:20:05 +00:00
Kurt Zeilenga
ff993c7ddb
Misc updates to password codes / docs
2001-06-13 05:40:24 +00:00
Kurt Zeilenga
8d4c20cd6d
Adding crypt(3) salt format (ITS#1202) from Jeff Costlow <j.costlow@f5.com>
...
with minor changes by committer
---
Copyright 2001, F5 Networks, Inc, All rights reserved.
This software is not subject to any license of F5 Networks.
This is free software; you can redistribute and use it
under the same terms as OpenLDAP itself.
2001-06-13 03:47:17 +00:00
Kurt Zeilenga
86acd7eb20
unifdef -ULDAP_UFN
2001-06-11 21:08:49 +00:00
Kurt Zeilenga
4edc93c807
EOL
2001-06-09 02:35:44 +00:00
Kurt Zeilenga
44bef574c8
Updated pthread test and usage (avoid pthread_detach if possible)
...
don't use tmpnam()
2001-06-09 01:05:35 +00:00
Kurt Zeilenga
e8ac75d22f
Fix up some locking
2001-06-07 16:24:46 +00:00
Kurt Zeilenga
d773c7178f
Fix typos in last commit
2001-06-07 16:15:25 +00:00
Kurt Zeilenga
486ad59260
Add a DB version check.
2001-06-07 16:11:59 +00:00
Pierangelo Masarati
a712216a6c
semicolon after colon in goto labels; no C++ style comments
2001-06-03 08:52:22 +00:00
Kurt Zeilenga
fcf71ea34f
clean up LDBM_{,UN}LOCK macros
2001-05-31 20:11:40 +00:00
Kurt Zeilenga
b6892b4493
big mutex needs #ifdef HAVE_BERKELEY_DB_THREAD wrapper
2001-05-28 20:16:21 +00:00
Kurt Zeilenga
94e1d48032
Misc adjustments to CBM tests
2001-05-28 20:00:17 +00:00
Kurt Zeilenga
4b8eae427f
Initial CDB implementation.
2001-05-28 19:43:11 +00:00
Kurt Zeilenga
52067f461e
Fix wrapping separators (no functional change)
2001-05-28 19:42:22 +00:00
Kurt Zeilenga
c6d9373d03
Enable ldbm_big_mutex for Berkeley DB 2/3 per comments from Sleepycat.
...
Can be disabled if and we implement DB_INIT_CDB + DB_INIT_MPOOL +
DB_CDB_ALLDB.
2001-05-28 19:11:29 +00:00
Kurt Zeilenga
deb9644a8a
Should not be using reverse lookup names to check certificates.
2001-05-19 23:07:46 +00:00
Kurt Zeilenga
588a518bff
Don't set_cachesize for db3
2001-05-18 00:55:09 +00:00
Kurt Zeilenga
5a26f9d617
Fix ; typo
2001-05-16 19:17:51 +00:00
Kurt Zeilenga
a36a6211e5
Regen
2001-05-12 18:44:07 +00:00
Pierangelo Masarati
74fa239a20
This is the commit of:
...
- librewrite, for string rewriting; it may be used in back-ldap
by configuring with '--enable-rewrite'. It must be used in
back-meta. There's a text file, 'libraries/librewrite/RATIONALE',
that explains the usage and the features. More comprehensive
documentation will follow.
- enhancements of back-ldap (ITS#989,ITS#998,ITS#1002,ITS#1054 and ITS#1137)
including dn rewriting, a fix to group acl matching and so
- back-meta: a new backend that proxies a set of remote servers
by spawning queries. It uses portions of back-ldap and the rewrite
capabilities of librewrite. It can be compiled by configuring
with `--enable-ldap --enable-rewrite --enable-meta'.
There's a text file, 'servers/slapd/back-meta/Documentation', that
describes the main features and config statements.
Note: someone (Kurt?) should run 'autoconf' and commit 'configure' as
my autoconf version must be different: my configures contain a number
of differences and I didn't feel comfortable in adding them :)
2001-05-12 00:51:28 +00:00
Gary Williams
9909448880
fix global level usage (ITS 1143, 1144)
2001-05-11 15:31:34 +00:00
Kurt Zeilenga
7522d3fcab
Add HAVE_INET_NTOP
2001-05-09 23:41:38 +00:00
Kurt Zeilenga
9adfb3552a
Minor redef
2001-05-07 03:50:53 +00:00
Kurt Zeilenga
9046576228
Misc cleanup
2001-05-07 03:43:23 +00:00
Kurt Zeilenga
9275b09954
Add a bit of hardening
2001-05-06 19:07:24 +00:00
Kurt Zeilenga
325a12e25d
NT thread fix
2001-05-06 18:58:45 +00:00
Kurt Zeilenga
61d874af10
reimplementation of sb_max_incoming
2001-05-04 21:15:09 +00:00
Kurt Zeilenga
383391b460
detect and use fcntl (for BSD/OS)
...
detect inet_ntop (for MacOSX)
2001-05-03 05:53:34 +00:00
Kurt Zeilenga
00c645b9a1
ITS#133
2001-05-03 05:51:39 +00:00
Kurt Zeilenga
9ed2b33e2b
optional SHA1
2001-05-02 19:49:44 +00:00
Kurt Zeilenga
8684be0278
Fix logic error in param check
2001-04-12 23:05:19 +00:00
Kurt Zeilenga
66fdd720f4
Fix off by one bug
2001-04-12 23:05:02 +00:00
Kurt Zeilenga
0a8b2f1381
Trim last of CLDAP cruft
2001-03-15 03:15:15 +00:00
Kurt Zeilenga
5fe2190603
libldap/cyrus.c's ldap_pvt_sasl_install fix
...
from Mei-Hui Su <mei@ISI.EDU>
2001-03-15 03:14:34 +00:00
Kurt Zeilenga
bd4c6b84ea
Bug in chkResponseList loop (ITS#1047) from David @ Novell
2001-03-15 03:11:52 +00:00
Kurt Zeilenga
7f91ee936f
Clean up header inclusion
2001-03-15 03:09:52 +00:00
Mark Valence
f9a76ce1ab
Bug fix and Windows compat change.
2001-02-19 19:09:54 +00:00
Kurt Zeilenga
12e9ed8e12
Fix memory leak
2001-02-03 01:49:12 +00:00
Gary Williams
36880023b6
fix NT build by moving unistd.h
2001-02-02 16:07:12 +00:00
Stig Venaas
7a3c92f2a7
Adding UTF8normcmp() for normalizing and comparing two UTF8 strings
2001-01-31 15:45:30 +00:00
Stig Venaas
899357d702
Including ac/ctype.h to get TOUPPER macro
2001-01-26 14:35:20 +00:00
Kurt Zeilenga
9e8743215c
Fix another typo
2001-01-22 21:25:06 +00:00
Kurt Zeilenga
1ae1061858
Fix typo
2001-01-22 20:50:07 +00:00
Kurt Zeilenga
ec87e9e30f
Default objectClass kind should be STRUCTURAL
2001-01-22 08:06:48 +00:00
Kurt Zeilenga
b08f7e8bce
Fix typo
2001-01-22 07:42:13 +00:00
Kurt Zeilenga
1cabc6931d
Add a little whitespace for readability
2001-01-20 01:17:15 +00:00
Kurt Zeilenga
90c9d543a8
Provide extra salt for crypt(3)
2001-01-20 01:15:28 +00:00
Stig Venaas
8c61bd279e
Added UTF8normalize() that does Unicode canonical normalization and
...
optionally case folding
2001-01-19 15:52:58 +00:00
Kurt Zeilenga
a4f4d8be59
Don't use ntohl().
...
Add min/max bufsize check
2001-01-19 04:53:21 +00:00
Kurt Zeilenga
599a610164
Update SASL bufsize checks
2001-01-18 22:18:41 +00:00
Stig Venaas
3621d2a329
Also install comp.dat, and fixed a bug in create_comps()
2001-01-18 18:10:11 +00:00
Kurt Zeilenga
c0a06f25c2
Add ldap_pvt_tls_get_peer_dn() routine. Returns peer as an LDAP DN.
2001-01-18 00:40:58 +00:00
Kurt Zeilenga
319a75ef39
Fix LMPASSWD code
...
Move <ac/unistd.h> and <ac/crypt.h> behind SLAPD_CRYPT
2001-01-18 00:35:09 +00:00
Gary Williams
16e6422329
new logging
2001-01-17 17:08:44 +00:00
Gary Williams
eade718809
check for global level setting
2001-01-17 17:05:43 +00:00
Stig Venaas
cacb73c3db
Add -x CompositionExclusions.txt as parameter to ucgendat, in order to
...
exclude some compositions from comp.dat
2001-01-16 17:25:20 +00:00
Stig Venaas
1bea1fdd34
Lists the characters from the UTR #15 Composition Exclusion Table
2001-01-16 17:22:26 +00:00
Stig Venaas
6c2ea5ec24
Final UCData-2.5 update
2001-01-15 16:14:43 +00:00
Stig Venaas
aa93a92313
Not currently used, but updating to UCData-2.5 anyway
2001-01-15 11:42:09 +00:00
Stig Venaas
a92da36ed8
Upgrading to UCData-2.5, this is just the docs
2001-01-15 09:30:46 +00:00
Kurt Zeilenga
a0828d6135
Rework scope defaulting to only default scope for references.
...
Might break LDAPv2 partial results
2001-01-10 23:48:24 +00:00
Kurt Zeilenga
1d1c1edf44
update rand file after use
2001-01-10 21:14:13 +00:00
Ben Collins
4391e6654a
s/UTF8_CHARLEN/LDAP_UTF8_CHARLEN/
2001-01-03 21:38:32 +00:00
Kurt Zeilenga
5082731e24
Add UTF-8 wc/mb conversion routines contributed by Novell.
...
/******************************************************************************
* Copyright (C) 1999, 2000 Novell, Inc. All Rights Reserved.
*
* THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
* TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
* TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
* AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE"
* IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION
* OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP
* PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT
* THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
******************************************************************************/
2000-12-28 02:20:37 +00:00
Kurt Zeilenga
b7607bf237
ITS#884: GSSAPI interoperabity with ActiveDirectory
...
Improve interoperability when of scred is present but empty.
2000-12-27 19:42:09 +00:00
Mark Valence
a376cb1002
dup() does not work on WinSock sockets.
2000-12-21 22:38:06 +00:00
Mark Adamson
ef2dd4bcb0
ITS#897 Internal connection that is closed on one end and about to
...
be closed on other end could get reused by a new internal connection.
2000-12-08 23:23:08 +00:00
Kurt Zeilenga
d8292a62da
Fix referral scope logic
2000-12-08 19:45:04 +00:00
Kurt Zeilenga
fafbe5878b
Clean up
2000-11-29 03:30:59 +00:00
Kurt Zeilenga
a09139465a
Update URL parsing and LDAP referral/reference chasing to handle
...
search scope defaulting.
2000-11-28 19:56:55 +00:00
Kurt Zeilenga
c0f9ec5458
ITS#889 fix
2000-11-22 20:27:30 +00:00
Kurt Zeilenga
6053ed1058
ITS#903: validate hostname in server cert from Norbert Klasen
...
adapted as needed.
2000-11-22 20:23:38 +00:00
Kurt Zeilenga
df7804debc
ITS#899 LANMAN password contribution from Norbert Klasen
2000-11-22 20:18:50 +00:00
Kurt Zeilenga
5941625eb7
ITS#889: quick fix
2000-11-20 18:59:42 +00:00
Stig Venaas
b44cc963c2
Improved ucdata loading error handling
2000-11-09 12:39:18 +00:00
Kurt Zeilenga
511a84bc31
First cut of SASL/EXTERNAL
2000-10-31 23:00:35 +00:00
Kurt Zeilenga
907cd90607
Fix UTF-8 5-octet sequences
2000-10-27 21:32:46 +00:00
Kurt Zeilenga
7b9886e909
Add LDAP URL critical extension counter support. lud_crit_exts
...
is the number of critical extensions contained in lud_exts.
As we currently do not support any extension, this flag is
useful for determining whether or not we should attempt to
use the URL. Added check of this counter to ldap_url_search
and LDAPv3 chase referrals.
2000-10-26 06:17:14 +00:00
Gary Williams
e809d3e90c
get rid of unused structure
2000-10-25 16:48:11 +00:00
Gary Williams
3fdbbcaba3
add new logging macros/defs (behind NEW_LOGGING)
2000-10-25 16:47:17 +00:00
Gary Williams
0e7f9b7ab4
try new logging routines (behind NEW_LOGGING)
2000-10-25 15:35:01 +00:00
Gary Williams
ecad3079e5
add new ber dump routine (behind NEW_LOGGING)
2000-10-25 15:33:39 +00:00
Kurt Zeilenga
2504f29a0c
Fix IS ASCII checks. Should be < 0x80 (0100), not < 0x100.
2000-10-23 18:04:45 +00:00
Julio Sánchez Fernández
47fd4fbad3
A little bit of Matching Rule Use.
2000-10-23 12:25:43 +00:00
Kurt Zeilenga
9e7accb034
This patch replaces gai_strerror with AC_GAI_STRERROR in daemon.c and also
...
uses AC_GAI_STRERROR to report getaddrinfo failures in os-ip.c
-- Stig Venass
2000-10-19 18:05:11 +00:00
Kurt Zeilenga
9f0d190739
Add ldap_pvt_gai_strerror().
...
Calls to gai_strerror() should be replaced with calls AC_GAI_STRERROR().
2000-10-18 17:25:30 +00:00
Kurt Zeilenga
3498151f99
Validate session handle
2000-10-18 16:32:57 +00:00
Gary Williams
895296fbd3
fix file test
2000-10-18 14:58:34 +00:00
Kurt Zeilenga
ffe1320bf5
fix SOCKET_ERROR typos
2000-10-18 03:24:50 +00:00
Kurt Zeilenga
c56a27e7e8
Eliminate the need for a buffer.
2000-10-18 02:27:45 +00:00
Kurt Zeilenga
7fad68f7b4
remove lint
2000-10-18 00:29:21 +00:00
Kurt Zeilenga
25522f1399
Remove lint
2000-10-18 00:28:39 +00:00
Kurt Zeilenga
ce373d3800
Use SOCKET_ERROR instead of -1
2000-10-18 00:27:31 +00:00
Kurt Zeilenga
d491ac55de
Update handling of partial responses
...
Update comments
Update log messages
rename symbols per conventions
2000-10-18 00:26:53 +00:00
Kurt Zeilenga
7beb6e4f89
minor cleanup
2000-10-18 00:24:58 +00:00
Kurt Zeilenga
6442964059
Handle *lud_host == '\0'
...
(likely should modify parsers and other codes to disallow such)
2000-10-17 20:30:14 +00:00
Kurt Zeilenga
174c6abfe2
ldap_url_search should use hostport of URL.
2000-10-17 19:26:04 +00:00
Gary Williams
5a541e8744
convert string levels to ints
2000-10-17 18:56:24 +00:00
Kurt Zeilenga
66818be637
Don't attempt to send abandon unless connection exists.
...
If connection doesn't exist, return LDAP_SERVER_DOWN.
2000-10-16 23:11:41 +00:00
Kurt Zeilenga
edef4b2970
ITS#821: TLS data ready fix from <mattc@chartist.com>
2000-10-16 20:26:56 +00:00
Julio Sánchez Fernández
5d899f0c00
Better processing of extensible filters. Needs testing, but the prior
...
version was not encoding properly the filter.
2000-10-15 19:17:06 +00:00
Kurt Zeilenga
bcdd316b86
entropy should be unsigned
2000-10-14 02:14:38 +00:00
Kurt Zeilenga
3d57f2ae67
Rework control create/dup routines to distinguish not
...
present value from empty value.
2000-10-14 02:13:53 +00:00
Kurt Zeilenga
92625471e1
Fix typo
2000-10-14 02:13:11 +00:00
Julio Sánchez Fernández
491a63b5d4
Prevent it from crashing.
2000-10-13 20:22:46 +00:00
Gary Williams
1217a452e9
add typedef for log function that was in lber.h
2000-10-13 14:10:41 +00:00
Kurt Zeilenga
93d9fde132
Label sb debugging as "ldap_"...
2000-10-13 01:00:55 +00:00
Kurt Zeilenga
2a6f092422
Add sasl i/o debugging
2000-10-12 23:50:58 +00:00
Gary Williams
3e0cc38404
remove LDAP_Debug macro
2000-10-12 21:16:18 +00:00
Gary Williams
7f888171f7
update logging
2000-10-12 21:14:43 +00:00
Gary Williams
a10feabf25
slight change to macro
2000-10-12 21:02:58 +00:00
Gary Williams
d37f3e6ee2
first try at logging improvements
2000-10-12 20:01:12 +00:00
Kurt Zeilenga
5a32ff0603
Add missing 'static'... (ITS#823,825,828)
...
as reported by Jeff Earickson <jaearick@colby.edu>
other suggestions to be separately reviewed
2000-10-11 23:42:53 +00:00
Kurt Zeilenga
f8e5ed25e9
Revised ITS#799 fix from Steve Sonntag <vtag@novell.com>
...
The problem is that the current code checks the queue inside
the test for correct connecction state, so sometimes the queue
doesn't get checked. This change moves the test outside
the connection check.
2000-10-11 21:11:34 +00:00
Kurt Zeilenga
8e6062eb82
References with empty dn (ITS#817)
2000-10-11 04:23:23 +00:00
Kurt Zeilenga
1dc469e064
Remove max buffer constraint!
...
and general cleanup
2000-10-11 02:43:14 +00:00
Kurt Zeilenga
b7b9148c7f
Return more appropriate result codes than LDAP_UNAVAILABLE
...
upon failures.
2000-10-09 22:11:34 +00:00
Kurt Zeilenga
379d0962ea
Add cast to avoid mismatch
2000-10-06 21:16:26 +00:00
Kurt Zeilenga
2cdbfd069b
Add missing newlines
2000-10-05 18:30:06 +00:00
Kurt Zeilenga
6712936ef8
ITS#799: chasing multiple referrals bug
...
Patch provided by Steve Sonntag <vtag@novell.com>
2000-10-05 01:40:36 +00:00
Kurt Zeilenga
9e450558d8
Fix add of empty value.
2000-10-03 22:05:28 +00:00
Kurt Zeilenga
005a2f7aec
Don't assert on null
2000-10-03 18:51:30 +00:00
Kurt Zeilenga
3c63a944eb
Initialize globals as some linkers don't support shared, uninitialized
...
data segments.
2000-10-02 17:53:50 +00:00
Kurt Zeilenga
778b665242
Fix up some free'ing.
2000-10-02 17:43:39 +00:00
Kurt Zeilenga
822bfc3670
Rework stringal decode to return { NULL, 0 } bv's instead of { "", 0 }
...
when len is 0.
2000-10-02 17:43:06 +00:00
Kurt Zeilenga
003a293e2b
Don't specify LDFLAGS when using LTLINK to avoid duplicate
...
specfication of flags.
2000-10-01 08:10:37 +00:00
Kurt Zeilenga
74b048a5a4
Fix ldap_first/next_attribute to return NULL without error when
...
nothing is left.
2000-09-30 06:57:23 +00:00
Kurt Zeilenga
1890b720b4
cleanup getattr bailout code
2000-09-30 05:35:44 +00:00
Kurt Zeilenga
f8d9bffb98
Don't touch (unescape) URL handed to rebind proc.
2000-09-30 02:37:05 +00:00
Kurt Zeilenga
dd733e163a
ITS#791: fix SASL ctx close
2000-09-29 18:27:06 +00:00
Kurt Zeilenga
abf6bdaeb5
Add hash to project file
2000-09-29 02:59:44 +00:00
Kurt Zeilenga
6ec475cd61
Code cleanup
2000-09-22 22:43:30 +00:00
Kurt Zeilenga
6949ab9d15
Replace indexing hash with 32-bit FNV-1... should be much faster than MD5
2000-09-22 22:19:46 +00:00
Kurt Zeilenga
2b82d4f486
remove lint
...
update bdb codes
2000-09-22 01:40:57 +00:00
Kurt Zeilenga
90d557402b
Should modify code to bail on initialization errors...
...
For now, just (void) the return
2000-09-21 19:56:04 +00:00
Mark Adamson
bf1ee530ea
Implementation of SASL authorization.
2000-09-21 17:32:54 +00:00
Kurt Zeilenga
3c852017be
Build liblunicode first
2000-09-20 17:25:04 +00:00
Kurt Zeilenga
3ddb829076
change bdb errpfx
2000-09-20 00:27:47 +00:00
Kurt Zeilenga
e1b73eda93
cleanup
2000-09-16 22:46:04 +00:00
Kurt Zeilenga
f42966f9e1
Fix #undef LDAP_UFN
2000-09-16 06:24:17 +00:00
Kurt Zeilenga
efe39c999f
modify ldap_dn2ufn() to return completely typeless UFNs
...
hide rest of UFN code behind #ifdef LDAP_UFN in preparation
for eventual removal.
2000-09-16 04:33:52 +00:00
Kurt Zeilenga
55ad2c9319
Validate ber on get/set option calls
2000-09-16 01:28:20 +00:00
Kurt Zeilenga
f4f093054a
overrun protection doesn't work... hmmm....
2000-09-16 01:05:14 +00:00
Kurt Zeilenga
4e1b3229d6
Another minor ber_dump output format change
2000-09-15 18:59:46 +00:00
Kurt Zeilenga
14abfc7fe6
Minor format adjust to ber_dump output
2000-09-15 18:10:52 +00:00
Ben Collins
9fe15dba96
Remove unused var, 'rc'
2000-09-15 14:20:20 +00:00
Kurt Zeilenga
b611ec4b87
consistently use ber_pvt_ber_*() routines
2000-09-15 05:56:37 +00:00
Ben Collins
5c8d4c88b6
make function match it's decleration
2000-09-15 03:48:27 +00:00
Ben Collins
aaf59e2a2b
don't define NEED_COPY_HOSTENT in the decleration
2000-09-15 03:33:05 +00:00
Ben Collins
df4605b8c1
include ac/unistd.h to avoid compiler warnings
2000-09-15 03:11:03 +00:00
Ben Collins
ef1d8662f0
fix formatting
2000-09-15 03:08:05 +00:00
Ben Collins
4d0a95db04
wrap unused function, ldap_int_thread_onlist() in #if 0
2000-09-15 03:07:43 +00:00
Ben Collins
18c5605524
fix compiler warnings by including ac/unistd.h
2000-09-15 03:06:51 +00:00
Ben Collins
621babf51d
fix compiler warnings by including ac/unistd.h and only declaring copy_hostent() when we actually need to use it
2000-09-15 03:06:18 +00:00
Ben Collins
718a6bfca4
initialize Sockbuf * to NULL
2000-09-15 03:05:27 +00:00
Ben Collins
3635cbdbe1
remove unused vars
2000-09-15 03:04:46 +00:00
Ben Collins
9946e999c8
move some vars to where they are actually used to avoid compiler warnings
2000-09-15 03:04:04 +00:00
Ben Collins
81d26d3ac0
fix call to ldap_connect_to_path()
2000-09-15 03:02:57 +00:00
Ben Collins
b2866ff162
s/LDAP_PF_UNIX/LDAP_PF_LOCAL/ so that we actually declare ldap_connect_to_path(). Also fix the decleration to match the function
2000-09-15 02:55:54 +00:00
Ben Collins
5df2c83b38
remove unused var, 'dn'
2000-09-15 02:54:28 +00:00
Ben Collins
960041de8a
include ac/ctype.h and initialize some variables to avoid compiler warnings
2000-09-15 02:53:55 +00:00
Ben Collins
ed7f95edb0
wrap unused function, ber_log_puts(), in #if 0
2000-09-15 02:51:34 +00:00
Ben Collins
7fa88b2a27
remove lint
2000-09-15 02:50:14 +00:00
Kurt Zeilenga
0243c4b0da
Fix Id
2000-09-15 02:09:39 +00:00
Kurt Zeilenga
b641615c53
Keep ldap_first/next_attribute from running past end of attributes.
...
Likely other sequences need this attention.
2000-09-15 01:16:09 +00:00
Kurt Zeilenga
b4c9287f45
Don't send optional cred if empty
2000-09-15 00:09:24 +00:00
Kurt Zeilenga
611ccd1ccb
Rework ber dump to provide both hex and text output
2000-09-14 22:28:45 +00:00
Kurt Zeilenga
fbfe0f0ac7
Fix typo in Kbind code
2000-09-14 19:58:55 +00:00
Kurt Zeilenga
ed68c977d9
Zap LDAP_LIBUI
2000-09-14 07:22:01 +00:00
Ben Collins
e717717a8b
Error in setting sa_flags (was never set)
2000-09-13 21:49:08 +00:00
Ben Collins
df57978436
specifically check for NULL return from ldap_int_thread_delist(). Also, fixup comment to get rid of compiler warning.
2000-09-13 21:48:29 +00:00
Ben Collins
5a33b7509b
Fix error in if() statement (==, not =)
2000-09-13 21:47:12 +00:00
Ben Collins
07ce0a9935
s/got_max_ssf/got_min_ssf/ thinko fix when checking for minssf. In this case, minssf was never set, and would cause maxssh to be set in error
2000-09-13 21:46:11 +00:00
Randy Kunkee
ab3be5d76d
Include <ac/param.h> to pick up MAXPATHLEN.
2000-09-13 07:26:55 +00:00
Kurt Zeilenga
92c55c4454
Clean up
2000-09-13 01:12:47 +00:00
Kurt Zeilenga
d554a31b58
Move ldap_pvt_tls_init call to ldap_pvt_tls_start
...
Relax user-only options on TLS_RANDFILE and TLS_REQCERT
2000-09-13 00:54:45 +00:00
Kurt Zeilenga
a7d74e9080
More NT threading fixes
2000-09-12 20:39:13 +00:00
Kurt Zeilenga
c78d5f5e7f
ITS#697: Fix cond_wait
2000-09-12 18:18:27 +00:00
Kurt Zeilenga
2c30c90876
Rework TLS code (only supports default connection)
2000-09-12 00:30:05 +00:00
Kurt Zeilenga
d8c4df6f39
-lldbm now sets DB_USE_ENVIRON and support input of a DB home path.
...
back-ldbm needs modification to support db home directory as backend
(as oppose to database) option.
2000-09-11 18:46:34 +00:00
Kurt Zeilenga
83af225383
Set DB_PRIVATE
2000-09-11 17:49:25 +00:00
Kurt Zeilenga
bfff7ce1f5
Bandaid ucdata build problems
2000-09-07 23:31:59 +00:00
Kurt Zeilenga
a4fac87687
Use ucdata (very experimental)
2000-09-07 23:19:10 +00:00
Kurt Zeilenga
102a88659b
ITS#717 kbind fixes
2000-09-06 21:32:45 +00:00
Kurt Zeilenga
f319444df0
MIT Kerberos and krb5_free_creds_contents (ITS#715)
...
fix suggested by Norbert Klasen <klasen@zdv.uni-tuebingen.de>
2000-09-06 18:21:39 +00:00
Kurt Zeilenga
d59a62e236
Clarify perms
2000-09-04 21:57:01 +00:00
Kurt Zeilenga
10e787041f
Fix typo
2000-09-04 17:49:43 +00:00
Kurt Zeilenga
b486f9b944
Fix install of ucdata
2000-09-04 17:01:37 +00:00
Kurt Zeilenga
cee040a321
Bring UCdata infrastructure.
2000-09-03 23:48:35 +00:00
Kurt Zeilenga
b99299219f
Fix typo
2000-09-03 19:33:26 +00:00
Kurt Zeilenga
5518aefda0
Change default to SSL_PEER_NONE (don't require peer certificate).
2000-09-01 23:24:17 +00:00
Kurt Zeilenga
57ed8f6458
Fix port defaulting
2000-09-01 23:03:17 +00:00
Kurt Zeilenga
8983f7cb8b
Fix ldap_pvt_tls_start() return value check.
2000-09-01 01:04:18 +00:00
Kurt Zeilenga
3844db4404
Use example.com, not openldap.org, in examples
2000-08-25 02:17:40 +00:00
Kurt Zeilenga
a2afb207be
Move ldap_start_tls_s() to tls.c
2000-08-25 02:16:15 +00:00
Kurt Zeilenga
526d1e6981
needs string.h
2000-08-21 16:48:11 +00:00
Kurt Zeilenga
57936dc93c
Zap CLDAP
2000-08-19 00:07:30 +00:00
Kurt Zeilenga
25a9f7427d
Remove CLDAP cruft
2000-08-18 04:25:00 +00:00