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
Howard Chu
f20a6a27b3
Fix ITS#1675, make sure search results are initialized
2002-03-25 11:52:39 +00:00
Kurt Zeilenga
6033aeb6cf
Fixup a few schema definitions
2002-03-24 17:37:27 +00:00
Kurt Zeilenga
0be4d842bc
Update control framework
...
Misc cleanup
NT updates
2002-03-24 02:17:21 +00:00
Kurt Zeilenga
41138a8ca7
cleanlup
2002-03-24 02:15:17 +00:00
Kurt Zeilenga
4216f19ed1
cleanup
2002-03-24 02:14:00 +00:00
Pierangelo Masarati
49f324a1fa
fix ITS#1671 and more
2002-03-23 16:53:44 +00:00
Pierangelo Masarati
724666c447
fix ITS#1667
2002-03-23 16:17:26 +00:00
Pierangelo Masarati
6174cb6529
improvement of permission handling of local sockets (ITS#1660, issue 2)
2002-03-23 16:07:19 +00:00
Pierangelo Masarati
fa654ae447
fix ITS#1660 (issue 1)
2002-03-23 16:06:22 +00:00
Pierangelo Masarati
50baa90139
port hasSubordinates handling to back-bdb
2002-03-23 11:04:09 +00:00
Howard Chu
f181388a5e
Fix ITS#1655, don't retrieve sd until we've checked for valid c_sb.
2002-03-20 23:47:08 +00:00
Howard Chu
6b0fb09e0d
Fix ITS#1607, longstanding bug in group and dnattr acls, gave access
...
to anonymous connections.
2002-03-20 13:11:37 +00:00
Howard Chu
780d427fa6
In bdb_idl_fetch_key, the DB_MULTIPLE buffer must be a multiple of 1024
...
bytes in size.
2002-03-20 01:27:08 +00:00
Howard Chu
9a154f89b0
Rewrote bdb_idl_insert_key and bdb_idl_delete_key for BDB_IDL_MULTI,
...
parses range IDLs directly to correctly handle changes to the range
boundaries. (bdb_idl_insert_key used to call bdb_idl_fetch_key to
handle ranges; bdb_idl_delete_key never handled ranges before.)
2002-03-20 00:51:34 +00:00
Julius Enarusai
5af8610ba0
Added LDAP_LOG messages
2002-03-19 17:44:11 +00:00
Howard Chu
cc21d814b3
Use a single malloc'd block for all the temporary IDL storage in the
...
filter processing, to avoid runtime stack blowout. Also removes the
need for gigantic thread stacks.
2002-03-18 11:40:58 +00:00
Howard Chu
bad62d2167
Fix backend_attribute trying to reference a NULL be. Neither backend_group
...
nor backend_attribute need to worry about the noSubs parameter of
select_backend().
2002-03-18 08:59:02 +00:00
Howard Chu
35554dadf3
use ber_str2bv() instead of ch_strdup/strlen.
2002-03-18 08:57:59 +00:00
Howard Chu
a1063a041d
Fix previous commit, lutil_passwd_scheme() returns boolean, not pointer.
2002-03-18 08:56:47 +00:00
Howard Chu
7e68108d4a
Fix previous commit, missing semicolon
2002-03-18 08:55:21 +00:00
Kurt Zeilenga
9fead9d2ce
fix compilation error
2002-03-17 23:39:45 +00:00
Julius Enarusai
a61d2b914d
Added LDAP_LOG messages
2002-03-15 18:57:12 +00:00
Julius Enarusai
e89c8b4f63
Added/Modified LDAP_LOG messages to match the existing Debug messages
2002-03-15 17:50:28 +00:00
Julius Enarusai
d8413fac32
Added LDAP_LOG messages to match existing Debug messages
2002-03-15 17:21:06 +00:00
Julius Enarusai
35bc1bf43c
Added LDAP_LOG messages to these files to match the existing Debug messages
2002-03-14 22:23:44 +00:00
Julius Enarusai
02412251f1
Added LDAP_LOG messages to the above files to match the existing Debug messages
2002-03-14 16:34:24 +00:00
Kurt Zeilenga
a1d757a038
Check components of extensible match filter sooner than later.
2002-03-12 23:07:07 +00:00
Kurt Zeilenga
dbfc18985a
Align with back-ldbm version
2002-03-12 22:46:13 +00:00
Kurt Zeilenga
9eac390e2f
Return inappropriate matching if the syntaxes don't line up for
...
extensible matching
2002-03-11 16:29:01 +00:00
Kurt Zeilenga
815e2ac717
Add a comment to the check which needs extending to support
...
new extensible matching rules.
2002-03-11 16:12:36 +00:00
Kurt Zeilenga
5ea0bf2f9b
Use put/get filter to convert string to filter
2002-03-11 05:21:49 +00:00
Kurt Zeilenga
b56f7c7222
Add no-op mru_schema_info()...
...
Not sure how best to populate matchingRuleUses...
2002-03-11 03:06:34 +00:00
Kurt Zeilenga
2f7858044e
ITS#1636 fix
2002-03-11 03:05:43 +00:00
Kurt Zeilenga
c02f448a16
Misc extensible match clean up.
2002-03-11 01:48:37 +00:00
Kurt Zeilenga
c9c3a68496
Deprecate filter_print in favor of filter2bv.
2002-03-10 17:41:14 +00:00
Kurt Zeilenga
902350f991
Fix up handling of extended operations with no request data
2002-03-10 17:40:22 +00:00
Pierangelo Masarati
a1b65bcdfe
detect unavailable hash algorithms at startup
2002-03-09 11:02:32 +00:00
Howard Chu
f0a453dfca
Fix ITS#1615
2002-03-07 20:23:48 +00:00
Julius Enarusai
08d0a48ac5
The following file fails compile when NEW_LOGGING is enabled.
2002-03-07 17:50:56 +00:00
Kurt Zeilenga
1880c23029
Replace get_filter generation of fstr with filter2bv().
2002-03-07 03:13:11 +00:00
Kurt Zeilenga
a4635f3ada
CLDAP fixes
2002-03-06 20:58:20 +00:00
Kurt Zeilenga
93a45a02aa
Update handling of AND/OR indexing where element is undefined.
2002-03-04 22:32:33 +00:00
Kurt Zeilenga
d9c93faac8
Fix typo
2002-03-04 22:26:47 +00:00
Kurt Zeilenga
3d89f398a9
Fix callback initializer.
2002-03-04 21:28:46 +00:00
Pierangelo Masarati
914d703714
backout previous change; validation has been added to dnNormalize functions
2002-03-02 17:28:19 +00:00
Kurt Zeilenga
ad0858dea4
Add validation.
2002-03-02 17:05:29 +00:00
Pierangelo Masarati
9dee603fdf
null length string is not allowed
2002-03-02 14:28:08 +00:00
Kurt Zeilenga
ef7883c028
Fix substring index error handling
2002-03-01 19:07:15 +00:00
Kurt Zeilenga
faa9956446
Validate filter and compare inputs
2002-03-01 18:52:45 +00:00
Kurt Zeilenga
a71cd15182
Add normalize_validate_normalize() to be use instead of value_normalize()
...
where value has not yet been validated.
2002-03-01 18:05:47 +00:00
Kurt Zeilenga
c0fdb1aaca
Add a value_validate() function to be used by prior to value_normalize
...
calls as needed (compare/filters).
2002-03-01 17:36:22 +00:00
Stig Venaas
c476878fde
Using new UTF8bv* all over, getting rid of UTF8normalize() and
...
UTF8normcmp().
2002-02-27 16:11:24 +00:00
Stig Venaas
94983da942
Added code for approximate matching in UTF8bvnormalize() and changed to use
...
this in approxMatch etc in schema_init.c
2002-02-26 18:38:40 +00:00
Kurt Zeilenga
5d347b6153
tool install should not be dependent on $(BUILD_LDBM)
2002-02-25 16:57:29 +00:00
Kurt Zeilenga
d50eb2e959
C translator portability changes (ITS#1609)
2002-02-23 23:47:37 +00:00
Kurt Zeilenga
cea1746182
Return proper result codes for usage errors
2002-02-21 19:29:32 +00:00
Kurt Zeilenga
75d97a43eb
Fix bug in unused function
2002-02-21 19:28:49 +00:00
Pierangelo Masarati
2d1eb56725
#ifdef local time hack
2002-02-19 09:11:55 +00:00
Kurt Zeilenga
33516fa9eb
#ifdef ACI/authpasswd schema
2002-02-18 20:06:50 +00:00
Kurt Zeilenga
348e489b35
#ifdef experimental controls
2002-02-18 19:48:27 +00:00