Commit Graph

2161 Commits

Author SHA1 Message Date
Kurt Zeilenga
647df2b9cb Start of client-side LDAP tranactions (non-working)
and lots of cleanup (hence the commit)
(ldapmodify will need much more work for transactions)
2004-03-14 23:32:00 +00:00
Kurt Zeilenga
af9e1583a7 Add prototypes for grouping functions
Add ldap_find_control()
2004-03-14 00:57:44 +00:00
Howard Chu
27d0e14a12 Cleanup comments, copyright 2004-03-13 09:13:11 +00:00
Howard Chu
3810fa18d8 Added PasswordPolicy control 2004-03-12 21:22:32 +00:00
Pierangelo Masarati
daa29805ad define error codes for lutil_passwd* funcs 2004-03-12 20:07:41 +00:00
Pierangelo Masarati
1d1cd21814 allow '$' as action prefix instead of '%'; backward compatibility is preserved 2004-03-10 19:21:39 +00:00
Pierangelo Masarati
14f2ebe1d3 '=' must be escaped (and escapable by '\') according to RFC2253 and draft-ietf-ldapbis-dn-XX (ITS#3009; must have slipped thru some changes long time ago...) 2004-03-09 20:43:27 +00:00
Howard Chu
c558bd49bc ITS#2992 Windows fixes from Alexey Melnikov 2004-03-05 12:24:06 +00:00
Pierangelo Masarati
8aedfad3bb improve previous commit 2004-03-05 10:53:35 +00:00
Howard Chu
127cdb6432 ITS#2996 make sure T_SRV is defined for both places it is referenced 2004-03-05 10:35:21 +00:00
Pierangelo Masarati
df312502ac append trailing slash to AD canonical if DN is exactly a domain (ITS#3000) 2004-03-05 10:33:43 +00:00
Howard Chu
f3f78e8a1f ITS#2997 change MAXTHREADS to LDAP_MAXTHR 2004-03-04 15:35:29 +00:00
Howard Chu
6362951d6e ITS#2993 fix prev commit 2004-03-03 15:58:57 +00:00
Howard Chu
8bac3b4ff7 Pass result berval to lutil_passwd_hash instead of returning it. 2004-03-02 21:59:24 +00:00
Pierangelo Masarati
99c7f5318a really minor cleanup 2004-02-28 12:04:33 +00:00
Pierangelo Masarati
55ae6e4c91 intercept errors from maps 2004-02-28 12:04:06 +00:00
Howard Chu
9c6428b29e Deleted Kerberos and Netscape support 2004-02-26 03:10:53 +00:00
Howard Chu
6cedc94c63 ITS#2944, #2956 - revert maxbuf patch from ITS#2184
Still need to think about interoperability with other versions, vendors...
2004-02-24 16:25:39 +00:00
Howard Chu
75af144930 Fix mutex deadlock obtaining msgid 2004-02-13 02:47:53 +00:00
Howard Chu
f8d54b4e87 Fix prev EBCDIC commit 2004-02-04 22:53:17 +00:00
Howard Chu
9f3b0d60f9 Fix EBCDIC conversion for syslog() 2004-02-03 03:58:38 +00:00
Howard Chu
77dc2c479f ITS#2899 NS-MTA-MD5 password len is exactly 64 bytes. 2004-01-25 10:39:32 +00:00
Howard Chu
690f0111e9 ITS#2894 - search refs that are the immediate result of another search
ref are associated with the parent req instead of the original req, to
prevent infinite loops.
2004-01-25 10:30:10 +00:00
Howard Chu
02a6301f22 ITS#2926 from igor@ipass.net, slightly modified 2004-01-24 03:33:44 +00:00
Ralf Haferkamp
0b907a37c5 fixed format string 2004-01-19 16:56:15 +00:00
Kurt Zeilenga
1d933bf8ec Minor tweak to last commit 2004-01-17 19:11:20 +00:00
Howard Chu
54f38330ef define HFIXEDSZ if it's missing. Not all platforms have it. 2004-01-17 01:54:14 +00:00
Howard Chu
a6b1dfd1c8 Fix ldap_pvt_thread_self, GetCurrentThread() returns a constant, not a
unique value.
2004-01-15 09:59:11 +00:00
Kurt Zeilenga
c3674e92f9 Fix text == NULL bugs in last commit 2004-01-09 04:48:40 +00:00
Kurt Zeilenga
c8408d3c6a ITS#2906: report invalid userPassword schemes, clarify documentation 2004-01-09 04:11:57 +00:00
Pierangelo Masarati
fde8af364d remove (unnecessary) c++ style comments (ITS#2908) 2004-01-08 16:20:32 +00:00
Kurt Zeilenga
3c598e89fb Happy new year 2004-01-01 19:15:16 +00:00
Kurt Zeilenga
afb520a6e9 LDAP_SCOPE SUBORDINATE implementation 2003-12-30 01:34:05 +00:00
Kurt Zeilenga
2775c8d4a8 Update no-op control to return LDAP_NO_OPERATION instead of LDAP_SUCCESS.
(back-sql needs to be updated)
2003-12-29 23:31:39 +00:00
Kurt Zeilenga
fcad25da47 Misc code cleanup 2003-12-29 22:25:43 +00:00
Pierangelo Masarati
3994dc645a allow to set max passes per rule 2003-12-29 18:02:49 +00:00
Pierangelo Masarati
c860ba6a23 fix, clarify and document previous commit 2003-12-29 17:06:43 +00:00
Pierangelo Masarati
8b797f70e2 allow user-defined return codes from rewriteRules 2003-12-29 16:14:47 +00:00
Pierangelo Masarati
748e144a16 allow '%' escape; treat anything else as error 2003-12-29 15:10:59 +00:00
Pierangelo Masarati
e9314574aa allow memory ownership specification when using (session- wide) variables 2003-12-27 18:48:06 +00:00
Pierangelo Masarati
43f5b50319 fix memory ownership 2003-12-27 17:52:07 +00:00
Kurt Zeilenga
4590651cf9 Revert #if 0 2003-12-21 08:25:55 +00:00
Kurt Zeilenga
46053f84a6 Clean up LDAP Sync result codes 2003-12-17 21:09:28 +00:00
Kurt Zeilenga
271fff13de Sync with HEAD 2003-12-17 17:55:27 +00:00
Kurt Zeilenga
4d29df5bd1 Add LDAP_DEPRECATED macro
Need to remove use of deprecated functions.
2003-12-14 02:47:42 +00:00
Howard Chu
39eb55b5f4 ITS#2869 fix decode length checks again 2003-12-11 13:24:06 +00:00
Kurt Zeilenga
430b67aa60 Change API error codes to negative numbers so as not to clash
with newly assigned protocol result codes.
2003-12-11 05:26:32 +00:00
Kurt Zeilenga
14b170ce20 More blind s/unsigned long/ac_uint4/ changes 2003-12-09 21:57:34 +00:00
Kurt Zeilenga
96cb99aa54 s/unsigned long/ac_uint4/ 2003-12-08 18:08:29 +00:00
Kurt Zeilenga
fbba83b20f notices and acknowledgements 2003-12-08 17:41:40 +00:00
Howard Chu
7fedf13e02 ITS#2494 sort entries ahead of everything else 2003-12-07 11:15:22 +00:00
Kurt Zeilenga
4383fcd566 Fix liblunicode issues on systems where sizeof(long) > 4.
Code still lacks portability (alignment/padding, required ac_uint2/4 types)
Should resolve ITS#2632, ITS#2660, ITS#2784
2003-12-07 08:29:07 +00:00
Kurt Zeilenga
c5f83acf6e cleanup 2003-12-07 05:12:36 +00:00
Howard Chu
f01c60dd66 ITS#2538 plug leak 2003-12-07 04:48:50 +00:00
Luke Howard
98481ec449 Use gmtime_r() if HAVE_GMTIME_R is defined (need to add autoconf check) 2003-12-06 05:48:29 +00:00
Kurt Zeilenga
6264225bb9 zap libldbm 2003-12-04 23:42:05 +00:00
Howard Chu
3152932e96 Moved ldbm into back-ldbm. No more libldbm. 2003-12-04 22:38:54 +00:00
Howard Chu
dc19332bb9 Don't init SASL library until we actually want a SASL session 2003-12-03 01:59:33 +00:00
Kurt Zeilenga
a379dd4faf Misc cleanup 2003-11-30 01:07:47 +00:00
Hallvard Furuseth
51f1b8ccd7 Avoid /* inside comments. 2003-11-29 17:29:44 +00:00
Pierangelo Masarati
a0e158c7a3 clarify comments 2003-11-29 11:10:16 +00:00
Pierangelo Masarati
044d46aa29 naming cleanup && more leaks fixed 2003-11-29 11:09:52 +00:00
Kurt Zeilenga
f9ba11f543 Add acknowledgements 2003-11-27 00:33:55 +00:00
Kurt Zeilenga
85013a9d98 acknowledgements and notices 2003-11-26 22:51:15 +00:00
Kurt Zeilenga
74c7e200b3 From liblavl 2003-11-26 22:32:36 +00:00
Jong Hyuk Choi
5d411fd963 Another patch for the multi syncrepl thread support 2003-11-26 20:40:16 +00:00
Kurt Zeilenga
f7f171ed40 Add ACKNOWLEDGEMENT and fix initial copyright date 2003-11-26 07:53:40 +00:00
Kurt Zeilenga
159de0f135 Updated notices and acknowledgements 2003-11-26 07:16:36 +00:00
Kurt Zeilenga
6ca65d4912 Update notices and ackknowledgements 2003-11-26 05:42:11 +00:00
Kurt Zeilenga
2c21fdcecb move AVL routines into -llutil
update misc notices
2003-11-26 04:17:25 +00:00
Kurt Zeilenga
e3a4c4ec9c Notice/Acknowledge updates 2003-11-26 02:58:56 +00:00
Kurt Zeilenga
6c0f8a7cc3 Move LDIF routines liblutil 2003-11-25 23:19:47 +00:00
Kurt Zeilenga
327880b984 Notice updates 2003-11-25 23:17:08 +00:00
Pierangelo Masarati
88e8caf3e1 fix tricky signed/unsigned comparison (ITS#2835) 2003-11-22 16:06:38 +00:00
Kurt Zeilenga
aba062ee36 (re)Add BIND4 support for NetBSD 2003-11-21 18:56:52 +00:00
Kurt Zeilenga
72cfae7264 Update csn format. Format now more inconsistent from the inconsistent
LDUP specifications.  Once LDUP agrees on the format (let's hope they
choose GSER), this will need to be updated.
2003-11-18 22:10:12 +00:00
Pierangelo Masarati
f4e0075154 more memleaks fixed; some cleanup 2003-11-15 10:02:44 +00:00
Pierangelo Masarati
cddeab8513 more cleanup 2003-11-14 20:00:20 +00:00
Pierangelo Masarati
a3deda8026 fix a number of mem leaks; add destroy code; HEADS-UP: API change in rewrite_info_delete() 2003-11-14 18:39:18 +00:00
Howard Chu
fb493f5f3a ITS#2820 fix pthread_create for Draft 4 2003-11-13 02:41:01 +00:00
Jong Hyuk Choi
0a7a97d294 Copyright heading 2003-11-12 00:25:48 +00:00
Howard Chu
838c2d774e Fix GSSAPI connections to localhost 2003-11-10 20:58:29 +00:00
Hallvard Furuseth
e0999334d2 Ignore comments surrounded by empty lines in ldif_read_record().
Slapadd treated these as separate, incorrect, entries.
2003-10-31 19:13:20 +00:00
Stig Venaas
6c08d96597 use AI_ADDRCONFIG if possible to not lookup AAAA when no IPv6 addresses are configured 2003-10-29 14:49:35 +00:00
Howard Chu
45c42630db Add "defer" arg to ldap_pvt_runqueue_resched to suspend scheduling of
a task in the queue without removing it.
2003-10-25 21:13:08 +00:00
Howard Chu
c199d41b18 Unlock mutexes before deleting them 2003-10-22 21:40:52 +00:00
Howard Chu
66368d28f4 Make space for trailing NUL 2003-10-18 21:59:53 +00:00
Luke Howard
bb6f9f4c53 Back out previous commit - files apart from test.c 2003-10-18 16:01:16 +00:00
Luke Howard
32a9ad1be8 ITS#2777 - fix previous commit 2003-10-18 15:59:58 +00:00
Luke Howard
2ce26dc96e Possible fix for ITS#2777 - getline() conflict when _GNU_SOURCE is
defined. I simply renamed it to get_line(). (Probably this will
conflict with something else...)
2003-10-18 15:56:32 +00:00
Kurt Zeilenga
3a8b3d9c1a Fix SLAPD_NS_MTA_MD5 compile bug (ITS#2773) 2003-10-17 04:40:16 +00:00
Kurt Zeilenga
9184c3a18c Fix linking --with-cyrus-sasl and --without-tls 2003-10-17 04:27:32 +00:00
Howard Chu
11453007c2 ITS#2770 - delete bogus maxbuf checks on sasl_read 2003-10-16 18:56:02 +00:00
Kurt Zeilenga
3e6a44ee47 Don't use compat features unnecessarily. 2003-10-15 03:39:05 +00:00
Kurt Zeilenga
e8c4add1a3 Use macro instead of sizeof
-       p += sizeof(HEADER);
+       p += NS_HFIXEDSZ;
2003-10-15 03:30:15 +00:00
Kurt Zeilenga
6aff66cf67 Apply patch suggested in ITS#2737 to address underallocation bug.
This could should be reworked to avoid multiple reallocs (likely
by overallocating).
2003-10-12 23:31:00 +00:00
Jong Hyuk Choi
85ff0377d2 runqueue locking fix (ITS#2746) 2003-10-12 09:13:04 +00:00
Kurt Zeilenga
4f003dbdaf mv ldap_int_get_controls to ldap_pvt_get_controls 2003-10-12 08:14:28 +00:00
Howard Chu
ede6ea1f64 Fix typo in LTFINISH invcation 2003-10-01 02:26:41 +00:00
Hallvard Furuseth
bdac96f929 #include <ac/unistd.h>, to get geteuid() and getegid(). 2003-09-29 14:04:48 +00:00
Howard Chu
cc6cfd30cc Include <ac/socket.h> so Windows can pull in struct timeval def 2003-09-27 06:48:15 +00:00
Jong Hyuk Choi
8693f3361d didn't compile without cyrus-sasl 2003-09-25 01:00:34 +00:00
Howard Chu
38a406c8ab ITS#2717, use default SASL_MECH if none was provided.
Note that the mech stored in the void *defaults structure is useless
because we can't look inside the structure, and the mech list is needed
as input to the SASL library, before any callbacks are called. It seems
the mech doesn't belong in the *defaults struct, and/or it should be
visible and not opaque.
2003-09-22 23:50:33 +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
Jong Hyuk Choi
090ac0a772 unifdef LDAP_SYNC and LDAP_SYNCREPL 2003-08-27 22:16:04 +00:00
Kurt Zeilenga
990346d0c8 ITS#2566: apply patch provided by Norbert to fix lmhash problems
- chk_lanman did not free result from hash_lanman
- copied code to generate hash from hash_lanman to chk_lanman,
  this skips prepending "{LANMAN}"
- downcase stored password hash to ensure hex characters [a-f]
  have the same case
2003-08-09 19:18:28 +00:00
Kurt Zeilenga
863a076919 ITS#2662: NS_MTA-MD5 hash check fix 2003-08-09 18:47:16 +00:00
Kurt Zeilenga
da3caafa7a comment cleanup 2003-07-30 11:20:56 +00:00
Kurt Zeilenga
7c9a2f46b9 preliminary modify/increment client side code 2003-07-30 10:21:57 +00:00
Kurt Zeilenga
cc637cd53c Fix lock release bug
Fix logging messages (thanks Kent)
2003-07-28 20:25:44 +00:00
Kurt Zeilenga
db097047af code cleanup 2003-07-08 03:46:20 +00:00
Kurt Zeilenga
d5e55877dc Cleanup 2003-07-07 05:50:20 +00:00
Kurt Zeilenga
ca6820c42e Add Internet Society copyright notices 2003-07-07 05:14:03 +00:00
Kurt Zeilenga
973ffd6f98 Fix RFC reference 2003-07-07 05:01:31 +00:00
Hallvard Furuseth
ca2a43b7b2 Handle !HAVE_LONG_LONG 2003-06-28 19:55:30 +00:00
Hallvard Furuseth
a231098e28 Fix typo in comment 2003-06-27 19:12:07 +00:00
Jong Hyuk Choi
262f8bf11f LCUP primitive routines removed 2003-06-27 17:39:48 +00:00
Jong Hyuk Choi
881718ba5b fix a comment 2003-06-23 14:10:18 +00:00
Kurt Zeilenga
4bf037cfaa Add ldapAssertionFailed result code 2003-06-10 02:24:26 +00:00
Hallvard Furuseth
42de322f06 Make all debug output macros conditional on defined(LDAP_DEBUG). 2003-06-06 13:56:18 +00:00
Hallvard Furuseth
0f29f0af96 #define *_OPT_ON &ber_pvt_opt_on. The old (void*)1 definition could be == NULL. 2003-06-06 13:50:01 +00:00
Hallvard Furuseth
4526d68874 #include "lber_pvt.h" 2003-06-03 17:57:33 +00:00
Hallvard Furuseth
40b212393a #include <lber_pvt.h>, to get ber_memalloc_x() & co. 2003-06-03 17:53:33 +00:00
Hallvard Furuseth
1fa40181d9 Cast unsigned char *p to char *. 2003-06-03 17:51:38 +00:00
Kurt Zeilenga
15fa161b8f ITS#2562: add missing arg to hash_lanman 2003-06-01 23:32:47 +00:00
Kurt Zeilenga
e83b55ebde intermediate response fix 2003-05-31 05:48:16 +00:00
Kurt Zeilenga
2259ece543 finish intermediate/partial merge 2003-05-31 05:08:25 +00:00
Kurt Zeilenga
12304f64e5 Merge partial and intermediate responses 2003-05-31 05:01:49 +00:00
Kurt Zeilenga
5c6573fc31 ITS#2558 fix 2003-05-31 03:37:18 +00:00
Howard Chu
a3b73b50ce Fix includes for EBCDIC 2003-05-29 10:02:10 +00:00
Howard Chu
62cc5d2f39 Fix lutil_localtime for EBCDIC 2003-05-29 06:15:03 +00:00
Howard Chu
5d0ba372e5 Fix LBER_OPT_MEMCTX behavior 2003-05-28 22:17:08 +00:00
Hallvard Furuseth
aed036f0c3 Cast away const from AC_GAI_STRERROR() return value. 2003-05-25 20:50:26 +00:00
Luke Howard
0af6508632 s/forms/form in PADL copyright 2003-05-25 04:48:49 +00:00
Kurt Zeilenga
7fb3ca897a UCD terms 2003-05-25 04:19:09 +00:00
Kurt Zeilenga
46c9d6dbb8 Remove $OpenLDAP$ from installed configuration file 2003-05-25 04:09:37 +00:00
Kurt Zeilenga
e8144158f3 Add/Update various copyright notices 2003-05-25 03:31:21 +00:00
Luke Howard
4cee2467be s/forms/form in PADL copyright 2003-05-25 02:59:09 +00:00
Luke Howard
89f7ffc9de Clarify copyright 2003-05-24 09:30:48 +00:00
Howard Chu
d449772875 ITS#2548 must dup sasl_errdetail msgs 2003-05-24 01:05:11 +00:00
Howard Chu
8def82e94d EBCDIC case for env open 2003-05-22 23:22:22 +00:00
Howard Chu
c6d77698d6 Input files are text, not binary 2003-05-22 23:19:56 +00:00
Kurt Zeilenga
b166736dbf Don't use default binddn when password is empty 2003-05-22 16:21:14 +00:00
Howard Chu
13aa48e47a Fix reading multibyte lengths 2003-05-22 06:24:23 +00:00
Kurt Zeilenga
71e0359f37 Back out last change... I forget ber_get_next eats a sequence 2003-05-22 05:41:13 +00:00
Kurt Zeilenga
6035ecfe7b Reverse unintended commit 2003-05-22 05:33:04 +00:00
Kurt Zeilenga
df1381fa38 cleanup 2003-05-22 05:32:06 +00:00
Kurt Zeilenga
a08e72a9e8 Remove wrapping sequence to align with dtest 2003-05-22 04:45:50 +00:00
Kurt Zeilenga
6d36ba9d9f Add trickle code to test ber_get_next.
Use etest {...} | dtest {...} to test.
2003-05-22 04:37:44 +00:00
Kurt Zeilenga
bfa6808c48 Fix dtest ber_get_next() usage 2003-05-22 03:35:36 +00:00
Kurt Zeilenga
65bfb44e8e Error when user tries to mix command line and default URI components.
Remove TLS hard as an ldap.conf option as being not a over-writable
default.  The appropriate way to request ldaps:// is use an ldaps://
URI.  A rewrite to only sent hard for the default URIs but ignored
if the application provides it own URI would be acceptable.
2003-05-22 00:13:00 +00:00
Jong Hyuk Choi
4192c4aaaa select loop changes for persistent threads 2003-05-20 23:52:11 +00:00
Howard Chu
3d9fd17678 ber_get_next - set errno to 0 before calling ber_int_sb_read(), otherwise
an EOF will return with the previously set errno value.
2003-05-20 04:08:35 +00:00
Jong Hyuk Choi
4f58efc4d1 - change in message to modlist conversion 2003-05-20 01:45:12 +00:00
Howard Chu
3fc96a24ee More ITS#2490 - fix retries for multi-byte lengths 2003-05-19 12:14:15 +00:00
Howard Chu
5eb0ec070c ITS#2490 - more retry checks 2003-05-19 10:37:09 +00:00
Howard Chu
9757665aed ITS#2490 - allow retry for incomplete reads of BER tag & len 2003-05-19 10:33:18 +00:00
Pierangelo Masarati
0b5691f122 cleanup previous commit; update header 2003-05-15 01:18:45 +00:00
Pierangelo Masarati
c7ce39c788 add local generalized time generator 2003-05-15 01:03:38 +00:00
Jong Hyuk Choi
8340afd736 remove ch_malloc/ch_free 2003-05-14 21:30:25 +00:00
Howard Chu
8e8fbe0908 Fix ldap_get_attribute_ber to get values in-place.
Revert previous memleak fix in ldapsearch.c
2003-05-14 13:16:56 +00:00
Jong Hyuk Choi
35d1bd68b9 runqueue restructuring 2003-05-07 23:52:08 +00:00
Jong Hyuk Choi
580ae073e1 runqueue update 2003-05-07 22:29:26 +00:00
Jong Hyuk Choi
45776bff04 a runqueue for periodic thread execution (for syncrepl) 2003-05-07 02:06:01 +00:00
Kurt Zeilenga
2ed0725491 Fix typo in last commit 2003-05-06 15:00:58 +00:00
Kurt Zeilenga
ecb17fc30e ITS#2486: plug leak 2003-05-05 17:35:59 +00:00
Kurt Zeilenga
5d2b493ff3 Blind fix for NGROUPS Tru64 5.1 bug (ITS#2485) 2003-05-05 17:29:26 +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
a54549f1d5 Use pthread_equal to compare thread IDs 2003-05-02 12:23:31 +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
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