Howard Chu
838c2d774e
Fix GSSAPI connections to localhost
2003-11-10 20:58:29 +00:00
Howard Chu
11453007c2
ITS#2770 - delete bogus maxbuf checks on sasl_read
2003-10-16 18:56:02 +00:00
Hallvard Furuseth
bdac96f929
#include <ac/unistd.h>, to get geteuid() and getegid().
2003-09-29 14:04:48 +00:00
Howard Chu
8f3d3cf3c9
Revert rev 1.90 ITS#2484 patch; Cyrus 1.5 is no longer supported.
2003-09-20 00:33:42 +00:00
Howard Chu
1881ae872f
ITS#2729 fix typos
2003-09-19 00:49:33 +00:00
Howard Chu
6f632af413
ITS#2484, set sasl_maxbuf to SASL_MAX_BUFF_SIZE if it was negotiated
...
as zero.
2003-09-14 05:19:45 +00:00
Howard Chu
10811b6f51
Clarify/standardize library version mismatch error messages
2003-09-12 00:54:21 +00:00
Howard Chu
d449772875
ITS#2548 must dup sasl_errdetail msgs
2003-05-24 01:05:11 +00:00
Hallvard Furuseth
5ee9264465
Fix assignment of <char/int>* to unsigned <char/int>* and vice versa.
2003-05-02 13:29:28 +00:00
Howard Chu
0e8b176d1f
Fix prev commit
2003-05-01 09:50:40 +00:00
Howard Chu
46e2b97757
ITS#2424 use two SASL contexts per session to conform to RFC 2222
2003-05-01 04:11:57 +00:00
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
2ee7488d0b
ITS#2423 - make the lib that allocates SASL prompt results responsible
...
for freeing them.
2003-04-06 00:47: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
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
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
Kurt Zeilenga
6939c53170
Happy new year
2003-01-03 20:20:47 +00:00
Howard Chu
464292b50c
Remove unneeded sasl_ssf param from ldap_int_sasl_open(),
...
it's set by ldap_int_sasl_external().
2002-12-18 03:09:52 +00:00
Howard Chu
1702d408bf
ITS#2184 maxbuf tweaks from Larry Greenfield @ CMU
2002-11-27 03:51:46 +00:00
Howard Chu
3099d89d9e
Don't use sasl_set_alloc on Cyrus 2, it manages all of its memory
...
internally and we don't want to get in the way.
2002-09-02 22:25:26 +00:00
Howard Chu
d11b134709
Fix large SASL reads. Use EAGAIN instead of EWOULDBLOCK (was right the
...
first time after all. see read(2) and write(2)...)
2002-08-30 10:11:54 +00:00
Pierangelo Masarati
864f05497e
allow different solutions to debug sasl shutdown
2002-08-29 17:45:12 +00:00
Pierangelo Masarati
c2efb8788b
when shutting down a server with open connections (back-{ldap,meta}),
...
the backend attempts a ldap_unbind() that results in calling
ldap_pvt_sasl_mutex_lock() with a NULL argument, causing a SIGSEGV.
I added a few assert() to catch this (I wonder if this might
be related to ITS#1982 "kill -INT corrupts database").
2002-08-29 16:03:38 +00:00
Howard Chu
1dd1c375bb
Fix previous commit - use EWOULDBLOCK instead of EAGAIN
2002-08-29 13:38:36 +00:00
Howard Chu
010dbff2cc
Fix ITS#1983, in sb_sasl_write, set errno = EAGAIN to tell upper layers to
...
retry partial writes
2002-08-29 10:12:35 +00:00
Howard Chu
5ec4ef6e59
Added no-op for SASL_VERSION_MAJOR < 2
2002-08-28 08:35:38 +00:00
Howard Chu
3cb7a09eb0
Added check for Cyrus SASL sasl_version()
2002-08-28 07:12:22 +00:00
Julius Enarusai
6107ba67d2
Coverted LDAP_LOG macro to use subsystem ID int values instead of string values
2002-07-11 20:33:24 +00:00
Howard Chu
07ffaeaac8
ITS#1924 use GENERAL_NAMES_free instead of ext_free.
2002-07-05 21:59:02 +00:00
Howard Chu
8101798791
Better SASL_MAXBUF fix
2002-06-07 03:40:16 +00:00
Howard Chu
353f627aa4
Eliminate SASL client session_callbacks. Since proc was always NULL they
...
never did anything anyway.
2002-06-06 01:44:38 +00:00
Howard Chu
2ca4b0ebfc
ITS#1806, Cyrus 1 doesn't give back our callbacks pointer, must stash it
...
ourselves.
2002-05-06 23:56:35 +00:00
Howard Chu
ae3a80eb09
Fix in 1.50 applies to Cyrus 1 as well as Cyrus 2.
2002-05-05 19:15:29 +00:00
Howard Chu
6c1a786d6c
Fix previous commit, wrong if condition
2002-05-03 13:07:42 +00:00
Howard Chu
ed871b997c
Break up large SASL writes into units of SASL maxoutbuf size.
2002-05-03 13:04:55 +00:00
Howard Chu
931c4eb35f
For Cyrus 2, cannot free session_callbacks in ldap_int_sasl_open, must
...
wait until ldap_int_sasl_close because SASL doesn't copy our structure,
it uses it directly.
2002-05-03 12:10:47 +00:00
Howard Chu
315ac06912
Fix warnings from sasl_errdetail
2002-04-18 12:20:55 +00:00
Howard Chu
98a416b584
Additional error reporting for Cyrus SASL 2. Attempt to get SASL-EXTERNAL
...
working ifor Cyrus 2. (Both GSSAPI and EXTERNAL are broken at the moment.)
2002-04-18 00:48:36 +00:00
Kurt Zeilenga
709ce4fa6c
Re: Patch: ctype functions require 'unsigned char' args (ITS#1678)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
Here are fixes for more places where the argument to ctype.h functions
should be in the range of `unsigned char'.
Explanation of the last patch (to schema_init.c:bvcasechr()):
TOLOWER() and TOUPPER() return values in the range of `unsigned char',
but bvcasechr() then compares those values with a plain `char'. So I
convert the return values from TOLOWER()/TOUPPER() to `char' first.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-15 20:42:42 +00:00
Julius Enarusai
3ab1ea7300
Added LDAP_LOG messages
2002-03-27 19:12:18 +00:00
Kurt Zeilenga
defed68e82
Fix typo
2002-02-11 18:18:34 +00:00