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
Howard Chu
0f8047b95e
Implemented ldap_pvt_tls_get_peer() for use with SASL/EXTERNAL.
...
Added ldap_pvt_tls_get_strength() - return encryption strength, for
use as a SASL session security factor.
2000-08-16 23:27:41 +00:00
Kurt Zeilenga
ce856bd5c2
ber_bvstr() shouldn't play games with input string.
2000-08-15 17:01:40 +00:00
Kurt Zeilenga
2ae410bd1b
Treat INADDR_LOOPBACK (as well as INADDR_ANY) as local host.
2000-08-15 02:13:00 +00:00
Kurt Zeilenga
3b03b64b77
Add char* ldap_pvt_get_fqdn(char*) which returns the FQDN of the
...
input. In input==NULL, returns FQDN of local host.
Fixed copy_hostent() uninitialized pointer bug.
Replaced gethostname calls with ldap_pvt_get_fqdn( NULL ) calls.
2000-08-15 01:55:43 +00:00
Kurt Zeilenga
0f5a264dc3
hostbuf should be static
2000-08-15 00:58:56 +00:00
Kurt Zeilenga
f22250baaa
Fix a minor leak.
2000-08-14 18:39:43 +00:00
Kurt Zeilenga
063691aec0
Add support for Sleepycat Berkeley DB 3.1 (ITS#649)
...
changes derived from Ian Logan's patch
2000-08-07 19:46:37 +00:00
Kurt Zeilenga
b33f8b75d3
ITS#647 from Paul R. Turgyan <pturgyan@umich.edu>
...
When calling ldap_search looking for "supportedSASLMechanisms",
a NULL string should be passed to ldap_search and not a NULL pointer.
2000-08-06 05:25:10 +00:00
Kurt Zeilenga
5b856458a2
s/SAFEMEMCPY/AC_MEMCPY/
...
Use AC_FMEMCPY where appropriate (-llber)
2000-07-28 01:07:07 +00:00
Kurt Zeilenga
a50f391bb3
Working SASL security layers!
2000-07-28 00:04:07 +00:00
Kurt Zeilenga
33fb0e055b
From: vtag@novell.com
...
Subject: Bug in ldap_parse_result function (ITS#643)
If a user is using ldap result to obtain search results one message
at a time and calls ldap_parse_result on one of those messages, i.e.
the message chain does not have an LDAP_RES_SEARCH_RESULT message
in the chain, ldap_parse_result returns a LDAP_DECODING_ERROR
instead of LDAP_NO_RESULTS_RETURNED.
2000-07-27 23:44:44 +00:00
Kurt Zeilenga
19091cee32
Revert ber_peek_tag to older, more efficient implementation.
2000-07-26 23:32:39 +00:00
Kurt Zeilenga
ecbb4e55b1
Expose ldap_create_control
...
Conform schema routines to ldap naming conventions
2000-07-22 17:29:54 +00:00
Kurt Zeilenga
cd5aed0bbe
Use sigaction to set SA_RESTART (if appropriate).
...
Portability of this code needs to tested.
2000-07-22 00:37:51 +00:00
Kurt Zeilenga
19324c4292
Remove lint
2000-07-21 21:56:33 +00:00
Kurt Zeilenga
aea3e930d6
Remove unnecessary forward declaration
2000-07-21 21:29:41 +00:00
Kurt Zeilenga
b800a28c1e
Plug leak of syn_names
2000-07-21 02:23:27 +00:00
Kurt Zeilenga
ca5eab2ebc
bit fields should be explicitly unsigned (unless space is allocated
...
for sign bit)
2000-07-20 19:50:40 +00:00
Kurt Zeilenga
804100b431
Fix sasl end game processing.
2000-07-20 18:39:40 +00:00
Kurt Zeilenga
5c10406b9e
Fix up SASL interact error checking
2000-07-19 22:53:22 +00:00
Randy Kunkee
f42e510e03
Fix prototype for dummy ldap_int_sasl_bind.
2000-07-19 07:44:06 +00:00
Kurt Zeilenga
cd3233ceef
Clarify comment
2000-07-17 21:45:18 +00:00
Kurt Zeilenga
9fb680d527
Fix SASL automatic/quiet modes...
2000-07-17 21:36:30 +00:00
Kurt Zeilenga
6393523ffa
Expose sasl flags to -lldap (so they can be quiet)
...
Fix interactive and automatic modes. Quiet needs work.
2000-07-17 21:23:59 +00:00
Kurt Zeilenga
95eea5accc
First cut SASL "interactive" and "quiet" modes (default is "automatic")
2000-07-17 00:56:29 +00:00
Kurt Zeilenga
d2b05a3858
Rework SASL command line arguments. Default is now to authenticate
...
using best available mechanism. (authzid prompting to be disabled)
To use simple bind, -x is required (implied if -P 2) with -D/-[Ww]
To use simple "anonymous" bind, just -x will do.
2000-07-15 23:25:46 +00:00
Kurt Zeilenga
bab26b3142
Move some noise about
2000-07-15 01:28:16 +00:00
Kurt Zeilenga
c8ca70f3ae
Fix callbacks.
2000-07-14 22:00:16 +00:00
Kurt Zeilenga
36fb2d9d78
rework SASL callbacks
2000-07-14 20:56:30 +00:00
Kurt Zeilenga
95df143c33
*ssf > 1 should be *ssf > 0
2000-07-14 04:35:13 +00:00
Kurt Zeilenga
a42351c40f
Fix an interaction error on multiple step binds.
...
Add additional notices. Likely need to add a quiet mode.
2000-07-14 00:54:08 +00:00
Kurt Zeilenga
85c2a7a2a8
Update NT build to include recently added SASL sources.
2000-07-13 23:43:24 +00:00
Kurt Zeilenga
5fc22599e2
Update SASL code to reuse context through life of session.
...
Replace 'negotiated' with 'interactive' bind
Add hooks for SASL/EXTERNAL
Disable SASL security layers
Rework SASL command line and config file parameters
2000-07-13 22:54:38 +00:00
Kurt Zeilenga
1f1993989a
s/enable-unix/enable-local/
...
s/LDAP_PF_UNIX/LDAP_PF_LOCAL/
s/AF_UNIX/AF_LOCAL/
s/PF_UNIX/PF_LOCAL/
2000-07-09 21:49:36 +00:00
Kurt Zeilenga
fe23628faa
ITS#619: TLS PRNG initialization code
...
based upon patch provided by Ted C. Cheng <cheng@ix.netcom.com>
2000-07-08 22:17:50 +00:00
Kurt Zeilenga
821f0e17f2
Fix get/set conconcurrency routines under Solaris
2000-07-06 17:21:21 +00:00
Kurt Zeilenga
4f4f59f333
Rework <ac/errno.h> to provide a STRERROR. Prefers errlist over
...
strerror() as strerror() may not be thread safe. Likely should
be used by SLAPD.
2000-07-06 01:24:52 +00:00
Mark Valence
c1223a70e6
Added NO_THREADS version of ldap_pvt_thread_pool_maxthreads
2000-07-05 17:36:58 +00:00
Kurt Zeilenga
20e6dcec3b
Improved but still broken client tools.
2000-07-04 21:49:00 +00:00
Mark Valence
d4d03e36e5
Added "threads" config to slapd.conf.
2000-07-04 19:24:13 +00:00
Kurt Zeilenga
060ee8ee88
Add Steve Sonntag's (Novell) memory debugging extensions
2000-07-04 18:47:06 +00:00
Kurt Zeilenga
9d1e2ef7e2
Rename local variable 'sun' to 'sa' to avoid clash on Sun computers...
2000-07-04 17:57:21 +00:00
Kurt Zeilenga
8917a2d772
Remove ldap_*_dn() prototypes of #if 0 routines
2000-06-30 22:31:21 +00:00
Kurt Zeilenga
49d73e12a7
Avoid locale specific ctype routines.
2000-06-29 19:38:03 +00:00
Kurt Zeilenga
5d552f6051
Minor cleanup
2000-06-26 01:26:53 +00:00
Kurt Zeilenga
5d281b968d
Disallow kbind over LDAPv3
2000-06-26 01:25:36 +00:00
Kurt Zeilenga
e2fa599482
Move old files to the Attic
2000-06-25 22:01:42 +00:00
Kurt Zeilenga
5f20cf1ed5
Modify ldapsearch(1) significantly. Now handles LDAPv3 search
...
references, extended results, and extended partial results. LDIF
extended to support these new features and reported version 2.
-L now limits output to LDIFv1 for compatibility reasons. No
-L is now LDIFv2. Old alternative form is no longer supported.
Use LDAP_TMPDIR (in ldap_config.h) instead of hardcoded /tmp
Use LDAP_FILE_URI_PREFIX (in ldap_config.h) instead of hardcoded
file://tmp/
2000-06-25 00:35:17 +00:00
Kurt Zeilenga
49f4147385
Added -llber 'N' ber_printf format which inserts a NULL if
...
an internal flag set. Used for SEQUENCE testing. Flag must
be set using debugger. Modified ber_printf to use new format
were needed for extensibility testing.
Added first cut -lldap support for extended responses.
Modified ldapsearch(1) to handle v3 search references when not
chasing. Also added extended/unsolicited notification handling
and extended partial response handling. Changes include a
number of LDIF enhancements.
Fixed getpassphrase() returns NULL bugs
2000-06-24 01:40:39 +00:00
Mark Valence
719b945c78
Fix for thread/fork problem. Don't start a worker thread until one is
...
needed.
2000-06-21 06:09:45 +00:00
Kurt Zeilenga
d4c721ffa3
ITS#601: fix fetch bugs
2000-06-21 00:40:10 +00:00
Kurt Zeilenga
9ef1a740c2
Round one of LDAP_F() macro changes. In this round we rename
...
macros into our namespace and limit use to headers. A subsequent
round will add macros to separately handle forward declarations
of variables from declaration of function prototypes. The last
round will add additional macros for declaring actual variables and
functions.
2000-06-18 19:48:07 +00:00
Kurt Zeilenga
ccbd048fb2
Use URI, not HOST
2000-06-18 19:35:52 +00:00
Kurt Zeilenga
8da110a9e7
Extern URI code to support literal IPv6 addresses
...
Copyright 2000 Stig Venaas, UNINETT
All rights reserved.
Redistribution and use in source and binary forms are permitted
without restriction or fee of any kind as long as this notice is
preserved. The name of UNINETT may not be used to endorse or promote
products derived from this software without specific prior written
permission. This software is provided ``as is'' without express or
implied warranty.
2000-06-18 15:54:21 +00:00
Mark Valence
54f7e85770
Put cond_signal loop inside of mutex'ed area to fix race bug (seen on
...
Digital OSF 4.0e on an Alpha?)
2000-06-18 05:56:17 +00:00
Kurt Zeilenga
e393afaeec
Kill LinuxThreads clones
2000-06-17 18:49:25 +00:00
Kurt Zeilenga
35e77f88be
Add asserts aliasing debugging purposes.
2000-06-16 21:25:03 +00:00
Kurt Zeilenga
ddcb56546d
Fix mod_values v mod_bvalues typo
2000-06-16 20:39:13 +00:00
Kurt Zeilenga
ae61f3dcaf
Memory leak in referral code (ITS#596)
...
Apply patch from Steve Sonntag <vtag@novell.com>
2000-06-16 20:00:21 +00:00
Kurt Zeilenga
0c484042a0
Fix typo in last commit
2000-06-16 19:40:49 +00:00
Kurt Zeilenga
ac659e20d3
Add 1st libldap IPv6 patch (ITS#594) from Stig Venass.
...
Copyright 2000 Stig Venaas, UNINETT
All rights reserved.
Redistribution and use in source and binary forms are permitted
without restriction or fee of any kind as long as this notice is
preserved. The name of UNINETT may not be used to endorse or promote
products derived from this software without specific prior written
permission. This software is provided ``as is'' without express or
implied warranty.
2000-06-16 19:15:08 +00:00
Mark Valence
9c7127cd81
Check if process is installed/running as service on NT beofre trying t
...
o start it as a service (gets around an annoying pause when starting u
p as a non-service).
2000-06-15 02:21:01 +00:00
Kurt Zeilenga
b7d1b10bca
Minor cleanup
2000-06-14 21:11:56 +00:00
Kurt Zeilenga
5417fdfea7
Rename ldap_start_tls() to ldap_start_tls_s() for consistency sake.
...
Misc other header changes.
2000-06-13 20:45:30 +00:00
Kurt Zeilenga
63d05c74f4
Fix up NT port after thread changes
2000-06-13 20:43:59 +00:00
Kurt Zeilenga
8665618210
Fix Novell URL kludge
2000-06-13 05:50:23 +00:00
Kurt Zeilenga
ec426532b2
Reworked thread code to better support thread-library specific
...
r/w locks and thread pools. Hide internal structures (using
pthread'ish technics). Place common code in threads.c. Move
no-thread code to thr_stub.c. Move thread pool code to tpool.c.
Removed setconcurrency call from initializer, added 'concurrency'
directive to slapd. Tested code under pthreads, pth, and no-threads.
2000-06-13 02:42:13 +00:00
Kurt Zeilenga
922c3ad954
Found ber_error_print pieces which I forgot commit.
2000-06-10 23:13:01 +00:00
Kurt Zeilenga
1ef14875db
Thought I fixed these errors previously... oh well.
2000-06-10 23:06:08 +00:00
Kurt Zeilenga
a56c161bdb
Misc code cleanup.
2000-06-10 22:39:30 +00:00
Kurt Zeilenga
77df7c6098
Add ldap_unbind_ext_s
2000-06-10 17:29:10 +00:00
Kurt Zeilenga
89d7b86178
Add sort/vlv controls
2000-06-10 17:28:09 +00:00
Mark Valence
1f4b174c37
Fix a race condition by removing (unnecessary) unlock/yield/lock.
2000-06-10 04:12:49 +00:00
Mark Valence
d6ee9542ec
A little cleanup
2000-06-10 01:39:05 +00:00
Kurt Zeilenga
7b836babb6
Fix LBER_MEMORY_DEBUG failed realloc bug
2000-06-10 00:17:55 +00:00
Kurt Zeilenga
55dba4395f
Update PF_INET6 and PF_UNIX detection, both default to auto
2000-06-09 23:09:51 +00:00
Mark Valence
f5101f8274
Fix operator precedence bug.
2000-06-09 06:48:43 +00:00
Mark Valence
0715e29ae5
Fix uninitialized var bug.
2000-06-09 06:45:14 +00:00
Kurt Zeilenga
77b235fba5
Apply Novell's IN_KERNEL support (ITS#576)
2000-06-08 17:11:57 +00:00
Mark Valence
3c0e4d35a1
Added a yield or two for Pth.
2000-06-08 06:55:04 +00:00
Mark Valence
a1a78cd2e8
Thread pools enabled again -- test008 passes on NT, cthreads, pthreads
...
(on Linux), with max_concurrency set to 0 (as many as needed), 1, 2,
and 3.
2000-06-08 05:14:46 +00:00
Mark Valence
da355b317e
Disable thread pooling while I fix the deadlock.
2000-06-08 02:07:49 +00:00
Kurt Zeilenga
61be4bd0c8
remove pointer v. int lint from ber_sockbuf_ctrl.
2000-06-08 01:08:01 +00:00
Kurt Zeilenga
e68b429d45
Really disable pthread rw locks
2000-06-08 00:29:32 +00:00
Kurt Zeilenga
0eb19657fa
Add missing -DNO_THREADS trylock and make minor change to TLS
...
in attempt to get it work with GNU PTH.
2000-06-07 23:58:16 +00:00
Kurt Zeilenga
c6e4ad6c12
Add VLV/Sort controls (from Novell)
2000-06-07 23:43:56 +00:00
Kurt Zeilenga
22b8b60e49
Add VLV and SortList Control API and related (and other) I-Ds
2000-06-07 19:39:49 +00:00
Mark Valence
33f4955c07
Add thread pool routines.
2000-06-07 19:21:45 +00:00
Kurt Zeilenga
4933f894ba
Include <lber.h> to use ber_strdup(). (probably should create/use
...
macros LUTIL_STRDUP and friends).
2000-06-07 18:49:36 +00:00
Kurt Zeilenga
9a8cc65162
Update a few misc docs
2000-06-07 06:33:59 +00:00
Kurt Zeilenga
6ad1c45bd3
Use LDAP_VFREE and friends. Other misc code cleanup.
2000-06-07 05:17:29 +00:00
Kurt Zeilenga
107e99e302
Add Pth specific r/w lock implementation.
2000-06-07 01:34:00 +00:00
Kurt Zeilenga
e5ebc553ac
Rework URI parser to provide true scheme not proto/properties.
...
Plus more pthread rwlock code
2000-06-07 01:09:40 +00:00
Kurt Zeilenga
f192014c1a
Use pthread rwlocks, if available
2000-06-07 00:28:35 +00:00
Kurt Zeilenga
93a3f4e7b1
Fix typo in comment
2000-06-06 23:46:45 +00:00
Kurt Zeilenga
5cc86c1745
Demonstrate how rdwr routines could be easily replaced.
...
Update comment with reference to publically available examples.
2000-06-06 21:20:38 +00:00
Mark Valence
72bf2552eb
In preparation for thread pools
2000-06-06 19:59:34 +00:00
Kurt Zeilenga
c1002301d5
Don't include files moved to attic
2000-06-06 02:12:58 +00:00
Kurt Zeilenga
252ccfddbc
(very) incomplete Digest-MD5 impl to Attic (until someone steps up
...
to the plate)
2000-06-06 00:27:49 +00:00
Kurt Zeilenga
7573a81efe
getbyname/getbyaddr should share mutex per ITS#563.
...
Patch provided by Steve @ Novell, thanks!
2000-06-06 00:23:50 +00:00
Kurt Zeilenga
1af849c720
DNSSRV use res_query, not res_search
...
Update configure and depend --enable-dnssrv upon finding res_query
Update back-dnssrv to better handle ManageDSAit control
2000-06-05 23:56:26 +00:00