Howard Chu
43167d0fa6
Fix ITS#1774, BDB keys need ulen and flags to be initialized because BDB
...
tries to retrieve both the key and the data.
2002-04-25 05:16:15 +00:00
Howard Chu
c7262c7599
Added rebind-as-user option; saves bind credentials and sets a rebind_proc
...
to allow chasing referrals using the same user's credentials.
2002-04-25 02:05:34 +00:00
Kurt Zeilenga
3e3911247b
Remove lint.
2002-04-22 23:03:33 +00:00
Kurt Zeilenga
0ca5d06f77
Re: PRIVATE: Patch: Passwords (ITS#1740)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
2002-04-22 17:31:16 +00:00
Jong Hyuk Choi
60b1ee1ba9
Patch for ITS# 1643
2002-04-19 21:41:32 +00:00
Howard Chu
8c917b8d68
Put dnX509 normalizers behind #ifdef HAVE_TLS
2002-04-19 01:25:15 +00:00
Kurt Zeilenga
96eda541e9
Blind commit:
...
Re: Untested patch: back-tcl used wrong types (ITS#1719)
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
> I turned it into an automatic variable.
...and used a variable-length array. That's a gcc extension, it is not
in ANSI C89. (It is in C99 though.) You seem to be compiling without
-pedantic:-) Anyway, here is a patch to turn it back into ch_malloc(),
plus some README fixes
2002-04-18 19:28:26 +00:00
Howard Chu
0aa7c83a0e
Fix memory leak in previous commit
2002-04-18 15:55:05 +00:00
Howard Chu
8a5423ea8d
deleted sasl_external_x509dn_convert; X509 DNs are always converted to
...
normalized LDAP DNs now.
Changed dnDCEnormalize to dnX509normalize, added dnX509peerNormalize,
based on new ldap_X509dn2bv() etc.
2002-04-18 12:26:36 +00:00
Howard Chu
80f67ef11e
Fix slap_bv2ad initializing with wrong bv_len
2002-04-18 12:21:33 +00:00
Howard Chu
b3c7c9e3ce
Delete more unused code, no need to fetch REALM in slap_sasl_bind
2002-04-17 19:47:34 +00:00
Kurt Zeilenga
7ee5d2612b
Fix ssf declaration
2002-04-17 17:56:30 +00:00
Kurt Zeilenga
84f4acf124
NEW_LOGGING bugs (ITS#1730)
...
Here a patch for another: A spurious `"' in back-ldbm.
From Hallvard.
2002-04-17 17:54:52 +00:00
Howard Chu
1dea5905c6
More SASL DN simplification. No more "dn:" prefix used anywhere internally.
2002-04-17 07:56:46 +00:00
Julius Enarusai
98f3c3d43b
Added LDAP_LOG Messages
2002-04-16 20:11:09 +00:00
Jong Hyuk Choi
b7f0983efa
Hallvard B. Furuseth's patch for cache lock and mutex
2002-04-16 14:03:13 +00:00
Howard Chu
1bbd51da77
ITS#1712, rewritten dn_openssl2ldap(). Added dnDCEnormalize(), used by
...
dn_openssl2ldap() and sasl_external_x509dn_convert. Fixed realm handling
for foreign Kerberos realms embedded in usernames.
2002-04-16 08:46:25 +00:00
Luke Howard
03679b7ce5
correct sponsor name
2002-04-16 05:36:22 +00:00
Howard Chu
ababc07479
Add "nentries" to send_search_result() Statslog message. Suggested
...
by ITS#1360.
2002-04-16 04:58:41 +00:00
Luke Howard
dda2e4cee0
ITS#1646
2002-04-16 04:25:44 +00:00
Luke Howard
064319ae4e
ITS#1659 - forgot to define n_a
2002-04-16 04:04:40 +00:00
Luke Howard
c517c23853
ITS#1659: s/na/n_a/
2002-04-16 03:59:22 +00:00
Luke Howard
a045fc60a5
ITS#1729, #1659
2002-04-16 03:58:21 +00:00
Luke Howard
d2585491a0
ITS#1729
2002-04-16 03:56:23 +00:00
Luke Howard
9db008f08f
ITS#1676
2002-04-16 03:51:51 +00:00
Luke Howard
7127e0887c
ITS#1659
2002-04-16 03:47:39 +00:00
Kurt Zeilenga
8354160f8b
Patch: aclparse.c bugs (ITS#1752)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
Bug fixes:
- acl_regex_normalized_dn(pattern):
* used pattern->bv_len even though it claimed not to,
* would walk past the end of strings that ended (incorrectly)
with a single '\'.
- style=regex checked for "^.*$$" twice but not for "^.*$".
- the code did not notice if dnNormalize2() failed, and would
(at least in one case) treat a bad DN as '*'.
Some cleanup:
- changed regtest() to return void, since the return value was unused.
- changed acl_regex_normalized_dn() to take a string input argument
instead of a half-filled berval, it looks saner that way.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-15 20:44:05 +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
Kurt Zeilenga
02e8527248
Patch: Escape character troubles (ITS#1753)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
maildap could address buf[-1] if len was < 2.
REWRITE_SUBMATCH_ESCAPE is '%', not '\'.
librewrite and saslautz could walk past the end of a string which
ended with an escape character.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-15 18:29:39 +00:00
Pierangelo Masarati
a9b521cef4
add '-t' switch for clean config check; cleanup usage() messages
2002-04-15 17:32:08 +00:00
Jong Hyuk Choi
efa7b93b23
concurrent cache access: separation of cache lock (reader/writer) and lru lock (mutex)
2002-04-15 16:40:04 +00:00
Howard Chu
66602e8faa
Fix name canonicalization and authorization for Cyrus SASL 2.x
2002-04-14 04:27:46 +00:00
Howard Chu
a73ffbe3cd
Previous commit included undesired changes.
2002-04-14 04:15:17 +00:00
Howard Chu
9b958147f8
Fix previous commit, == instead of !=
2002-04-13 17:27:02 +00:00
Howard Chu
bf6fccd7bb
ITS#1740
2002-04-13 10:56:16 +00:00
Jong Hyuk Choi
737aee17b0
fix: changing bdb_cache_return_entry_w() to bdb_cache_return_entry_r()
2002-04-11 23:17:36 +00:00
Howard Chu
17433a8412
Fix ITS#1722 - IPv4 addresses also need to be massaged for sasl_server_new.
2002-04-11 10:04:29 +00:00
Howard Chu
1dcbb23f5b
ITS#1727 return allids on unknown filters to allow extended filtering
2002-04-11 08:59:30 +00:00
Howard Chu
170de200f8
ITS#1734 return error on bad config file
2002-04-11 08:51:35 +00:00
Howard Chu
d4465e376f
ITS#1732 signed/unsigned integers
2002-04-11 08:46:34 +00:00
Howard Chu
98df4006b1
ITS#1733 eliminate o_abandonmutex
2002-04-11 08:08:42 +00:00
Howard Chu
efecf4e121
ITS#1733 eliminate o_abandonmutex
2002-04-11 08:03:40 +00:00
Howard Chu
0825e12b42
ITS#1570 - avoid overflowing array when dups are present in IDLs
2002-04-11 08:01:56 +00:00
Howard Chu
5c4a924f81
ITS#1735 unused conn.c_uthc_backend, include ldap_pvt.h
2002-04-11 07:42:57 +00:00
Howard Chu
98e3499b05
ITS#1736 slapd_shutdown can be unsigned
2002-04-11 07:28:30 +00:00
Julius Enarusai
1649a3f832
Added/Updated LDAP_LOG messages
2002-04-10 22:17:09 +00:00
Julius Enarusai
0922553da2
Added/Updated LDAP_LOG messages
2002-04-10 22:10:22 +00:00
Kurt Zeilenga
63c9dd8280
SLAP_OP_LAST dependent code needs to be behind SLAP_MONITOR
2002-04-09 23:54:45 +00:00
Howard Chu
f516e34918
ITS#1681 - detect bad filter in slap_parseURI() - from Hallvard Furuseth
2002-04-09 10:41:15 +00:00
Pierangelo Masarati
c22f10f4ca
don't count operations per request if back-monitor is not built
2002-04-08 19:13:13 +00:00
Pierangelo Masarati
b772987712
... and log initiated/completed operations divided per request
2002-04-08 18:41:47 +00:00
Pierangelo Masarati
51e33154b3
count initiated/completed operations divided per request
2002-04-08 18:41:15 +00:00
Pierangelo Masarati
4a2b9b2195
ITS#1730
2002-04-08 18:39:23 +00:00
Pierangelo Masarati
4b9fa66188
use BVC() macro (changed in BER_BVC) to initialize constant bervals
2002-04-08 18:37:37 +00:00
Pierangelo Masarati
4ca97f4118
uniform temporary buf sizes; use automatic buffers instead of heap
2002-04-08 11:09:34 +00:00
Pierangelo Masarati
4a8ab5dbf2
Mostly based on patches provided by Hallvard B. Furuseth
...
ITS#1677 - cast away const warnings
ITS#1678 - unsigned char args to ctype funcs
ITS#1682 - don't redefine ldap_debug
ITS#1683 - uninitialized vars
ITS#1703 - ldo_debug initialization
ITS#1705 - unsigned testing
ITS#1706 - socklen_t args
ITS#1719 - back-tcl update (other cleanups/fixes/improvements; yet untested)
ITS#1724 - integerNormalize/integerFilter/integerIndexer bugs
ITS#1725 - libdes not required
Implement back-null (/dev/null style backend)
Cleanup some misc warnings ("%lu" format, unused/uninitialized vars,
ambiguous operator precedence)
Kurt, please regenerate configure
2002-04-08 09:43:22 +00:00
Julius Enarusai
f57d33f636
Added LDAP_LOG messages
2002-04-05 18:38:59 +00:00
Howard Chu
ca4cbc4a49
ITS#1709 j was logged uninitialized
2002-04-05 06:55:25 +00:00
Howard Chu
11bbd076a8
ITS#1711 txn was uninitialized
2002-04-05 06:54:39 +00:00
Howard Chu
5c70106657
ITS#1708 ldap_pvt_tls_sb_ctx() et al
2002-04-05 06:48:03 +00:00
Howard Chu
70d4ef9a85
ITS#1714 dn->bv_val malloc len+1
2002-04-05 06:34:15 +00:00
Howard Chu
ba5a584729
ITS#1716 is_entry_subentr/ies/y/
2002-04-05 06:28:52 +00:00
Howard Chu
380806eebe
ITS#1726, always use bdb_db_hash().
2002-04-05 05:59:04 +00:00
Howard Chu
1353ded30c
Change slap_parseURI to use ldap_parse_url. Other struct berval changes.
2002-04-05 05:37:01 +00:00
Stig Venaas
891f987928
Changed to use lower case for case folding
2002-04-04 12:50:46 +00:00
Pierangelo Masarati
dd4f10de57
use ber_bvcmp where appropriate
2002-04-03 15:43:41 +00:00
Pierangelo Masarati
82d1c77722
missing description in current cunnections number
2002-04-03 15:42:54 +00:00
Pierangelo Masarati
440637dde7
various acl improvements/cleanups/speedups (need to be documented, though)
2002-04-03 15:42:19 +00:00
Pierangelo Masarati
f4dba925ff
add a switch that enables/disables reverse lookups if configured with rlookups
2002-04-03 15:40:49 +00:00
Kurt Zeilenga
b0b8546f05
Patch: More format bugs (ITS#1702)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
2002-04-02 18:56:26 +00:00
Kurt Zeilenga
26b99bc35d
ITS#1701. Fix ber_scanf() return tag handling.
...
Based upon patch submitted by Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>.
2002-04-02 18:40:04 +00:00
Pierangelo Masarati
32c2995ecc
fix last part of ITS#1710 (commented code, though)
2002-04-02 14:38:57 +00:00
Pierangelo Masarati
068c73b01f
appropriately detect the required conn
2002-04-02 14:25:01 +00:00
Pierangelo Masarati
6c589f2552
don't loop any more if connid is found :)
2002-04-02 13:44:30 +00:00
Pierangelo Masarati
090ef02589
partial fulfilment of ITS#1710
2002-04-02 12:27:06 +00:00
Pierangelo Masarati
49ab777bbb
minor improvement
2002-04-02 11:51:05 +00:00
Pierangelo Masarati
7b2f5f0da7
use ber_bvcmp() whenever possible
2002-04-02 11:41:56 +00:00
Pierangelo Masarati
e847d6fdf2
fix ITS#1704
2002-04-02 11:16:00 +00:00
Pierangelo Masarati
ab6ad34692
the logic of this check was completely reversed; in case '*' is used, on't test the regula expression
2002-04-02 08:18:30 +00:00
Pierangelo Masarati
1658aa0893
fix counting twice the substitution length (caused berval to have wrong length, rejected by subsequent dnNormalize)
2002-03-30 15:44:30 +00:00
Pierangelo Masarati
9bf3ccd0bf
allow attribute exclusion list in selective replica
2002-03-30 08:52:20 +00:00
Pierangelo Masarati
bcc486df2d
initialize temporaries
2002-03-30 08:47:13 +00:00
Pierangelo Masarati
af3a65b924
do not print -1 as %lu
2002-03-30 08:45:21 +00:00
Pierangelo Masarati
031991e0b4
do not return a pointer to an automatic variable in case of success
2002-03-30 08:44:29 +00:00
Kurt Zeilenga
f9766f684b
System loading can now be done in one place...
2002-03-30 01:28:34 +00:00
Kurt Zeilenga
e7523b1496
add si_syn_octetString to keep syntax load checks in one place.
2002-03-30 01:07:20 +00:00
Kurt Zeilenga
111b464642
move ldap_int_put_filter to ldap_pvt_put_filter
...
and other cleanup
2002-03-30 00:42:40 +00:00
Julius Enarusai
5f154f2e57
Added LDAP_LOG messages
2002-03-26 22:40:31 +00:00
Julius Enarusai
82cd035505
Added LDAP_LOG messages
2002-03-26 22:17:08 +00:00
Julius Enarusai
73fcfa6e59
Added LDAP_LOG messages to operational.c and fixed compile error in dn2id.c
2002-03-26 21:34:03 +00:00
Julius Enarusai
7b05699803
Added LDAP_LOG messages
2002-03-26 21:14:23 +00:00
Julius Enarusai
437bf1ba70
Added LDAP_LOG messages
2002-03-26 20:04:30 +00:00
Julius Enarusai
5f466ae128
Added LDAP_LOG messages
2002-03-26 18:52:36 +00:00
Julius Enarusai
bb38d574ac
Added LDAP_LOG messages
2002-03-26 18:01:58 +00:00
Julius Enarusai
d881efa172
Added LDAP_LOG messages
2002-03-26 17:47:52 +00:00
Julius Enarusai
2027e7322a
Added LDAP_LOG messages
2002-03-26 17:34:57 +00:00
Julius Enarusai
4d501cacd9
Added LDAP_LOG messages
2002-03-26 17:00:14 +00:00
Kurt Zeilenga
cf3f722c94
Now understand with Hallvard was commenting on in ITS#1669.
...
Removed "leading" comments and added a general caution statement.
This schema will be pulled from 2.1.
2002-03-25 17:13:11 +00:00
Kurt Zeilenga
9b26e48aa6
ITS#1674: integerOrderingMatch, integerFirstComponentMatch and then some.
2002-03-25 17:08:38 +00:00
Kurt Zeilenga
aa18b7a52e
ITS#1686: fix typo in usage
2002-03-25 16:30:06 +00:00