Pierangelo Masarati
bac1aea2a5
fix previous commit
2005-08-29 09:48:07 +00:00
Pierangelo Masarati
7a85e25402
prettify matchedDN
2005-08-28 14:50:41 +00:00
Howard Chu
ba881c5e6f
In ordered_value_sort, allow zero-length ordered values.
...
In check_vals, log msg when ordered_value_sort fails.
2005-08-28 10:23:10 +00:00
Howard Chu
f8a97897ad
More for ITS#3937, pick up pre-set ldap_syslog values.
2005-08-28 07:15:11 +00:00
Howard Chu
055c1abbdc
ITS#3937 add config_syslog var to track state of loglevel directive,
...
copy to ldap_syslog when in SLAP_SERVER_MODE
2005-08-28 07:11:10 +00:00
Howard Chu
ba268441bc
ITS#3937 tone down informational debug msgs
2005-08-28 07:02:53 +00:00
Howard Chu
975de9aa5b
Consolidate a few more init calls into slap_init(). Fixes ITS#3962,
...
unintentional changed default of TLSVerifyClient.
2005-08-28 03:25:16 +00:00
Pierangelo Masarati
39998dfe8d
prettify matchedDN; fix memory handling
2005-08-27 19:21:43 +00:00
Pierangelo Masarati
97600bf23c
prettify matchedDN; return response code
2005-08-27 19:20:31 +00:00
Howard Chu
b265c37c9b
Additional log msg for config tree processing failures
2005-08-27 10:51:08 +00:00
Howard Chu
29731c1850
Partially revert rev 1.31, must detect send_search errors to propagate
...
errors up when reading config DB.
2005-08-27 10:15:22 +00:00
Howard Chu
a5739b28b3
More for ITS#3900 - olcDefaultSearchBase doesn't belong in root entry
2005-08-27 09:40:06 +00:00
Howard Chu
528acf7504
Finish control implementation
2005-08-27 01:21:51 +00:00
Howard Chu
12beb27e46
Fix typos in error messages
2005-08-27 01:18:47 +00:00
Hallvard Furuseth
f17ffeb925
Rename label "leave" to "done".
...
Tru64 5.1 alpha's <pthread.h> turns "leave" into an exception handling keyword.
2005-08-26 22:23:27 +00:00
Hallvard Furuseth
a1a9507295
Remove unused variable
2005-08-26 21:42:48 +00:00
Pierangelo Masarati
8e3adc2428
fix uninitialized, signedness and other issues (ITS#3854)
2005-08-26 16:52:51 +00:00
Pierangelo Masarati
421f09435d
refine last commit (let "proxied" attrs be registered in between the request and the response...); silence misc signedness warnings
2005-08-26 14:43:15 +00:00
Luke Howard
06600b9a1d
fix slapi_sdn_isempty() logic
2005-08-26 10:46:56 +00:00
Howard Chu
e641222b10
More for ITS#3854
2005-08-26 03:35:42 +00:00
Howard Chu
7e92728db9
Fix another leaked environment.
2005-08-26 02:35:32 +00:00
Hallvard Furuseth
45d60c21dd
slapi_rdn_set_<sdn/rdn>: Void functions, so return nothing - not even void.
2005-08-26 02:26:50 +00:00
Howard Chu
6a4839bd23
Windows mod compatibility
2005-08-26 02:21:07 +00:00
Howard Chu
4cc7efdadc
Revert ITS#3577 patch, breaks Windows build and not needed in RE23.
2005-08-26 02:20:45 +00:00
Howard Chu
5a03f7611f
Fix for Windows mod compatibility, imported symbols cannot be used as
...
constant initializers.
2005-08-26 02:17:13 +00:00
Howard Chu
d7122627fa
Leave pwdPolicySubEntry user-modifiable for now
2005-08-26 00:19:08 +00:00
Pierangelo Masarati
6cb8b14435
allow undefined attrs to be "proxied" (ITS#3959)
2005-08-25 21:14:26 +00:00
Kurt Zeilenga
f07015dad2
Update build tools based upon OPENLDAP_AC work
2005-08-25 20:09:26 +00:00
Pierangelo Masarati
afaf426231
need stricter sanity checks...
2005-08-25 08:57:08 +00:00
Pierangelo Masarati
b90daf83f9
honor onerr on bind
2005-08-25 08:55:55 +00:00
Howard Chu
f6be095299
Don't do anything if this is a syncrepl response.
2005-08-25 06:56:09 +00:00
Howard Chu
143a1cdae1
Must close env before removing it.
2005-08-25 03:00:29 +00:00
Howard Chu
5903ebc1b5
Config fixes
2005-08-24 08:32:03 +00:00
Luke Howard
a99305da41
Allow slapi_sdn_get_parent() to work if only normalized DN is available
2005-08-24 05:11:58 +00:00
Howard Chu
fc1c7d9987
Fix typo in numeric-descend
2005-08-24 02:26:55 +00:00
Howard Chu
c9c1ee10b3
Add LDAP_CONTROL_VALSORT
2005-08-24 02:07:43 +00:00
Howard Chu
6b63e25bc2
Check for numeric syntaxes
2005-08-24 01:52:05 +00:00
Howard Chu
7dde9e0b33
Tweak prev commit, use BER_BVZERO
2005-08-24 01:36:16 +00:00
Howard Chu
c947cfd66a
Fix uninit'd var, check for single-valued attrs
2005-08-24 01:34:49 +00:00
Pierangelo Masarati
c33124e698
make sure a_nvals are as many as a_vals (helps tracking other issues...)
2005-08-23 23:56:47 +00:00
Pierangelo Masarati
ac1488b50d
workaround ITS#3965; if anybody has a better solution...
2005-08-23 22:54:07 +00:00
Howard Chu
ef220ac1ef
Updated for draft 09, allow MANAGE for operational attrs.
2005-08-23 19:37:16 +00:00
Pierangelo Masarati
40c0d3bfa3
harmonize back-ldbm and back-bdb handling of searchBase disclose access; fixes ITS#3964, ITS#3963 still open
2005-08-23 17:38:50 +00:00
Pierangelo Masarati
fb3424f17d
fix use of uninitialized var
2005-08-23 13:02:53 +00:00
Howard Chu
02f52030b0
More for valsort
2005-08-23 10:44:36 +00:00
Howard Chu
57722288f1
Add valsort
2005-08-23 08:52:01 +00:00
Howard Chu
225275407d
Add sorted values overlay
2005-08-23 08:47:38 +00:00
Howard Chu
1f78e2b831
ITS#3961 better fix - provide a context for the main thread. The context
...
must be reset by the caller to clear out temp allocations etc.
2005-08-23 04:12:57 +00:00
Howard Chu
468112e2ba
ITS#3961 provide ldap_pvt_thread_pool_fake_context_init/destroy, don't
...
use arbitrary context pointers.
2005-08-23 03:25:21 +00:00
Pierangelo Masarati
075220dd7e
need some minimal timeout otherwise strange issues occur
2005-08-22 18:14:41 +00:00
Pierangelo Masarati
0717a598b6
fix ACIs; few issues remain (e.g. disclose)
2005-08-22 17:59:47 +00:00
Pierangelo Masarati
849ecbcf1f
allow options in dynacl configuration
2005-08-22 16:28:50 +00:00
Pierangelo Masarati
4bc8197dcb
further ACI factoring out & confinement
2005-08-22 16:03:35 +00:00
Pierangelo Masarati
d4ec31f677
fix cleanup on error
2005-08-22 16:01:16 +00:00
Pierangelo Masarati
65f07479ac
fix previous commit
2005-08-22 10:46:57 +00:00
Pierangelo Masarati
de90dbbc52
mutex-protect "undefined" attribute descriptions/objectClasses addition (ITS#3958)
2005-08-22 09:46:17 +00:00
Pierangelo Masarati
a3554aad3a
log the right string
2005-08-22 09:42:51 +00:00
Pierangelo Masarati
ec1042b19e
allow a minimal timeout in compares
2005-08-22 09:42:26 +00:00
Pierangelo Masarati
150bcfcbcb
moved to contrib/slapd-overlays/allop
2005-08-22 09:12:21 +00:00
Hallvard Furuseth
94747c50db
SLAP_OP_* enums are always used. Delete #ifdef SLAPD_MONITOR around definition.
2005-08-21 00:00:09 +00:00
Pierangelo Masarati
5b7f996566
cleanup
2005-08-20 19:50:59 +00:00
Pierangelo Masarati
919781ea45
fix referral logging @STATS2
2005-08-20 19:20:53 +00:00
Pierangelo Masarati
c8ef609ea1
fix (and partially revert) last commit
2005-08-20 19:05:10 +00:00
Pierangelo Masarati
00b5d8c1bc
allow objectClass checking including sups
2005-08-20 19:01:53 +00:00
Pierangelo Masarati
15d1b4d5dd
cleanup locking
2005-08-20 19:00:56 +00:00
Pierangelo Masarati
6bae592866
cleanup objectclass inheritance; don't proceed if initial lookup resulted in a hit with "success" errcode and the base is search; either the filter doesn't match, or the same action is taken twice
2005-08-20 18:00:40 +00:00
Pierangelo Masarati
f227a96053
more for the allop overlay
2005-08-20 11:53:31 +00:00
Pierangelo Masarati
95f65ff352
all-operational overlay: allows to configure part of te DIT so that requests
...
with requested attribute lists empty or containing "*" are expanded
to contain "+" as well, so that all operational attributes are returned.
This may be required to work around dumb clients that interrogate
the rootDSE requesting "*" and expecting operational attributes to be
returned as well. To make it a bit more generic, it can be configured
to do the same for an arbitrary search described by an URI. For example,
overlay allop
allop-URI ldap:///??sub
before any database instantiation causes all searches to return "*","+"
when ors_attrs is NULL or countains "*".
2005-08-20 11:48:13 +00:00
Pierangelo Masarati
fdfcf0406e
need an AUXILIARY objectClass to play with some special error codes (need to update man page as well)...
2005-08-20 11:31:51 +00:00
Pierangelo Masarati
e5d302e84f
normalize/pretty attributes when possible
2005-08-20 11:31:07 +00:00
Kurt Zeilenga
6f99b15ee0
Clarify second all user attrs comment
2005-08-20 07:00:16 +00:00
Kurt Zeilenga
5beeb04346
Clarify attribute comment
2005-08-20 06:58:22 +00:00
Pierangelo Masarati
725423ef4f
couldn't slapcat with ACIs in slapd.conf :)
2005-08-19 00:30:10 +00:00
Pierangelo Masarati
3356017b93
complete ACI syntax exploitation
2005-08-19 00:25:18 +00:00
Pierangelo Masarati
9c02a32b7c
more about matchedDN in back-meta (ITS#3944)
2005-08-18 14:55:28 +00:00
Pierangelo Masarati
ef38cc9501
cleanup
2005-08-18 12:50:48 +00:00
Pierangelo Masarati
66c173deb9
a bit redundant, but works around ITS#3951
2005-08-18 12:14:07 +00:00
Pierangelo Masarati
11211d0dae
strip entryDN from search entries; frontend will reattach it :(
2005-08-18 11:26:29 +00:00
Pierangelo Masarati
e066ec210e
merge sml_managing into sml_flags (SLAP_MOD_MANAGING)
2005-08-18 08:48:10 +00:00
Pierangelo Masarati
9487629061
zero out sml_managing any time a Modifications is built (use calloc?)
2005-08-18 08:12:26 +00:00
Howard Chu
315c4a3b72
ITS#3946 reset lockout status at beginning of all Binds
2005-08-18 07:05:56 +00:00
Luke Howard
2ff5c27f63
Check for NULL in be_match()
...
Use be_match() in backend.c operational processing
2005-08-18 04:34:04 +00:00
Luke Howard
53a15b6820
Use be_match() instead of testing pointer equivalence
2005-08-18 04:12:54 +00:00
Luke Howard
6cf14a777a
Add be_match() macro: one cannot always compare BackendDB pointer
...
values in order to test equivalence, because the overlay engine
may have reset the backend pointer to a temporary copy on the stack.
So, we test pointer equivalence of the BackendDB itself, then of
be_nsuffix -- this macro can be updated if necessary.
2005-08-18 04:12:04 +00:00
Pierangelo Masarati
ef7421b87d
more on manage access level
2005-08-18 02:25:10 +00:00
Pierangelo Masarati
add1add854
condition compile dynacl
2005-08-17 22:41:30 +00:00
Pierangelo Masarati
b2284183f9
more on manage
2005-08-17 22:06:46 +00:00
Pierangelo Masarati
965d00a1dd
allow to manage entryUUID; allow to manage noUserMod attrs during add
2005-08-17 20:53:39 +00:00
Pierangelo Masarati
557f5eb2ca
allow noUserMod attrs write proxying when manageDIT is set (still to work in frontend for add)
2005-08-17 19:40:02 +00:00
Pierangelo Masarati
5873048347
fix return code (prevents clean usage of back-ldap for internal searchs)
2005-08-17 19:38:36 +00:00
Pierangelo Masarati
ec49990d51
ACIs almost entirely factored out of slapd
...
Added OpenLDAPaciSyntax based on ITS#3877 by Nikita Shulga
aci_mask() doesn't exploit the normalized value yet (next step)
The case #define SLAPD_ACI_ENABLED / #undef SLAP_DYNACL should
be removed
2005-08-17 17:14:57 +00:00
Howard Chu
d247840d6b
ITS#3946 use connection_destroy hook to reset lockouts instead of unbind
2005-08-17 16:42:22 +00:00
Pierangelo Masarati
69c6cd5365
fix small issues with dynacl and ACI in general
2005-08-17 14:44:41 +00:00
Pierangelo Masarati
99ea177e05
implement overlapping targets enhancement (ITS#3711)
2005-08-17 08:34:49 +00:00
Pierangelo Masarati
76f52279ef
fix "matched" return and return code (ITS#3944)
2005-08-17 08:25:48 +00:00
Pierangelo Masarati
24befe380c
fix resources release issue
2005-08-17 08:25:10 +00:00
Pierangelo Masarati
c4ab7b1af2
in some cases, back-meta needs to propagate pseudo-root identity even if it's not the authorizing backend
2005-08-17 08:19:37 +00:00
Pierangelo Masarati
ecd99b83dd
set "matched" as appropriate (ITS#3942)
2005-08-17 08:13:24 +00:00
Pierangelo Masarati
88e89bf4e7
cleanup
2005-08-17 08:08:23 +00:00
Luke Howard
d174f6720a
Add read-only SLAPI_X_ADD_STRUCTURAL_CLASS pblock extension.
...
This is necessary to compensate for a regression in the SLAPI
implementation since it moved to an overlay: global add preop
plugins no longer have access to operational attributes,
because slap_mods_opattrs() is called by fe_op_add(), invoked
after the global SLAPI overlay.
(Some of our plugins need to the structural object class of the
to-be-added entry.)
I suppose an option would be to have the SLAPI overlay
optimistically call slap_mods_opattrs() (as long as this can be
called idempotently). If there are any other ideas let me know.
2005-08-17 07:25:27 +00:00
Kurt Zeilenga
65d2925249
ITS#3941: posixGroup should be STRUCTURAL
2005-08-17 07:10:02 +00:00
Hallvard Furuseth
a0b5f5138b
Remove unused label "error_return"
2005-08-16 19:45:50 +00:00
Luke Howard
f68a2b1663
Make sure we release entry lock before sending paged response
2005-08-15 11:27:42 +00:00
Howard Chu
88dd1c5659
More optimization for CSN filter checks
2005-08-15 07:18:19 +00:00
Howard Chu
8c20a11293
Fix prev commit
2005-08-15 05:36:56 +00:00
Howard Chu
71bc69bfff
Optimize FINDCSN case
2005-08-15 00:04:13 +00:00
Howard Chu
b15a72caec
ITS#3931 fix dnRelativeMatch return values
2005-08-14 23:08:20 +00:00
Howard Chu
f4c1eee382
ITS#3935 tweak sessionlog description
2005-08-14 08:35:31 +00:00
Howard Chu
9326c2b313
ITS#3845 allow rootpw to be used for rootdn SASL binds, based on
...
patch from Jason Townsend
2005-08-14 08:00:54 +00:00
Hallvard Furuseth
9873eb7ab0
Add missing Statslog() statements (loglevel stats/stats2):
...
"ABANDON", "STARTTLS", "CANCEL", "WHOAMI", "PASSMOD", "EXT", "INTERM",
"TLS established", SASL and Extended Response "RESULT".
In Statslog output "conn=xx fd=yy closed", append the reason in
"()" unless client or server closed the connection after Unbind.
Still missing Statslog output from a number of failed requests.
2005-08-14 00:14:58 +00:00
Hallvard Furuseth
a222469d0d
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
2005-08-13 21:10:41 +00:00
Pierangelo Masarati
f6ef5170fa
personally, I'm much more comfortable using hex for log levels...
2005-08-13 16:04:40 +00:00
Howard Chu
0246338206
utime is not needed here any more
2005-08-13 13:18:00 +00:00
Howard Chu
c722dd9ca8
Rework auto-recovery logic:
...
Removes ITS#3824 patch.
Adds trace message for ITS#3833.
Streamlines ITS#3607 patch.
2005-08-13 12:59:45 +00:00
Kurt Zeilenga
77173d35e9
Replace PW_GECOS/PASSWD macros
2005-08-12 22:28:17 +00:00
Kurt Zeilenga
eceb493bc0
Use IANA assigned OIDs
2005-08-12 21:24:13 +00:00
Kurt Zeilenga
7dec65ee10
Replace 666 OIDs for Assertion/pre-read/post-read controls with
...
appropriate IANA assigned OIDs, and remove hide.
2005-08-12 18:08:15 +00:00
Pierangelo Masarati
7b9173d0bb
should compile also when #undef HAVE_TLS
2005-08-12 10:51:39 +00:00
Pierangelo Masarati
a23466f64a
should compile also when #undef HAVE_TLS
2005-08-12 10:49:55 +00:00
Kurt Zeilenga
13accb8b28
Not sure why autoheader isn't doing its job...
2005-08-12 06:17:24 +00:00
Pierangelo Masarati
e93c8f18d4
minor cleanup
2005-08-11 23:53:52 +00:00
Pierangelo Masarati
d10250d9f6
add authzSyntax for authzTo/authzFrom attributes; add X-ORDERED 'VALUES' if support for ordered_value_{validate,pretty,normalize} is present; exploit normalization in slap_parseURI (only #ifdef LDAP_DEVEL)
2005-08-11 23:52:17 +00:00
Pierangelo Masarati
53a4d530d9
plug one-time leak
2005-08-11 23:35:47 +00:00
Pierangelo Masarati
2b93e9b376
wrap validate/pretty/normalize for ordered values (only #ifdef LDAP_DEVEL)
2005-08-11 23:35:15 +00:00
Pierangelo Masarati
53921b2c1a
fix error message
2005-08-11 21:02:32 +00:00
Pierangelo Masarati
6cd013b254
silence warning
2005-08-11 19:32:28 +00:00
Pierangelo Masarati
c6e2a69f27
fix tls propagation, including rebind
2005-08-11 16:01:24 +00:00
Pierangelo Masarati
e9cb5b0efb
don't get tricked when option separator occurs past end of berval
2005-08-11 02:09:03 +00:00
Howard Chu
ba0996f1c1
ITS#3929 "test -e" doesn't exist on Solaris
2005-08-11 00:27:59 +00:00
Howard Chu
99e2e5d886
Move ldap_pvt_thread_initialize() earlier. (See -devel; same as ITS#3793)
2005-08-10 23:19:47 +00:00
Pierangelo Masarati
0db4013fb0
temporarily fix SLAPD_OVERLAY_ACCESS conflict
2005-08-10 18:53:21 +00:00
Pierangelo Masarati
98363b43a6
enable syncrepl support by default
2005-08-10 16:54:45 +00:00
Howard Chu
6c21412122
Fix backend selection diagnostics
2005-08-10 11:26:32 +00:00
Pierangelo Masarati
f8407435cc
cleanup
2005-08-10 10:25:24 +00:00
Pierangelo Masarati
f38e72b26c
trim use of uninitialized data; please review
2005-08-10 10:21:37 +00:00
Hallvard Furuseth
d50820cdd6
Read LDAPResult.resultCode & ModifyRequest.modification.operation
...
and send SortResult.sortResult as BER ENUMERATED, not BER INTEGER.
libldap: ldap_parse_extended_result, try_read1msg, build_result_ber,
ldap_parse_sasl_bind_result. slapd: do_modify, send_ldap_controls.
2005-08-10 00:54:38 +00:00
Luke Howard
3647cba131
ITS#3924
...
Also, fix slapi_dn_parent() crasher
2005-08-09 05:28:58 +00:00
Pierangelo Masarati
eae2233d0c
don't leak in case of attribute not found
2005-08-09 03:39:12 +00:00
Luke Howard
2e36d49a73
Fix slapi_str2entry()/slapi_entry2str() allocation
2005-08-09 02:56:21 +00:00
Luke Howard
6461a5b7fd
ITS#3924
2005-08-09 02:12:18 +00:00
Howard Chu
c30992f05e
ITS#3922 don't leak ber buffer on decode/parse errors
2005-08-09 00:26:39 +00:00
Howard Chu
28be8691cc
ITS#3922 plug another cookie parsing leak
2005-08-09 00:11:42 +00:00
Howard Chu
0b2a428a29
ITS#3917 don't check csn syntax if schema isn't inited yet
2005-08-08 23:56:40 +00:00
Howard Chu
a99e5846b3
ITS#3917 revert prev commit
2005-08-08 23:45:29 +00:00
Pierangelo Masarati
9f1703d0d3
more (in)sanity stuff
2005-08-08 22:49:54 +00:00
Hallvard Furuseth
f927b77456
Remove unused variables in config_updatedn()
2005-08-08 22:35:38 +00:00
Hallvard Furuseth
64512ad4d7
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
2005-08-08 22:25:56 +00:00
Hallvard Furuseth
7843e7fbb2
Destroy monitor_info.mi_cache_mutex
2005-08-08 21:29:13 +00:00
Pierangelo Masarati
c984c229d6
plug more one-time leaks; rearrange subsystems setup
2005-08-08 20:45:10 +00:00
Hallvard Furuseth
b1e4b27388
#include <ac/ctype.h>, needed by last commit
2005-08-08 20:19:25 +00:00
Pierangelo Masarati
b286c9264b
plug another one-time leak
2005-08-08 20:01:04 +00:00
Pierangelo Masarati
64af435895
ITS#3914 bug was very close to that leak: rwm_dnattr_rewrite() already freed the original value (all this stuff may need work)
2005-08-08 19:49:48 +00:00
Pierangelo Masarati
47351e3b5c
fix yet another leak (not related to ITS#3914, though)
2005-08-08 19:41:10 +00:00
Hallvard Furuseth
3142c03e5a
Fix typo in previous commit (slapi_dn.c -> slapi_dn.lo)
2005-08-08 14:30:34 +00:00
Pierangelo Masarati
cccf35c749
allow textual log levels in command line
2005-08-08 14:01:40 +00:00
Luke Howard
d463430295
Remove slapi_x_be_select()
2005-08-08 13:26:02 +00:00
Luke Howard
d96f3615b3
New file - slapi_dn.c
2005-08-08 13:25:24 +00:00
Luke Howard
7d557f0b0d
Add Slapi_DN API
2005-08-08 13:24:18 +00:00
Howard Chu
ae8a333bc8
ITS#3917 init schema before parsing args
2005-08-08 12:51:38 +00:00
Howard Chu
9365649dad
ITS#3922 fix syncrepl ctxcsn leak
2005-08-08 12:38:19 +00:00
Luke Howard
3858ce0728
Add slapi_x_be_select() (to be replaced with slapi_be_select() when
...
we support Slapi_DN API)
2005-08-08 11:01:39 +00:00
Luke Howard
ef81368404
Don't return frontend as SLAPI_BACKEND, return actual backend instead
...
for compat with 2.2 plugins
Add a couple of backend SLAPI APIs
2005-08-08 09:33:02 +00:00
Luke Howard
17ffdc07b6
Don't decrement descriptor count until we have checked connection is not UDP
2005-08-08 03:44:17 +00:00
Luke Howard
0dd503a339
Add missing break statement in switch for SLAPI_SEARCH_ATTRS handler
2005-08-08 03:39:00 +00:00
Pierangelo Masarati
e24cc0589f
more cleanup
2005-08-07 22:22:27 +00:00
Pierangelo Masarati
d79d9be840
free Env
2005-08-07 21:53:38 +00:00
Pierangelo Masarati
3d075186bf
don't leak entry/referrals in case of reference
2005-08-07 21:26:15 +00:00
Pierangelo Masarati
09f749da96
remove unnecessary data from search_info
2005-08-07 20:43:07 +00:00
Pierangelo Masarati
779d94312f
cleanup candidate list in case of abandon, even if it occurs while selecting candidates
2005-08-07 20:11:41 +00:00
Pierangelo Masarati
433c7923c5
cleanup candidate list in case of abandon
2005-08-07 20:04:47 +00:00
Pierangelo Masarati
125059ccb5
more cleanup
2005-08-07 18:56:19 +00:00
Pierangelo Masarati
92527ee15b
plug more leaks; few remain (but seem to be in ODBC)
2005-08-07 17:28:26 +00:00
Pierangelo Masarati
52fb4b47fe
fix previous commit
2005-08-07 16:48:26 +00:00
Pierangelo Masarati
8fdfe1fcd0
plug yet another one-time leak
2005-08-07 16:45:13 +00:00
Pierangelo Masarati
ca00d860d6
plug selected leaks at shutdown
2005-08-07 16:38:20 +00:00
Pierangelo Masarati
a6d4a82782
more about freeing replica resources
2005-08-07 15:20:14 +00:00
Pierangelo Masarati
e549e4463a
free replica info as appropriate
2005-08-07 15:01:13 +00:00
Pierangelo Masarati
d8a90fd7d5
cleanup resources
2005-08-07 14:13:29 +00:00
Pierangelo Masarati
468e03a655
plug more leaks
2005-08-07 12:55:15 +00:00
Pierangelo Masarati
c3b977b2da
ACL logging was incomplete (and misleading)
2005-08-07 11:36:18 +00:00
Pierangelo Masarati
be355833a0
fix use of uninitialized value; beautify logs
2005-08-07 10:49:40 +00:00
Pierangelo Masarati
e281e08e79
remove cruft
2005-08-07 10:49:01 +00:00
Luke Howard
bba3f62bdc
Always restore op->o_callback in SLAPI overlay - was spinning indefinitely
2005-08-07 03:13:57 +00:00
Pierangelo Masarati
fa27310d77
use trylock only where necessary
2005-08-07 00:35:11 +00:00
Pierangelo Masarati
47d39181d6
cleanup
2005-08-06 21:03:26 +00:00
Pierangelo Masarati
8b54d3b7e1
fix potential leak (if URL form is broken); cleanup
2005-08-06 20:56:02 +00:00
Luke Howard
6911e0022b
Plug some leaks in SLAPI modifications handling
2005-08-06 14:58:25 +00:00
Pierangelo Masarati
682a1981a1
use macros instead of literals
2005-08-06 11:29:08 +00:00
Pierangelo Masarati
955253966b
fix ordered indexing check
2005-08-05 00:08:22 +00:00
Pierangelo Masarati
cc361f7aa0
don't need compare if entry_get is available
2005-08-03 00:33:37 +00:00
Pierangelo Masarati
61f11773ba
address ITS#3914
2005-08-02 23:22:10 +00:00
Pierangelo Masarati
4ed743cc84
remove unrequired member; address ITS#3913
2005-08-02 22:48:30 +00:00
Pierangelo Masarati
9da3dbf3c8
more fixes to parsing of (deprecated) config directives (ITS#3915)
2005-08-02 22:21:44 +00:00
Luke Howard
b620a0e23c
slapi/slapi_utils.c rev 1.172 removed the 'dup' parameter to
...
slapi_int_ldapmods2modifications(), but a 'dup' test remains in the
function body. Should always evaluate to TRUE.
2005-08-02 16:12:09 +00:00
Hallvard Furuseth
cc79022b71
Cleanup (unused variable ad_oldest)
2005-08-02 10:36:48 +00:00
Howard Chu
b98d3b5903
ITS#3912 missed an invocation of entry_schema_check in last round of changes
2005-08-02 09:44:44 +00:00
Hallvard Furuseth
ad0be35f47
Remove unused variable.
2005-08-02 08:50:02 +00:00
Hallvard Furuseth
a3f3143cc5
Fix off-by-one pointer error. Garbage byte between uuid and csn in slog_entry.
2005-08-02 08:43:27 +00:00
Pierangelo Masarati
4148ddc31f
save 1 function call...
2005-08-02 08:13:16 +00:00
Pierangelo Masarati
673ea82eab
fix typo in previous commit
2005-08-01 23:40:40 +00:00
Pierangelo Masarati
c8a5fd2df2
fix various leaks
2005-08-01 23:32:14 +00:00
Pierangelo Masarati
9a64785e4d
plug leaks; fix map initialization
2005-08-01 22:40:18 +00:00
Howard Chu
91ea3a113a
Add static build for accesslog
2005-08-01 22:02:23 +00:00
Luke Howard
12d006d17d
Add o_no_schema_check to operation structure
...
entry_schema_check() nows takes Operation instead of Backend as first
argument, allows it to check o_no_schema_check
2005-08-01 15:26:13 +00:00
Luke Howard
381a4d62c5
SLAPI no longer needs to be initialized here
2005-08-01 15:25:17 +00:00
Luke Howard
b1f478f161
Add slapi_dn_isbesuffix()
...
Fix slapi_dn_beparent() logic
Fix slapi_int_ldapmods2modifications() memory management, values
always need to be duplicated because of prettying in slap_mods_check()
2005-08-01 15:24:46 +00:00
Luke Howard
9a45f87ede
Fix crasher in SLAPI_SEARCH_ATTRS handler
...
Add SLAPI_X_OPERATION_NO_SCHEMA_CHECK, SLAPI_X_MANAGEDIT
Fix modlist memory management
2005-08-01 15:24:02 +00:00
Luke Howard
65ac57bcac
Plug leaks
2005-08-01 15:23:12 +00:00
Luke Howard
e70ab8655c
Centralize SLAPI initialization into slapi_over_config()
2005-08-01 15:22:56 +00:00
Hallvard Furuseth
5949d65b57
Plug memory leak
2005-08-01 03:58:43 +00:00
Hallvard Furuseth
486bfe7e17
slap_mods2entry(,,,dup=1,,,) realloced insufficient space for attr->a_nvals
2005-08-01 03:56:36 +00:00
Luke Howard
71d76fbeba
slap_mods2entry() should not zero pointers into the modifications
...
list because checking is performed on these, rather than the entry.
slap_mods_free() now takes an extra argument indicating whether to
free the values or not.
2005-08-01 02:16:02 +00:00
Hallvard Furuseth
e404a15082
Cleanup
2005-07-31 18:17:13 +00:00
Luke Howard
2b5cf310e6
Fix slapi_dn_beparent() behaviour (again)
2005-07-31 14:17:36 +00:00
Luke Howard
f0101fe5a7
Fix slapi_dn_beparent() logic
2005-07-31 06:45:39 +00:00
Luke Howard
040a0956ac
Support SLAPI_X_OPERATION_DELETE_GLUE_PARENT
2005-07-31 05:42:51 +00:00
Luke Howard
1a2f3b5f2d
Restore 2.2 SLAPI behaviour: target DN is not normalized
...
(actually, in 2.2 the target DN was not even prettied, but this
will do)
2005-07-31 05:23:56 +00:00
Luke Howard
d0ad4b3f3e
Allow overlays to override operational attributes on add (needed
...
to preserve 2.2 SLAPI behaviour; see comments for further info)
2005-07-31 05:19:37 +00:00
Luke Howard
30610c6f70
Fix logic error in slap_mods2entry()
2005-07-31 05:12:20 +00:00
Luke Howard
40ec064b66
Fix logic error in slap_mods_no_repl_user_mod_check()
2005-07-31 05:04:37 +00:00
Luke Howard
6f0edd6c22
Call slap_mods2entry() in do_add(), so that global overlays (including
...
global SLAPI plugins) have access to op->ora_e.
Note that slap_mods2entry() is still called in fe_op_add() in order to
add any operational attributes.
2005-07-31 04:56:27 +00:00
Hallvard Furuseth
014393dfa2
Initialize a_flags of new Attribute in str2entry2().
2005-07-30 23:54:00 +00:00
Hallvard Furuseth
42a9661071
Initialize i (#changes) if no mods. Simplify (*modp) to lmod.
2005-07-30 23:46:07 +00:00
Hallvard Furuseth
80275d382b
Remove warning that HDB code is experimental and unsupported
2005-07-30 23:42:41 +00:00
Hallvard Furuseth
e1742d1cb4
Change diskNode.(n)rdn from unsigned char to char, matching their usage.
2005-07-30 23:39:44 +00:00
Hallvard Furuseth
20cde48439
Remove ";" after do{...}while(0) macros
2005-07-30 23:36:38 +00:00
Hallvard Furuseth
9601e1e7ec
serialNumberAndIssuerPretty() and serialNumberAndIssuerNormalize()
...
were confused about realloced memory.
2005-07-30 23:30:42 +00:00
Pierangelo Masarati
d921f216ac
fix referrals handling (needs work)
2005-07-30 16:25:18 +00:00
Pierangelo Masarati
d959d771bf
support increment; don't bother too much about return values of send_search_* functions
2005-07-30 15:00:41 +00:00
Pierangelo Masarati
40badfc664
fix conditional compilation of config schema
2005-07-30 12:20:52 +00:00
Pierangelo Masarati
6fe8f5dd18
...otherwise it doesn't work with overlays
2005-07-30 10:37:34 +00:00
Luke Howard
f5afe4fdc7
Back out previous commit, appears not to match frontend - still
...
investigating
2005-07-30 08:30:36 +00:00
Luke Howard
98e49eca60
slapi_add_internal_pb() should not set op->ora_e, this is done by frontend
2005-07-30 08:19:26 +00:00
Luke Howard
60e17c1fff
Don't instantiate SLAPI overlay in tool mode
2005-07-29 16:45:25 +00:00
Howard Chu
be4e918799
Add note about core.ldif and openldap.ldif
2005-07-29 12:19:08 +00:00
Howard Chu
d982beeb87
Install LDIF schema files too
2005-07-29 12:09:39 +00:00
Howard Chu
53d94be203
Fix install-schema - move old schema dir out of the way, always install
...
a fresh copy of everything.
2005-07-29 12:06:12 +00:00
Pierangelo Masarati
f76e1055f8
treat extra args as errors
2005-07-29 09:01:44 +00:00
Howard Chu
9164a4790d
ITS#3900 move olcDefaultSearchBase to frontend DB
...
expose config DB
2005-07-29 02:48:31 +00:00
Pierangelo Masarati
aace773cb6
more table-driven config cleanup
2005-07-29 01:00:48 +00:00
Pierangelo Masarati
7b1fae08c7
don't complain during EMIT
2005-07-28 18:25:43 +00:00
Pierangelo Masarati
614d936ef4
suffix must be present (ITS#3901)
2005-07-28 16:54:49 +00:00
Luke Howard
0582504893
Remember to NULL terminate control arrays - not sure how I managed to
...
make this error in multiple places
2005-07-28 09:56:55 +00:00
Luke Howard
f32bfe729f
pblock_add_control() needs to call slapi_dup_control()
2005-07-28 09:48:44 +00:00
Luke Howard
f1e604a3ac
Add slapi_int_dn_pretty()/slapi_int_dn_normalize() to support plugins
...
that override distinguishedName syntax and matching rule
2005-07-28 09:02:13 +00:00
Luke Howard
e4ff86c198
Add slapi_over_call_plugins() to ensure that global plugins are
...
invoked from slap_callbacks
2005-07-28 08:52:50 +00:00
Luke Howard
53ad7ffbff
Add some debugging for failed plugin loads
2005-07-28 08:35:28 +00:00
Pierangelo Masarati
e8c4911a39
check return value from add (ITS#3891)
2005-07-28 00:06:14 +00:00
Luke Howard
06f8a27771
Add pblock_be_call() for calling against actual backend
2005-07-27 16:29:32 +00:00
Luke Howard
2ffdbf7fef
Fix memory management regressions in pblock modifications handling
...
Fix backwards logic in slapi_attr_types_equivalent()
2005-07-27 16:11:12 +00:00