Howard Chu
4b73446ab5
ITS#2424 reset SASL on an existing connection
2003-04-30 15:38:32 +00:00
Howard Chu
1d2951bb5a
For ITS#2424, move all SASL session management to ldap_int_sasl_bind.
2003-04-30 14:13:58 +00:00
Howard Chu
20c8128d27
ITS#2475 delete bogus SASL2 call
2003-04-30 08:08:08 +00:00
Howard Chu
7e2273b30e
Added errmsg arg to lutil_passwd_{check,hash} functions
2003-04-30 07:52:05 +00:00
Howard Chu
23b63aac39
Free ber mem arrays in reverse order. (better for sl_free)
2003-04-29 21:09:02 +00:00
Hallvard Furuseth
778a38f49c
Reduce warnings: Add missing 0 or NULL initializers for struct members.
2003-04-29 16:36:19 +00:00
Hallvard Furuseth
6d59c23c55
Make string parameter to ldap_charray_add() and ldap_charray_inlist() const.
2003-04-29 16:34:37 +00:00
Hallvard Furuseth
b0b82abb3a
#include "ldap_pvt.h", to get ldap_charray_free() and ldap_charray_add().
2003-04-29 14:46:54 +00:00
Hallvard Furuseth
5b591b2a22
#include <lber.h>, to get ber_memalloc_x() and ber_memrealloc_x().
2003-04-29 14:45:33 +00:00
Hallvard Furuseth
c898a56263
Cast away const.
2003-04-29 14:43:54 +00:00
Howard Chu
deea8db4cd
EBCDIC fix - ber_pvt_strcopy is now lutil_strcopy
2003-04-25 12:32:15 +00:00
Luke Howard
375224128e
More careful checking of AVA flags
2003-04-24 11:10:31 +00:00
Luke Howard
ad40330a86
Fix Active Directory canonical name breakage
2003-04-24 11:09:22 +00:00
Howard Chu
a413bab19a
Clean up prev commit
2003-04-24 04:20:17 +00:00
Howard Chu
b6111d793e
Fix multi-byte tag parsing
2003-04-24 03:59:45 +00:00
Howard Chu
bcf7ab26e4
ITS#2465 fix? ber_get_next must read at least sizeof(tag)+sizeof(len)
...
which should be at most 8 bytes. However if we read more than the minimum
message length, we have a problem because we steal bytes from any following
message, and there is no buffer mechanism to push back excess data.
The shortest legitimate message is Unbind at 7 bytes, but there shouldn't
be anything following it. Abandon at 8 bytes is next, so always requesting
at least 8 bytes should be safe. Always requesting 9 was a problem.
Please double-check these assumptions...
2003-04-24 02:10:18 +00:00
Howard Chu
d14ff18d7f
ITS#2458 fix array decoding
2003-04-24 01:37:01 +00:00
Jong Hyuk Choi
fd3cf2b5ed
get_ldapmsg_ber() -> ldap_get_message_ber()
2003-04-22 22:09:25 +00:00
Jong Hyuk Choi
759110255f
get_ldapmsg_ber() added.
2003-04-22 21:38:59 +00:00
Kurt Zeilenga
d7a326be26
Don't do (unsafe) DNS reverse lookups.
...
HEADS UP: May break some Kerberos deployments.
2003-04-22 01:17:23 +00:00
Kurt Zeilenga
3f6a9a7e57
More ldap_connect_to_host() tweaks.
2003-04-21 18:45:46 +00:00
Kurt Zeilenga
ca52123a60
Fix builds when getaddrinfo is not detected but getnameinfo is.
...
This does not happen normally.
2003-04-21 18:28:08 +00:00
Kurt Zeilenga
978c94a223
ITS#2459 (partial) fix. Eliminate address parameter all together.
...
Need to look closely at the memcpy. (It likely can be eliminated
as well.)
2003-04-21 17:06:37 +00:00
Howard Chu
b4dfd0c08c
Add ldap_pvt_thread_pool_context() stub for NO_THREADS builds
2003-04-16 00:18:56 +00:00
Howard Chu
30b3d741d5
Fix prev commit - hash bytes of ldap_pvt_thread_t to find proper slot
2003-04-13 05:48:48 +00:00
Howard Chu
a6a6946a67
New ldap_pvt_thread_pool_context()
2003-04-12 04:01:40 +00:00
Howard Chu
808cb504ce
More memory context tweaks
2003-04-11 03:57:10 +00:00
Howard Chu
1874658ae3
More memory context tweaks
2003-04-11 01:02:08 +00:00
Howard Chu
42e7845d81
More malloc context tweaks
2003-04-10 06:14:16 +00:00
Howard Chu
ca12bb75c7
Extended API for ber_mem functions, add context argument.
...
Must always use ber_mem funcs, even if CSRIMALLOC is present.
2003-04-09 13:25:11 +00:00
Howard Chu
e240135305
ITS#2434 ber accessors
2003-04-09 09:41:02 +00:00
Kurt Zeilenga
02c992a132
mark more translatable strings
2003-04-06 06:47:31 +00:00
Kurt Zeilenga
e41ca42de1
mark a few translatable strings
2003-04-06 06:19:13 +00:00
Kurt Zeilenga
cfd9449374
Mark a few error strings
2003-04-06 06:10:56 +00:00
Kurt Zeilenga
5820854fae
Don't cache strings, locale could change
2003-04-06 05:48:05 +00:00
Kurt Zeilenga
e62850324d
mark the rest of translatable strings
2003-04-06 03:50:05 +00:00
Kurt Zeilenga
1632dd926f
Mark error strings
2003-04-06 03:45:32 +00:00
Howard Chu
2ee7488d0b
ITS#2423 - make the lib that allocates SASL prompt results responsible
...
for freeing them.
2003-04-06 00:47:55 +00:00
Pierangelo Masarati
4022ee7b43
avoid 0-sized, unused allocations
2003-04-05 11:30:43 +00:00
Kurt Zeilenga
e446a0c5cd
cancel.c missing (blind update)
2003-03-30 05:38:39 +00:00
Howard Chu
4a1eb51d3e
ITS#2404 keep the per-thread context in the individual threads...
2003-03-27 01:39:42 +00:00
Kurt Zeilenga
1b37568b00
Use ifdef not comment to comment out code
2003-03-22 22:28:57 +00:00
Howard Chu
062f54d1cc
ITS#2388 fix if() conditions.
2003-03-20 11:07:53 +00:00
Kurt Zeilenga
c34c42dec3
just in case <netdb.h> does something like
...
#define h_errno (* __h_errno())
2003-03-14 04:56:08 +00:00
Howard Chu
97c2c9c955
ITS#2373 add declaration of h_errno
2003-03-14 04:25:39 +00:00
Howard Chu
62f7394f8c
Fix up lutil_passwd stuff to avoid struct berval definition
2003-03-12 23:07:09 +00:00
Howard Chu
8a8ae8bf85
Add comment to previous
2003-03-12 03:23:09 +00:00
Howard Chu
066e3310a9
ITS#2365 - preserve internal ber_tag as well as ber_ptr for rewinding.
2003-03-12 02:33:53 +00:00
Howard Chu
bbad1de8e1
Added lutil_passwd_init, _destroy, _add for dynamically adding passwd
...
schemes. Declarations in lutil.h require lutil.h never be included before
lber.h, always after.
2003-03-11 05:58:53 +00:00
Howard Chu
c20d1840ba
Blind fix, delete obsolete files cache.c, authpasswd.c
2003-03-07 21:10:02 +00:00
Howard Chu
0b96b6b6ad
Chasing a referral needs both the request and response mutexes.
...
Unlock and relock... (yuck)
2003-03-06 14:53:01 +00:00
Howard Chu
ec63a1f87f
Pass correct msgid to ldap_result
2003-03-06 14:50:39 +00:00
Howard Chu
8fc4f55d3a
Silence warnings in prev commit
2003-03-05 01:53:03 +00:00
Howard Chu
7e7db2578d
Added ldap_pvt_get_hname. Use instead of ldap_pvt_gethostbyaddr_a when
...
all you want is the hostname. Supports IPv6 addresses.
2003-03-05 01:35:39 +00:00
Howard Chu
cff5621814
Minor cleanup for sendmsg
2003-03-04 22:14:57 +00:00
Kurt Zeilenga
e20f94c9f9
fix initializer
2003-03-04 21:49:21 +00:00
Kurt Zeilenga
ef4e745c58
Fix initializer
2003-03-04 21:45:59 +00:00
Pierangelo Masarati
e24f55b29a
silence warning
2003-03-04 09:16:57 +00:00
Howard Chu
50ecec94eb
Fix ITS#2344, prev commit changed too much.
2003-03-03 23:44:22 +00:00
Howard Chu
3cc07977fa
Replace recursive get_stringbvr with iterative get_stringbvl to avoid
...
stack overrun when parsing large groups
2003-03-03 15:54:49 +00:00
Howard Chu
3b01c9a99e
Cleanup slapd-specific NT service support
2003-03-03 11:46:05 +00:00
Howard Chu
6e8adce9d9
Fix previous commit, eventlog path was wrong
2003-03-03 07:30:12 +00:00
Howard Chu
a0d397d056
Default is_NT_Service to no
2003-03-03 06:43:12 +00:00
Kurt Zeilenga
fe4f355328
Add acc_rights detection (needs testing)
2003-03-02 21:46:40 +00:00
Kurt Zeilenga
206b071e7f
Add check of <sys/uio.h> and include as needed for struct iovec.
2003-03-02 21:21:36 +00:00
Howard Chu
e820f2f5d3
Cleanup previous commit
2003-03-02 08:05:19 +00:00
Howard Chu
50280bcfed
Interoperability fix for sendmsg/recvmsg with access rights
2003-03-02 07:46:33 +00:00
Howard Chu
ec497cf529
Use fixed sizes for ber_get_next to avoid 64-bit hangs.
2003-03-02 04:02:39 +00:00
Kurt Zeilenga
81d2b2bb65
Don't send extra messages, will cause interoperability problems
...
with versions not built to receive these extra messages.
Likewise in reverse.
2003-03-01 19:47:04 +00:00
Howard Chu
215be5f443
Fix previous commit
2003-02-28 13:41:53 +00:00
Howard Chu
387a76934b
Fix ITS#2335, properly parse multiple CLDAP responses in a single datagram
...
for both RFC1798 and MS CLDAP.
2003-02-28 12:57:28 +00:00
Howard Chu
747265419d
Change "goto leave" to "goto exit" to avoid DEC namespace pollution
2003-02-22 01:49:55 +00:00
Kurt Zeilenga
4daeff0ef4
Add a few comments to the ITS#2325 fix
2003-02-21 19:39:09 +00:00
Kurt Zeilenga
c3a43e2c4f
Round 2
2003-02-21 19:27:54 +00:00
Kurt Zeilenga
182f6e20c3
Add a safety value
2003-02-21 18:51:27 +00:00
Kurt Zeilenga
eb161745a4
A little cleanup of last 2 commits
2003-02-21 18:42:15 +00:00
Kurt Zeilenga
ed91ab4cbe
Forgot to remove one prompts free
2003-02-21 18:41:05 +00:00
Kurt Zeilenga
9e984beded
ITS#2325 fix: properly freeing prompts->results
2003-02-21 18:39:26 +00:00
Kurt Zeilenga
bc0cc3272c
Whoops. (I'm reconsidering whether or not to accept the ITS#2325.)
2003-02-21 17:48:03 +00:00
Kurt Zeilenga
3fb4ae2abd
Revert last commit
2003-02-21 17:46:11 +00:00
Kurt Zeilenga
2c939f7196
Back out interact free() fixes. Will fix properly in next commit.
2003-02-21 17:11:46 +00:00
Howard Chu
fabbbafde9
Don't spawn threads based on ltp_pending_count, it doesn't get decremented
...
right away due to ltp_mutex still being held. Just see if all open threads
are active... Use cond_broadcast to signal all waiting threads. Make sure
to remove correct ctx from active list after the thread returns.
2003-02-17 12:10:41 +00:00
Howard Chu
7e1a566391
Use struct berval * instead of ** for newpasswd
2003-02-16 09:42:04 +00:00
Howard Chu
7fffc027b3
Fix ber_scanf args
2003-02-16 09:30:45 +00:00
Howard Chu
b4db079ac7
Fix ber_printf arguments
2003-02-16 08:37:19 +00:00
Howard Chu
bbdc869d7a
Set stack size for created threads
2003-02-14 23:52:38 +00:00
Kurt Zeilenga
8ca394496b
Only install readahead layer when connectionless as
...
streams as streams may block.
2003-02-14 23:32:30 +00:00
Howard Chu
8dac33b6c3
Fix previous commit
2003-02-14 10:27:39 +00:00
Howard Chu
1128bc63b7
Fix typo in peercred DN. Make it agree with actual name used by slapd
...
just to avoid confusion.
2003-02-13 23:11:30 +00:00
Howard Chu
844cc97928
More for re-entrant LDAP* handles. Works much better.
2003-02-13 23:02:31 +00:00
Howard Chu
a6b3a92cc5
Added ld_req_mutex and ld_res_mutex to protect ld_requests and ld_responses
...
queues for multithreaded access to LDAP*'s. Also used to protect writes and
reads of ld_sb, respectively. Appears to work...
2003-02-13 10:43:16 +00:00
Pierangelo Masarati
262d021ecf
minor cleanup
2003-02-11 09:23:28 +00:00
Kurt Zeilenga
22215a396c
Remove lint
2003-02-10 19:59:32 +00:00
Kurt Zeilenga
aa291a3492
We should be calling libtool --finish when install libraries
2003-02-09 23:10:29 +00:00
Kurt Zeilenga
99dbcc5d4c
Not yet implemented.
2003-02-09 08:21:10 +00:00
Kurt Zeilenga
4b3396f5fd
unifdef -DLDAP_NOCACHE
2003-02-09 07:42:18 +00:00
Kurt Zeilenga
c34e59be35
Consistently add cancel.c to makefiles
2003-02-09 01:54:41 +00:00
Kurt Zeilenga
48d47954a6
Rework #ifdef'ing of expermental controls to ease release engineering
...
using LDAP_DEVEL (to indicate experimental) to enable experimental features
(true for HEAD unless LDAP_REL_ENG is defined)
2003-02-08 21:53:05 +00:00
Pierangelo Masarati
1b13edfa54
I suggest the coder(s) of the cyrus stuff to check out the prompt stuff
2003-02-07 09:58:21 +00:00
Pierangelo Masarati
6c32533d02
according to sasl documentation, prompts is filled only if SASL_INTERACT is returned
2003-02-07 09:55:00 +00:00