Howard Chu
fc32304934
sl_malloc tweak
2004-01-15 21:32:58 +00:00
Howard Chu
bb1a97544d
ITS#2921, fix client connection handling for HAVE_WINSOCK
2004-01-15 20:20:17 +00:00
Howard Chu
d720ebdbbd
Fix static mingw dependency
2004-01-15 07:25:35 +00:00
Pierangelo Masarati
92a05ccf74
add extra level of parens only if required
2004-01-13 00:33:14 +00:00
Howard Chu
36914d7be6
trim prev commit
2004-01-12 04:15:51 +00:00
Howard Chu
a8dbfd322a
Really fix ITS#2905
2004-01-12 04:09:52 +00:00
Howard Chu
778516cc8c
Fix ITS#2905, properly detect duplicate entries
2004-01-12 03:54:01 +00:00
Pierangelo Masarati
fbb72268fb
warn if no suffix or no init function are present
2004-01-11 23:56:13 +00:00
Pierangelo Masarati
1a9bc6655d
don't segfault if a database doesn't have the suffix
2004-01-11 23:40:33 +00:00
Pierangelo Masarati
04096a3cca
fix ITS#2901
2004-01-11 22:52:07 +00:00
Pierangelo Masarati
db395f2cd7
don't search if the filter is invalid; search also if an attribute is undefined for that objectclass, the filter may succeed anyway
2004-01-11 22:50:25 +00:00
Pierangelo Masarati
93725181af
cleanup avl duplicate handling
2004-01-10 11:12:53 +00:00
Pierangelo Masarati
634324d5b9
allow multiple attribute definitions; honor ldap_entry_objclasses in filter; major cleanup
2004-01-10 10:42:44 +00:00
Pierangelo Masarati
354d8a183c
honor objectclass inheritance in filters + some cleanup
2004-01-09 11:43:00 +00:00
Kurt Zeilenga
c8408d3c6a
ITS#2906: report invalid userPassword schemes, clarify documentation
2004-01-09 04:11:57 +00:00
Pierangelo Masarati
14da72a97a
don't try to decide if uppercase based on LDAP matching rules
2004-01-09 01:53:03 +00:00
Pierangelo Masarati
15da03a587
table 'ldap_entries' must be aliased to allow filtering for DN-valued attrs
2004-01-09 01:48:41 +00:00
Pierangelo Masarati
e8e62aa617
need odbc libs when building back-sql as module
2004-01-08 23:00:44 +00:00
Kurt Zeilenga
57a7682f40
Fix typo in slap_auxprop_init() (should not impact behavior) (ITS#2909)
...
found by Nalin Dahyabhai (Redhat).
2004-01-08 01:14:04 +00:00
Pierangelo Masarati
1dd604fb04
fix ITS#2900
2004-01-05 18:32:27 +00:00
Luke Howard
3102602002
Fix previous commit
2004-01-02 06:34:50 +00:00
Luke Howard
53002fc3ce
Wrap slapi_entry_attr_get_charptr() around slapi_value_get_string()
2004-01-02 06:10:51 +00:00
Luke Howard
cc9101d980
Check value is a C string in slapi_value_get_string()
2004-01-02 06:07:22 +00:00
Kurt Zeilenga
3c598e89fb
Happy new year
2004-01-01 19:15:16 +00:00
Luke Howard
c03a70955d
Make defaulted backend available to ACL plugin pblock
2004-01-01 09:42:44 +00:00
Luke Howard
03e5db818f
Fix ACL plugin bug - return value of ACL plugins was being ignored
2004-01-01 06:33:18 +00:00
Jong Hyuk Choi
0c0b29fc85
a patch for persistent search
2003-12-31 22:11:38 +00:00
Kurt Zeilenga
d3168d0011
cleanup
2003-12-31 04:26:17 +00:00
Kurt Zeilenga
7f59380c5e
Quick hack for PSEARCH crash.
2003-12-31 04:26:07 +00:00
Kurt Zeilenga
45a0cbdfcd
cleanup
2003-12-31 01:41:16 +00:00
Kurt Zeilenga
d44c1d999d
clarify meaning of strongAuthRequired
2003-12-30 21:09:01 +00:00
Kurt Zeilenga
a3c1b64a73
Initial subordinate implementation (for chaining)
2003-12-30 03:53:03 +00:00
Luke Howard
f289d6b7f0
Fix assertion failure if acl_check_modlist() called where op->o_bd == NULL.
...
Behavior now matches access_allowed() - the first backend is used. The
code needs review, I have not tested it.
2003-12-30 03:50:14 +00:00
Kurt Zeilenga
29bd3d4056
Update OID
2003-12-30 01:58:23 +00:00
Kurt Zeilenga
c7f1759e80
Misc cleanup
2003-12-30 01:26:38 +00:00
Kurt Zeilenga
8538184861
LDAP_SCOPE_SUBORDINATES (for chaining)
2003-12-30 01:25:50 +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
Luke Howard
0549d46adf
Don't require slapi to be in the path - always include slapi/slapi.h
2003-12-28 04:17:48 +00:00
Luke Howard
b0416d1140
Cleanup SLAPI namespace
2003-12-28 04:14:19 +00:00
Luke Howard
71dfd57e75
Initialize terminating bv_len in slapi_int_ldapmods2modifications
2003-12-27 08:43:02 +00:00
Howard Chu
e933f076cc
Better fix for ITS#2512. Use callback to invoke replog before sending
...
result to client.
2003-12-25 15:01:53 +00:00
Howard Chu
d8f9f4ee22
Revert prev commit, unnecessary
2003-12-25 14:57:26 +00:00
Howard Chu
c0b92cd963
Revert prev commit, not necessary
2003-12-25 14:56:02 +00:00
Howard Chu
4c1ce5a02a
Fix prev commit
2003-12-24 23:48:07 +00:00
Howard Chu
329bd66d6a
Use a separate mutex for the replication timestamp
2003-12-24 14:32:33 +00:00
Howard Chu
e6f34fddcd
ITS#2895 TXN_PREPARE is not needed since we use nested transactions. It
...
also has a side-effect of releasing all the transaction's existing locks.
2003-12-24 13:27:03 +00:00
Howard Chu
93390425df
ITS#2895 store a copy in the entry cache
2003-12-24 10:59:50 +00:00
Howard Chu
97edd9f83d
Fix bogus "Internal error" when deleting non-existent entry
2003-12-24 10:58:11 +00:00
Howard Chu
0fc932daee
Fix reject error logging
2003-12-24 10:39:14 +00:00
Howard Chu
45d24d16eb
Don't assume the replog is sorted, sort the queue before processing.
2003-12-23 18:51:52 +00:00
Howard Chu
d31230f859
Fix replog sequencing - assign sequence numbers at beginning of operation,
...
instead of getting a timestamp at the end. This makes it possible for
slurpd to sort the log later.
2003-12-23 18:48:36 +00:00
Howard Chu
c7da63df3d
ITS#2887 fix slapi crash
2003-12-23 18:40:56 +00:00
Howard Chu
8aaaad0dd7
Revert to simple authzID behavior
2003-12-23 14:27:54 +00:00
Howard Chu
171e934bf0
Execute overlays in reverse of config order.
2003-12-23 14:18:47 +00:00
Howard Chu
71c076dd5d
Avoid runtime copying of BackendDB
2003-12-23 14:12:54 +00:00
Pierangelo Masarati
18360d1eb2
fix previous commit
2003-12-20 17:41:08 +00:00
Pierangelo Masarati
79bc396ed8
in the <what> clause of ACLs, only 'attr=' or 'attrs=' are allowed; the former for backwards compatibility, while slapd.access(5) correctly uses only the latter form
2003-12-20 15:31:54 +00:00
Pierangelo Masarati
39574bcb5f
for consistency, always allow 'onelevel' as an alias for 'one' in dnstyle
2003-12-20 15:18:21 +00:00
Howard Chu
2b44c72d84
Fix handling of an_oc_exclude
2003-12-20 14:35:13 +00:00
Howard Chu
1586a68219
ITS#2888 don't return LDAP_SIZELIMIT_EXCEEDED prematurely
2003-12-20 10:10:59 +00:00
Howard Chu
c3bb9e42a6
More cleanup
2003-12-20 09:55:17 +00:00
Howard Chu
59f76d543c
Clean up prev commit
2003-12-20 09:19:19 +00:00
Howard Chu
d27b734770
ITS#2889 - fix explicit objectClass inclusion/exclusion
2003-12-20 06:28:05 +00:00
Luke Howard
120adb6b1b
Fix slapi_modify_internal() to deal with just the modification type of
...
a mod operation
2003-12-19 10:10:59 +00:00
Kurt Zeilenga
aabcce3e58
Document +0
2003-12-19 05:06:51 +00:00
Kurt Zeilenga
5481755c0e
Move ldapi to /var/run
2003-12-19 02:28:06 +00:00
Kurt Zeilenga
fdbd8705ae
Move pid/args files into $(RUNDIR)/run
...
Move ldapi into $(RUNDIR)/run/openldap
2003-12-19 02:18:29 +00:00
Howard Chu
3b0b66de10
Fix install rule
2003-12-18 20:26:05 +00:00
Kurt Zeilenga
e9133952fb
Move experimental built-in SASL behind SLAP_BUILTIN_SASL macro
2003-12-18 20:01:47 +00:00
Pierangelo Masarati
42d7d6d743
propagate flags to sasl-regexp functions (will need it later)
2003-12-18 18:32:45 +00:00
Pierangelo Masarati
113727ba53
allow 'all' vs. 'any' sasl-authz-policy
2003-12-18 18:28:43 +00:00
Kurt Zeilenga
babc993ef7
clarify default access control policy
2003-12-18 17:32:30 +00:00
Kurt Zeilenga
9647ccd945
Completely untested built-in EXTERNAL implementation
...
Needs identity mapping and proxy authorization support
2003-12-18 06:52:39 +00:00
Howard Chu
e4b899df95
ITS#2884 silence warning. We don't dereference this pointer, we just use
...
it's value as a unique key.
2003-12-18 03:54:48 +00:00
Howard Chu
9777dc2114
ITS#2883 initialize rc before running callbacks
2003-12-18 03:50:09 +00:00
Kurt Zeilenga
3eb5337020
Make modify/increment conditional
2003-12-17 21:42:48 +00:00
Pierangelo Masarati
f2a9089e4d
cleanup most of the -pedantic warnings (ITS#2884) and other small fixes
2003-12-17 20:55:46 +00:00
Kurt Zeilenga
271fff13de
Sync with HEAD
2003-12-17 17:55:27 +00:00
Luke Howard
516fd0ff50
First round of SLAPI cleanups - use slapi_int_XXX for internal functions
...
(slapi_x_XXX is still reserved for exported functions that are not part
of the SLAPI specification)
2003-12-16 15:49:31 +00:00
Pierangelo Masarati
2d948c7106
fix a couple of (too optimistic) comments...
2003-12-16 14:25:36 +00:00
Luke Howard
c8f62b12d3
Honour any controls that are sent by a SLAPI plugin
2003-12-16 11:17:54 +00:00
Pierangelo Masarati
8fa476a5c6
line up comments and code
2003-12-16 11:05:52 +00:00
Pierangelo Masarati
4e83a282d0
improve error handling for attr val ACL syntax
2003-12-16 10:56:21 +00:00
Luke Howard
0bcddbc908
Don't leak SLAPI_RESCONTROLS when free'ing parameter block - these
...
are allocated by the plugin
2003-12-16 05:59:50 +00:00
Kurt Zeilenga
a736f237f8
Deprecate +objectClass in favor of @objectClass per IETF discussions
2003-12-16 05:55:52 +00:00
Kurt Zeilenga
e3ffc1b165
Revert last commit
2003-12-16 01:55:56 +00:00
Pierangelo Masarati
e2483d8a9b
honor '!' (objectClass negation) when checking attribute presence in list
2003-12-16 01:10:33 +00:00
Pierangelo Masarati
ee34f3fb64
add to 'val[.<style>=<value>' ACLs special match styles for DN-valued attributes; add negated objectClass to attribute name lists for ACLs and partial replication
2003-12-16 00:49:10 +00:00
Howard Chu
6e6bef8f56
Fix - need to initialize lutil_passwd.
2003-12-16 00:39:29 +00:00
Pierangelo Masarati
bc972e0656
allow 'AUTHZ' mech in proxyAuthz control to allow also the <mech> part of the 'u:' user
2003-12-15 18:19:14 +00:00
Pierangelo Masarati
3a5c53a8b1
typo
2003-12-14 15:36:46 +00:00
Pierangelo Masarati
b4629f1e79
fix previous commits
2003-12-14 14:08:15 +00:00
Pierangelo Masarati
588f1f6185
resolve naming conflicts when compiling rwm overlay as static (will disappear as soon as rwm stuff is removed from back-ldap/back-meta)
2003-12-14 11:13:25 +00:00
Kurt Zeilenga
4d29df5bd1
Add LDAP_DEPRECATED macro
...
Need to remove use of deprecated functions.
2003-12-14 02:47:42 +00:00
Kurt Zeilenga
5b0236f4ae
Add u: comment
2003-12-13 23:41:44 +00:00
Kurt Zeilenga
1fadacaa31
Forward parse the uauthzid. A realm cannot be specified unless
...
a mechanism is specified. (Few mechanisms (DIGEST-MD5 only) support
separate realms.)
2003-12-13 23:38:05 +00:00
Pierangelo Masarati
4602c935f7
saslAuthzTo/From stuff
...
when comparing IDs to saslAuthzTo/From values, the saslAuthzTo
saslAuthzFrom values can take different forms:
dn[.<style>]:<pattern>
<style> ::= exact ; exact match
children ; children of <pattern> match
subtree ; <pattern> or children of <pattern> match
regex ; <pattern> is regcomp() & regexec()
if no <style>, then exact is assumed
u[.<mech>][/<realm>]:<user>
when parsing a proxyAuthz value, only exact DN is allowed,
and no <mech> can be specified. <user> cannot contain ':'
and <mech> cannot contain '/'.
2003-12-13 23:02:59 +00:00
Howard Chu
0d8613c274
Use c_authmech when c_sasl_bind_mech is empty
2003-12-13 22:43:01 +00:00
Howard Chu
e85cd1e154
Fix prev commit, use c_authtype
2003-12-13 22:16:03 +00:00
Howard Chu
d9aec4ef28
Always set c_authmech
2003-12-13 21:39:51 +00:00
Kurt Zeilenga
4bedf015f0
cleanup
2003-12-13 18:57:00 +00:00
Kurt Zeilenga
dbc37977f2
Look for the '@' in userid@realm in reverse so that a@b@c results
...
in userid of a@b and realm of c.
2003-12-13 17:25:59 +00:00
Pierangelo Masarati
6e5ddd6420
note a potential problem
2003-12-13 17:21:17 +00:00
Pierangelo Masarati
5a00f25542
conn must be non-null
2003-12-13 15:29:49 +00:00
Pierangelo Masarati
d6bc071dd9
add subtree/children styles to saslAuthzTo/From; 'dn:' now defaults to exact
2003-12-13 12:23:56 +00:00
Pierangelo Masarati
43db7cf4bf
cleanup saslauthz code
2003-12-13 10:58:31 +00:00
Pierangelo Masarati
529a03df53
use dedicated admin identity to proxyAuthz
2003-12-13 10:57:42 +00:00
Pierangelo Masarati
9c5fe98a79
declare overlays_init()
2003-12-13 10:57:13 +00:00
Howard Chu
b011c51390
Clean up entry initialization
2003-12-13 02:00:07 +00:00
Kurt Zeilenga
552a51ca50
Tweak the codes
2003-12-11 07:28:01 +00:00
Jong Hyuk Choi
fa2aa5bb25
fix for concurrent persistent searches
2003-12-11 00:04:52 +00:00
Howard Chu
2aca8de6b3
Whitespace
2003-12-10 08:52:19 +00:00
Howard Chu
e28d089a93
Fixup overlay build environment
2003-12-10 08:45:53 +00:00
Pierangelo Masarati
409003a731
make names unique, since back-ldap/back-meta still have/use suffix_massage* routines
2003-12-10 00:15:02 +00:00
Pierangelo Masarati
b5bba83a31
add rwm overlay configure and make stuff (need autoconf/autoheader ...)
2003-12-09 23:50:10 +00:00
Pierangelo Masarati
0176e02398
cleanup handling of unknown directives ...
2003-12-09 23:49:13 +00:00
Howard Chu
cc743d2c1f
ITS#2865 don't try to calloc 0 bytes, log an error and return instead.
...
Don't crash in slapcat when NULL entry is returned.
2003-12-09 20:10:44 +00:00
Howard Chu
67ee75ccd8
ITS#2868 check result from slap_startup
2003-12-09 19:26:14 +00:00
Howard Chu
313bb1dcae
Minor cleanup. Still need to address ITS#2866 point 2
2003-12-09 19:09:58 +00:00
Kurt Zeilenga
38ccdaf7a3
unifdef -DLDAP_CONTROL_PAGEDRESULTS (as it is always defined)
2003-12-08 18:16:07 +00:00
Kurt Zeilenga
fbba83b20f
notices and acknowledgements
2003-12-08 17:41:40 +00:00
Kurt Zeilenga
fd5ded3afb
notices and acknowledgements
2003-12-07 19:19:18 +00:00
Howard Chu
be1a728c5b
Added sc_next and sc_cleanup to slap_callback
2003-12-07 08:51:23 +00:00
Howard Chu
0690f79a5a
Cleanup unknown config directive handling.
2003-12-07 07:07:00 +00:00
Howard Chu
864aea13f7
ITS#2864 removed sl_mark/sl_release code
2003-12-07 04:00:47 +00:00
Howard Chu
b5052153c2
Minor cleanup
2003-12-07 03:59:54 +00:00
Howard Chu
b0b3eff457
ITS#2864 don't use sl_mark/release.
2003-12-07 03:41:10 +00:00
Howard Chu
9d3c808428
Fix bogus free
2003-12-06 23:54:22 +00:00
Howard Chu
44fc00b4c0
Remove trailing whitespace
2003-12-06 23:53:46 +00:00
Howard Chu
11a4b3eb57
Use runqueue for consistency checker
2003-12-06 23:32:56 +00:00
Howard Chu
74db966ebb
Move SLAB_SIZE def to slap.h
2003-12-06 22:30:45 +00:00
Howard Chu
0cef026e98
More memory cleanup
2003-12-06 21:55:47 +00:00
Kurt Zeilenga
c425a7ce1d
Move back-tcl to the Attic
2003-12-06 21:37:44 +00:00
Kurt Zeilenga
da6d557cdc
Notices
2003-12-06 19:25:01 +00:00
Howard Chu
c59e89de2f
Clear ocflags
2003-12-06 14:39:07 +00:00
Pierangelo Masarati
4ccd44af8b
improvements
2003-12-06 14:35:45 +00:00
Howard Chu
1a9064794a
Fix add invocation
2003-12-06 13:48:06 +00:00
Howard Chu
7751af3f74
Perform database updates as root
2003-12-06 11:25:37 +00:00
Howard Chu
066a80bbbb
Moved proxy caching to overlay
2003-12-06 11:12:53 +00:00
Howard Chu
1762b5b71d
Overlay build environment, remove internal proxycache support
2003-12-06 11:04:39 +00:00
Howard Chu
64e337eacf
Overlay build environment
2003-12-06 10:59:27 +00:00
Pierangelo Masarati
723bc044e0
changes required to use rwm overlay
2003-12-06 10:54:10 +00:00
Pierangelo Masarati
f02b6cfba7
first cut at dn rewrite/attr mapping overlay
2003-12-06 09:53:41 +00:00
Howard Chu
485f478707
Don't free default_referral
2003-12-06 06:12:45 +00:00
Luke Howard
e114ecbad5
Use gmtime_r()/localtime_r if HAVE_GMTIME_R/HAVE_LOCALTIME_R is defined (need to add autoconf check)
2003-12-06 05:50:47 +00:00
Luke Howard
399b57eada
Use gmtime_r() if HAVE_GMTIME_R is defined (need to add autoconf check)
2003-12-06 05:37:00 +00:00
Luke Howard
369b1515db
Ensure exact DNs are normalized in slap_parseURI.
2003-12-06 02:16:39 +00:00
Kurt Zeilenga
fc11d8312c
ITS#2861 fix: don't try to dup a NULL reqdata...
2003-12-05 19:54:42 +00:00
Howard Chu
58355c5bc2
Proxy-cache rewritten as an overlay
2003-12-05 15:49:38 +00:00
Howard Chu
3152932e96
Moved ldbm into back-ldbm. No more libldbm.
2003-12-04 22:38:54 +00:00
Kurt Zeilenga
20c8ea8a44
Update Mark's notice (with permission)
2003-12-04 21:12:17 +00:00
Howard Chu
2d07fc4f3b
ITS#2740 - link librewrite statically into back-ldap when it's built
...
as a module. Since back-meta also depends on back-ldap, this fixes
both at once.
2003-12-04 10:50:36 +00:00
Howard Chu
8c357efd28
ITS#2521 log names of unrecognized attributeTypes in search filters
2003-12-04 01:10:02 +00:00
Howard Chu
32752fb396
ITS#2836 add SLAPI_ADD_RESCONTROL support, fix SLAPI_RES_CONTROLS def
2003-12-04 00:52:03 +00:00
Howard Chu
841e865910
Reorganize, attempt some fault tolerance...
2003-12-03 12:30:28 +00:00
Howard Chu
8ba2296dc8
ITS#2795 fix double-free on failure, reset dn2id database
2003-12-03 11:31:43 +00:00
Howard Chu
e325a3a923
ITS#2795 fix hang. failure still leaves corrupt database though.
2003-12-03 11:06:00 +00:00
Pierangelo Masarati
93d0c25c45
syntax improvement (ITS#2852)
2003-12-03 00:29:29 +00:00
Kurt Zeilenga
4898913fb6
ITS#2807: version option support (-V[V]) based on patch submitted
...
by <luca.scamoni@sys-net.it>.
2003-12-02 16:57:34 +00:00
Howard Chu
7fd21ada07
ITS#2764, #2781 revert backend.c patch, just catch the NULL referral
...
case in extended_op
2003-12-02 03:01:49 +00:00
Howard Chu
49b0985c88
Fix prev commit, return generated passwd
2003-12-02 00:49:26 +00:00
Kurt Zeilenga
ed369e02af
Don't search for proxy authz control unnecessarily.
...
Add note regarding control use with the Bind operation.
2003-12-01 21:49:52 +00:00
Jong Hyuk Choi
da38356d16
fix prev commit
2003-12-01 18:09:48 +00:00
Jong Hyuk Choi
2bb75d5469
misc cleanup
2003-12-01 17:56:36 +00:00
Howard Chu
59e129158c
Removed passwd.c
2003-12-01 12:55:05 +00:00
Howard Chu
b552cdb5c7
Let the backend have a crack at the op (for back-ldap etc.), then do it
...
in the frontend if the backend doesn't.
2003-12-01 12:51:54 +00:00
Howard Chu
94f7141dda
Consolidate passwd extop in frontend
2003-12-01 12:38:11 +00:00
Howard Chu
77f8a2d72f
Added slap_null_cb
2003-12-01 12:20:51 +00:00
Howard Chu
7b423b20b0
Fix slapi include path
2003-12-01 12:14:39 +00:00
Howard Chu
42d8c0a39d
Added slap_null_cb
2003-12-01 12:03:20 +00:00
Pierangelo Masarati
bd134e22e5
ITS#2851
2003-12-01 11:12:04 +00:00
Pierangelo Masarati
cdb11fc5eb
add administrative bind and proxyAuthz control to enable bound operations in distributed directories (need to manually #define LDAP_BACK_PROXY_AUTHZ and patches from ITS#2851 and ITS#2852)
2003-12-01 08:04:51 +00:00
Pierangelo Masarati
2c68cb41f6
this memory will be freed by free()
2003-12-01 08:01:31 +00:00
Pierangelo Masarati
a4c5f54601
detect problems in saslauthz
2003-12-01 07:59:30 +00:00
Pierangelo Masarati
ff919168fb
if rule is an URI, must have a filter field
2003-12-01 07:50:27 +00:00
Kurt Zeilenga
0398bad8f0
Cleanup
2003-12-01 01:54:11 +00:00
Hallvard Furuseth
e491e9e522
Cleanup: Remove unused label 'no_co_op_free:' in connection_operation().
2003-11-30 16:14:40 +00:00
Jong Hyuk Choi
fb91d430f2
it seems more appropriate to return LDAP_SUCCESS.
2003-11-30 05:45:13 +00:00
Jong Hyuk Choi
0675a320d7
Fix copy & paste error. (ITS#2850)
2003-11-30 05:29:19 +00:00
Kurt Zeilenga
9f149d70f6
ITS#2847: fix syncCookie value_match
2003-11-30 03:30:39 +00:00
Kurt Zeilenga
041c8dacc2
Misc cleanup
2003-11-30 01:19:40 +00:00
Kurt Zeilenga
12d5c6bba2
Move global to ldapsync
2003-11-30 01:09:12 +00:00
Howard Chu
0a5f1e8516
#ifdef for slap_auxprop_store
2003-11-29 23:01:56 +00:00
Kurt Zeilenga
bd1543ce44
notices
2003-11-29 22:38:48 +00:00
Kurt Zeilenga
f0cd57eb9b
cleanup
2003-11-29 22:37:07 +00:00
Kurt Zeilenga
62e6779e4c
Cleanup rcsid comments
2003-11-29 18:03:43 +00:00
Pierangelo Masarati
3aa27601e1
fix 'control reaches end of non-void function'
2003-11-29 18:00:07 +00:00
Pierangelo Masarati
99a3164972
fix uninitialized buffer (ITS#2849)
2003-11-29 17:58:49 +00:00
Pierangelo Masarati
43f7494a5d
remove /* in comments
2003-11-29 17:52:05 +00:00
Pierangelo Masarati
e30a736354
clarify auxprop_store member type
2003-11-29 17:50:50 +00:00
Hallvard Furuseth
51f1b8ccd7
Avoid /* inside comments.
2003-11-29 17:29:44 +00:00
Hallvard Furuseth
d0a0687a26
Avoid 'suggest parentheses' warnings.
2003-11-29 17:27:44 +00:00
Hallvard Furuseth
3d522a0c9f
Format %d -> %ld.
2003-11-29 17:26:23 +00:00
Pierangelo Masarati
71d488c28f
fix uninitialized var
2003-11-29 17:24:34 +00:00
Howard Chu
65c26598d5
ITS#2846 - make veryclean
2003-11-29 12:01:10 +00:00
Howard Chu
ddd056158e
Add auxprop_store support for Cyrus SASL 2.1.16+
2003-11-29 07:02:16 +00:00
Hallvard Furuseth
1fc24a3a82
Fix format errors: %d -> %ld, and add (long) casts as appropriate.
2003-11-28 22:06:54 +00:00
Hallvard Furuseth
2448725f9a
#include lber-int.h, to get ber_strndup().
...
The right fix may be for slap.h to #include it instead, since
ber_strndup() is used via SLAP_STRNDUP() which is #defined in slap.h.
2003-11-28 22:05:38 +00:00
Hallvard Furuseth
546e074be0
Kill '//'-style comment.
2003-11-28 22:03:13 +00:00
Hallvard Furuseth
d45a47d40f
Delete $(LDIF_LIBS). The library has been merged into -llutil.
2003-11-28 22:01:44 +00:00
Kurt Zeilenga
9d811eb1fa
Notices
2003-11-28 21:08:20 +00:00
Kurt Zeilenga
410d514461
Notices and acknowledgements
2003-11-28 21:07:50 +00:00
Kurt Zeilenga
7000d76879
notices
2003-11-28 20:24:54 +00:00
Kurt Zeilenga
0bc23d571e
Fix last commit
2003-11-27 06:45:08 +00:00
Kurt Zeilenga
3e5875d7e7
notices and acknowledgements
2003-11-27 06:35:49 +00:00
Kurt Zeilenga
a3d8cda201
notices and acknowledges
2003-11-27 06:35:14 +00:00
Kurt Zeilenga
674e71710f
Notice and acknowledgements
...
"this is an altered version" statement
2003-11-27 02:35:20 +00:00
Kurt Zeilenga
7017749fb4
Notices and acknowledgements
2003-11-27 01:42:27 +00:00
Kurt Zeilenga
4e15a84452
Updated notices
2003-11-27 01:17:14 +00:00
Jong Hyuk Choi
4ae382fd79
misc updates
...
- syncrepl : id -> rid
- man page update
2003-11-26 21:37:44 +00:00
Jong Hyuk Choi
5d411fd963
Another patch for the multi syncrepl thread support
2003-11-26 20:40:16 +00:00
Jong Hyuk Choi
1fdda703e6
Support multiple sync replication at the consumer :
...
1) simultaneous operation of multiple active sync replication threads
2) cookie management for individual sync replication thread
(include rid=%3d to the slapd cookie command line option (-c))
2003-11-26 19:49:47 +00:00
Kurt Zeilenga
c43ad3b62f
Notes and Acknowledgements
2003-11-26 18:19:00 +00:00
Kurt Zeilenga
b9e8a942aa
notices and acknowledgements
2003-11-26 17:42:56 +00:00
Kurt Zeilenga
0f447a75c4
notices and acknowledgements
2003-11-26 17:34:58 +00:00
Kurt Zeilenga
fb88a1176e
notices and acknowledgements
2003-11-26 17:28:33 +00:00
Kurt Zeilenga
595fcbd29b
notices and acknowledgements
2003-11-26 17:17:26 +00:00
Kurt Zeilenga
c779e5b890
Notices and acknowledgements
2003-11-26 16:52:33 +00:00
Kurt Zeilenga
f6b9ac1338
Update notices and acknowledgements
2003-11-26 16:05:06 +00:00
Kurt Zeilenga
e3a4c4ec9c
Notice/Acknowledge updates
2003-11-26 02:58:56 +00:00
Kurt Zeilenga
b24f96cd51
Berkeley DB 4.2 support (DB 4.2 required by default)
...
libldif to libutil updates
notice updates
2003-11-25 23:22:12 +00:00
Howard Chu
2bfb0bdeb8
Fix spurious lock messages from slapcat
2003-11-25 10:31:10 +00:00
Jong Hyuk Choi
84a7381225
misc comment update
2003-11-24 17:45:44 +00:00
Jong Hyuk Choi
b6789f27b4
cleanup
2003-11-24 16:42:07 +00:00
Jong Hyuk Choi
40365af3f9
change default syncrepl base
2003-11-24 16:34:45 +00:00
Kurt Zeilenga
9259a8c558
hide openldapACI
2003-11-22 18:24:15 +00:00
Kurt Zeilenga
31f34d6985
Misc Update
2003-11-20 06:14:04 +00:00
Kurt Zeilenga
35dc15ad66
Normalize to IBM's OPL notice (with permission).
2003-11-20 05:11:37 +00:00
Kurt Zeilenga
986aabae01
Update to basic notice.
2003-11-20 04:59:01 +00:00
Kurt Zeilenga
b83074c348
Formating
2003-11-20 04:45:08 +00:00
Jong Hyuk Choi
efdd0fb6f9
add copyright heading (for replca management modifications)
2003-11-20 02:15:42 +00:00
Jong Hyuk Choi
f97dc983ac
Collective entryUUID transmission of PRESENT messages in a single PDU
...
(refer to draft-zeilenga-ldup-sync-04.txt)
2003-11-20 02:14:47 +00:00
Jong Hyuk Choi
89ac237d7c
slaptools : normalize entryUUID
2003-11-20 01:13:00 +00:00
Howard Chu
b179e05ea1
For previous, assert (writewaiter==0) in conn_destroy too.
2003-11-20 00:54:46 +00:00
Kurt Zeilenga
21796e671a
Don't assume offsetof(foo,firstelement) is zero
2003-11-19 18:04:49 +00:00
Howard Chu
1989cf6f42
More verbose error messages for Reject log
2003-11-19 10:23:08 +00:00
Howard Chu
d31a3fb981
ITS#2570 - don't permanently give up on TLS due to transient failures
2003-11-19 09:25:56 +00:00
Howard Chu
5083977fee
Cleanup TLS library, for ITS#2620
2003-11-19 09:01:13 +00:00
Jong Hyuk Choi
e9115c2f09
exchange normalized entryUUID
2003-11-19 07:28:42 +00:00
Howard Chu
a718cb335c
Unbind all connections on shutdown
2003-11-19 05:23:17 +00:00
Jong Hyuk Choi
91e69fc335
add slap_uuidstr_from_normalized()
2003-11-19 00:45:59 +00:00
Jong Hyuk Choi
9965ccc224
add slap_uuidstr_from_normalized() - any better place to put this ? liblutils ?
2003-11-19 00:45:20 +00:00
Howard Chu
86c0f733a4
Cleanup prev commit, assert if writewaiter != 0 in init
2003-11-18 22:55:53 +00:00
Jong Hyuk Choi
11a8655bc8
heading update
2003-11-18 22:42:41 +00:00
Jong Hyuk Choi
8ee301e011
csn format update & cleanup
2003-11-18 22:42:13 +00:00
Howard Chu
43a843dbf0
ITS#2832 init conn->c_writewaiter to 0
2003-11-18 22:18:33 +00:00
Kurt Zeilenga
99ba95ab92
cleanup
2003-11-18 22:11:11 +00:00
Jong Hyuk Choi
f6db6d336f
misc cleanup
2003-11-18 19:08:33 +00:00
Pierangelo Masarati
75244afd8d
silence warning?
2003-11-14 18:41:42 +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
e61748780b
ITS#2816 init_module for dynamic HDB
2003-11-13 21:49:48 +00:00
Howard Chu
f4649fbde3
ITS#2825 fix SASL internal searches
2003-11-13 21:42:28 +00:00
Howard Chu
14ea115209
ITS#2827 patch from Masato Taruishi
2003-11-13 08:22:03 +00:00
Jong Hyuk Choi
2d7481d662
adjust cookie precedence : command line cookie has higer precedence over stored cookie
2003-11-13 01:11:07 +00:00
Jong Hyuk Choi
64dd6a0760
fix for the cascading replication (reenabling test019)
2003-11-13 00:11:44 +00:00
Jong Hyuk Choi
0db0d4e005
fix typo
2003-11-12 07:05:12 +00:00
Jong Hyuk Choi
e36f1398f0
misc cleanup
2003-11-12 00:24:11 +00:00
Jong Hyuk Choi
f3586499d0
update ldapsync/syncrepl code according to the new version of
...
the protocol (draft-zeilenga-ldup-sync-04)
2003-11-11 20:25:19 +00:00
Jong Hyuk Choi
279760a467
1. Session history support
...
- memory based session history to minimize sync traffic
- when client is covered by a session history, then
[add+delete] mode is used
- when client cookie is not covered by the history because
the cookie is too outdated and/or the history is truncated,
[add+present] mode is used
2. Sync cookie syntax : comma separated name=value pairs
- csn=yyyymmddhh:mm:ssZ#0xSSSS#r#ssssr,sid=nnn
2003-11-10 02:44:25 +00:00
Kurt Zeilenga
bfafd42163
Code and logging cleanup
2003-11-06 03:42:46 +00:00
Jong Hyuk Choi
cc5e417234
second level interval support, interval=dd:hh:mm:ss
...
changed the test scripts and test conf files accordingly
2003-11-05 16:10:43 +00:00
Howard Chu
d46195d08d
ITS#2805 fix core dump using LDBM
2003-11-03 09:54:28 +00:00
Howard Chu
ccf224a759
ITS#2808 fix UUIDNormalize, use it.
2003-11-03 08:22:13 +00:00
Howard Chu
f2e1d7434b
Fix ASCII_HEX tests
2003-11-03 07:00:16 +00:00
Howard Chu
8acb1a0466
Fix refresh mode rescheduling
2003-11-03 06:57:13 +00:00
Howard Chu
fab84134ba
ITS#2806 fix abort
2003-11-01 23:03:44 +00:00
Kurt Zeilenga
80fa73bf8c
Update entryUUID to latest draft specification
2003-10-31 17:41:31 +00:00
Hallvard Furuseth
701f6b9d5d
cast isdigit argument to unsigned char.
2003-10-30 22:55:02 +00:00
Kurt Zeilenga
4eb36216db
ITS#2801: fix str2entry trace
2003-10-30 22:45:18 +00:00
Kurt Zeilenga
b1a1f46d64
cleanup
2003-10-30 22:44:45 +00:00
Howard Chu
5ed0318b79
Fix retry on failure
2003-10-25 22:07:31 +00:00
Howard Chu
782d1be0ad
Fix prev commit, don't timeout outbound connections
2003-10-25 21:14:07 +00:00
Pierangelo Masarati
b51cd87a22
this should be the intended behavior
2003-10-25 16:32:17 +00:00
Kurt Zeilenga
c7f1e6e83c
More naming checks
2003-10-25 02:26:19 +00:00
Kurt Zeilenga
9e7749541b
Provide more descriptive naming violation error messages
2003-10-25 01:40:55 +00:00
Kurt Zeilenga
802671cad7
fix compile error
2003-10-24 17:34:33 +00:00
Howard Chu
941d1e5c72
Outbound connection management
2003-10-24 12:58:13 +00:00
Howard Chu
08676eb49d
Add support for outbound connections in main listener.
...
Restructure syncrepl/persist to use outbound connection manager.
2003-10-24 12:57:24 +00:00
Howard Chu
645c2bcb02
Drop unused arguments from syncrepl_add_glue
2003-10-24 08:10:16 +00:00
Howard Chu
f9a8093c83
Drop SLAPI support
2003-10-24 06:06:55 +00:00
Howard Chu
df74409d97
Fix prev commit
2003-10-24 06:01:55 +00:00
Howard Chu
01f7a7466b
SLAPI fix - no-op when slapi_plugins_used == 0
2003-10-24 05:58:42 +00:00
Kurt Zeilenga
d0c05e814d
Add a basic DIT content rule test.
...
Fix DIT rules to allow extensibleObject in AUX
unifdef -DSLAP_EXTENDED_SCHEMA
2003-10-24 04:40:32 +00:00
Howard Chu
ac7404eabd
Fix error recovery, cleanup session handles. Always reschedule task
...
at end of do_syncrepl; this fixes the problem of syncrepl never starting
if the master isn't up. Set sync interval to 60 seconds in persist mode;
it will retry connecting to the master when the master isn't up. Fail on
SASL at config time instead of at runtime when SASL is not enabled.
2003-10-24 04:11:28 +00:00
Howard Chu
7126ccf569
Fix caseExact/caseIgnore IA5 normalization
2003-10-23 05:28:22 +00:00
Howard Chu
bd1356f01e
ITS#2781 don't worry about missing updateref if SLAPD_MULTIMASTER
2003-10-23 01:50:12 +00:00
Howard Chu
b0a1f2e956
(clean up o_groups anyway)
2003-10-23 01:30:54 +00:00
Howard Chu
6ad5fd16ca
Use tmpmem for group cache, doesn't need cleanup
2003-10-23 01:29:56 +00:00
Howard Chu
102d8159a7
ITS#2779, cache group ACLs per operation instead of per-connection
2003-10-23 01:23:45 +00:00
Kurt Zeilenga
e81d17e357
cleanup
2003-10-23 01:16:06 +00:00
Kurt Zeilenga
25f2985024
Don't return garbage when plist is empty.
2003-10-23 01:15:36 +00:00
Howard Chu
942320dca1
Fix dnPrettyNormalize mem usage
2003-10-22 10:35:49 +00:00
Howard Chu
72ace288e8
Fix prev commit, avoid abort when entry is NULL
2003-10-22 07:57:25 +00:00
Howard Chu
95a5866965
Shortcut syncrepl candidate selection if CSN is up to date
2003-10-22 07:53:28 +00:00
Jong Hyuk Choi
11e23f6903
syncrepl_entry() return code fix (returns 1 when e needs to be freed)
2003-10-22 06:28:34 +00:00
Kurt Zeilenga
ce4b199485
Syncrepl code cleanup (namely prefix struct field names)
2003-10-22 05:19:30 +00:00
Jong Hyuk Choi
8b8383a85d
fix for changing si->syncCookie to bvarray
2003-10-21 22:02:30 +00:00
Howard Chu
ab2a7195d0
Fix cookie search
2003-10-21 08:26:58 +00:00
Kurt Zeilenga
4821c2c6ed
Avoid questionable use of strlen(), strcpy(), and strcat().
2003-10-20 22:23:11 +00:00
Howard Chu
7710791382
ITS#2684 keep psearch operations on the connection's active list so they
...
can be located by connection_abandon() during an unexpected close. Remove
the operations in bdb_abandon() etc.
2003-10-19 11:20:34 +00:00
Howard Chu
56498a59dd
ITS#2780, redundant cache add
2003-10-19 09:55:31 +00:00
Howard Chu
91ebcd87bd
Fix prev commit, syncrepl_add_glue must start from sufix
2003-10-19 08:57:30 +00:00
Howard Chu
b144ca2169
ITS#2684 fix bogus entry_free(), connection problem remains
2003-10-19 04:42:02 +00:00
Howard Chu
f0c8dcc331
ITS#2778 use real malloc for new entry, not sl_malloc
2003-10-19 02:18:38 +00:00
Howard Chu
08407b5b00
More malloc cleanup
2003-10-19 00:30:55 +00:00
Luke Howard
a7619c4ce9
Return duplicated entry from entry_dup() - interesting that
...
this was actually working when compiling without optimization
2003-10-18 15:07:51 +00:00
Howard Chu
b6835be962
ITS#2747, Reorganize syncrepl, fix some memleaks. More remain.
2003-10-18 14:13:37 +00:00
Kurt Zeilenga
aa225c2c70
Explicitly mark attribute/assertion syntax of values to be normalized
2003-10-18 06:18:05 +00:00
Howard Chu
dee604c608
ITS#2771 fix memory usage in LDAPDN_rewrite, fix normalizer
2003-10-18 05:49:58 +00:00
Kurt Zeilenga
c57db6c33e
Add basic support for certificateMatch (as an extensible matching rule)
2003-10-18 04:20:19 +00:00
Kurt Zeilenga
3fbe93c704
Rework support for certificate exact matching based, in part,
...
on patch submitted by Mark Ruijter <openldap@siennax.com>.
This addresses (hopefully) ITS 2702, 2703, 2719, 2771.
Additional work:
fix extraneous frees in libldap/getdn.c x509 rewrite routine
indexing
2003-10-18 02:39:08 +00:00
Kurt Zeilenga
e3a0148328
Fix modify attrs= overflow bug
2003-10-18 02:33:15 +00:00
Kurt Zeilenga
3f523b4303
Add a trace message to dnX509normalize
2003-10-17 22:38:19 +00:00
Howard Chu
4c5c632d70
ITS#2769 - NT SIGBREAK handling
2003-10-15 12:16:35 +00:00
Kurt Zeilenga
81ed052186
Improve printing of ACLs
2003-10-15 07:48:01 +00:00
Kurt Zeilenga
f1e5201bf7
cleanup
2003-10-15 03:08:43 +00:00
Jong Hyuk Choi
9d59b5a41c
ITS #2766 (remove slap_syncrepl_bvc & slap_syncrepl_cn_bvc from proto-slap.h)
2003-10-14 20:40:44 +00:00
Jong Hyuk Choi
13f981fdd4
remove #include <db.h> (ITS#2765)
2003-10-14 20:22:09 +00:00
Jong Hyuk Choi
490d9e55d4
fix slap_syncrepl_cn_bv
2003-10-14 16:26:01 +00:00
Jong Hyuk Choi
35455699e7
rq_mutex placing fix
2003-10-13 14:08:55 +00:00
Kurt Zeilenga
2d910bf1f8
Fix pdn assert
2003-10-12 22:34:14 +00:00
Kurt Zeilenga
ef3f20a064
Add a note that plaform #ifdefs are misplaced
2003-10-12 22:00:17 +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
Kurt Zeilenga
10622b1d0a
Further cleanup last commit.
2003-10-12 07:31:31 +00:00
Kurt Zeilenga
535c221599
Tentative fix for last comment (tests still running)
2003-10-12 07:19:27 +00:00
Kurt Zeilenga
dfcd732813
ITS#2757: fix parent-less add bug
2003-10-12 06:32:44 +00:00
Kurt Zeilenga
71f484bad8
Finish off berbuf fix
2003-10-12 06:07:02 +00:00
Kurt Zeilenga
767cf365ea
Initial fix for berbuf alignment bug (ITS#2760)
...
Needs to be applied to other stack allocated berbufs.
2003-10-12 04:45:09 +00:00
Howard Chu
5cd2c68a2b
ITS#2751 additional fix
2003-10-11 02:52:48 +00:00
Howard Chu
1e89a1daee
ITS#2751 reset op->o_callback before returning
2003-10-11 02:41:37 +00:00
Howard Chu
b5b036d9fb
ITS#2762 tweak SASL include paths
2003-10-11 01:24:44 +00:00
Kurt Zeilenga
81f1a24e1b
Generate pid/arg files after detaching
2003-10-10 02:07:24 +00:00
Jong Hyuk Choi
cdb7417765
misc syncrpel updates
2003-10-08 09:36:06 +00:00
Luke Howard
79a44ac26e
Don't duplicate e_bv in entry_dup()
2003-10-08 06:40:16 +00:00
Howard Chu
8c9f033aa5
Fix prev commit setting NO_GRANDKIDS incorrectly
2003-10-08 06:05:48 +00:00
Luke Howard
7a1c94acd3
Add entry_dup(); make slapi_entry_dup() use it
2003-10-08 00:48:33 +00:00
Jong Hyuk Choi
a8574a450f
slaptools update : replica promotion / demotion
...
new slapadd options
-p : promote : If the ldif file contains syncConsumerSubentries, convert
them to a single syncProviderSubentry. Its contextCSN
attribute has the largest value of the syncreplCookie
attributes of the syncConsumerSubentries.
syncProviderSubentry in the ldif file is retained.
-p -w : promote : Recalculate contextCSN based on entryCSN of each entry.
create Existing syncConsumerSubentries and syncProviderSubentry
are ignored and not added to the directory.
-r : demote : If the ldif file contains syncProviderSubentry, convert it
to a syncConsumerSubentry having the default syncrepl id
of 0. syncConsumerSubentries in the ldif file are retained.
-r -w : demote : Recalculate syncreplCookie based on entryCSN of each entry.
create Existing syncConsumerSubentries and syncProviderSubentry
are ignored and not added to the directory. The default
syncrepl id of 0 will be used for the new
syncConsumerSubentry.
-r -w -i %d[,%d]* : Using the comma separated list followed by the -i option,
it is possible to create multiple syncConsumerSubentries
having the syncrepl ids specified in the list.
syncreplCookie values of these sycnConsumerSubentries
will have the same value, either from the maximum
entryCSN value or from the contextCSN value of the
syncProviderSubentry.
2003-10-07 20:01:37 +00:00
Luke Howard
6c25cb17d5
Use slapi_entry_dup() instead of converting entry to string and back
2003-10-07 16:09:40 +00:00
Pierangelo Masarati
a78c03bb4a
fix a_nvals according to back-ldap implementation (ITS#2716; at least part of it)
2003-10-04 17:18:25 +00:00
Howard Chu
040a9cf64c
Fix HDB's use of IDL cache
2003-10-03 02:19:09 +00:00
Jong Hyuk Choi
bcb4529d9d
ITS#2744
2003-09-30 18:01:47 +00:00
Hallvard Furuseth
887ef60ea9
Fix typo in comment.
2003-09-30 17:11:44 +00:00
Hallvard Furuseth
8efd391832
#include "lutil.h", to get lutil_entropy(). Fix call to lutil_entropy().
2003-09-29 23:33:39 +00:00
Hallvard Furuseth
b10daf623f
Declare bdb_cache_entry_db_unlock().
2003-09-29 23:32:11 +00:00
Howard Chu
dcbca288a9
ITS#2745 reset bei_state when reusing an EntryInfo
2003-09-29 22:01:03 +00:00
Howard Chu
16cde39daa
ITS#2743 initialize rc
2003-09-29 19:54:53 +00:00
Hallvard Furuseth
6194b91ca9
Declare filter_escape_value_x() and make it static.
2003-09-29 14:09:31 +00:00
Hallvard Furuseth
705d789dbe
Move #include ldap_pvt.h after slap.h, to get ldap_bv2dn_x() & co.
2003-09-29 14:08:23 +00:00
Hallvard Furuseth
76dd417dc9
Plug memory leak in slap_get_csn().
2003-09-29 14:06:48 +00:00
Howard Chu
dbdfb8c0a3
Plug read_config memleak
2003-09-29 11:15:12 +00:00
Howard Chu
bdf86d44a8
ITS#2130 glued subordinates are not referrals, ignore ManageDSAit control
2003-09-29 10:39:41 +00:00
Howard Chu
0eb7ca22f7
Starting a collection of overlays
2003-09-29 05:49:39 +00:00
Howard Chu
0bb0551381
Initialization fixes
2003-09-29 05:04:43 +00:00
Howard Chu
a875d7df18
plug modrdn memleaks
2003-09-27 07:52:20 +00:00
Howard Chu
1bb48a06fc
ITS#2736 clear result strings
2003-09-27 07:36:20 +00:00
Howard Chu
c9ef0da66b
Don't timeout slow-running operations
2003-09-27 05:36:20 +00:00
Howard Chu
dcd777b0b8
Fix hdb cursor leak.
2003-09-27 05:17:08 +00:00
Luke Howard
8c8c89b8a9
reinstate first argument to bdb_cache_delete_cleanup()
2003-09-27 05:12:17 +00:00
Luke Howard
abaddd1c70
Cleanup SLAPI logging
...
Remove _SPARC hostname special case - gethostname() should work
2003-09-27 05:03:16 +00:00
Howard Chu
121c73d838
Add EntryInfo free list
2003-09-27 04:58:36 +00:00
Luke Howard
283c310302
Fix tree breakage - bdb_cache_delete_cleanup() only takes one argument
...
???
2003-09-27 04:24:31 +00:00
Luke Howard
ce17fd5f04
Don't leak SLAPI_RESULT_MATCHED
...
Call SLAPI_PLUGIN_PRE_RESULT_FN plugins
2003-09-27 03:59:40 +00:00
Luke Howard
613f493cae
Add slapi_dn_beparent, slapi_dn_parent and slapi_dn_isparent API.
2003-09-27 03:29:05 +00:00
Howard Chu
5c711a3b46
ITS#2741 yield before backing off
2003-09-27 03:16:38 +00:00
Luke Howard
a57956ac0f
Implementation of slapi_send_ldap_search_reference()
2003-09-26 17:10:03 +00:00
Howard Chu
1aabc02038
Fix typo in libslapi rule
2003-09-25 20:33:07 +00:00
Jong Hyuk Choi
4495320839
move c->c_n_ops_executing/completed to the right place
2003-09-25 20:14:53 +00:00
Howard Chu
25e145f8c8
Plug SLAPI leak
2003-09-25 11:28:31 +00:00
Jong Hyuk Choi
eee84463c0
do not cache internal search results for present entry priming
2003-09-25 07:49:50 +00:00
Jong Hyuk Choi
d5823fa912
no caching flag in Operation structure
2003-09-25 07:48:53 +00:00
Jong Hyuk Choi
67b485e3ee
revert changes for persistent search
2003-09-25 02:14:20 +00:00
Jong Hyuk Choi
d2320dbd7a
followup of the previous commit
2003-09-25 01:40:33 +00:00
Jong Hyuk Choi
cd108bb682
loose ends fixed
2003-09-25 00:59:27 +00:00
Howard Chu
76dd6bb6da
Revert to previous behavior:
...
always use DB_AUTO_COMMIT when opening a database, don't make it
dependent on an in-progress transaction
use mutex instead of DB lock for db access.
2003-09-25 00:27:22 +00:00
Howard Chu
c58ac9d8f1
Add memctx param to build_new_dn(). cleanup DN leaks.
2003-09-24 04:30:41 +00:00
Howard Chu
ece76c067f
Silence valgrind warnings of uninit'd memory
2003-09-24 03:03:53 +00:00
Howard Chu
7fd47cedb7
ITS#2735 - plug memory leaks
2003-09-24 00:32:27 +00:00
Jong Hyuk Choi
3e99679ca4
log the cause of the error when ldap_result() returns -1
2003-09-23 23:41:57 +00:00
Howard Chu
0b23dff298
ITS#2735 - plug memory leaks, cleanup
2003-09-23 22:52:35 +00:00
Howard Chu
30f3b91ddc
ITS#2735 - plug memory leaks
2003-09-23 22:52:35 +00:00
Howard Chu
772ce3b911
Plug a leak.
2003-09-23 17:14:01 +00:00
Howard Chu
d7771374e2
Fix alignment issues in hdb_dn2idl_internal
2003-09-23 10:55:57 +00:00
Howard Chu
99d2b7e7e9
Fix back-hdb test006 failures due to bad return code in hdb_dn2idl
2003-09-23 08:16:23 +00:00
Luke Howard
114d0081c1
Fix for Howard's fix for ITS #2704
...
The oblique SLAPI interface requires that preop bind plugins return 1 in the
case that they have authoritatively handled the bind; of course, this is
the same return value that doPluginFNs() returns in the case of no plugins
being called.
This patch should distinguish between the two cases...
2003-09-23 07:40:29 +00:00
Howard Chu
28d466ba66
ITS#2526 Fix slapi builds
...
note that -lltdl is added redundantly if --enable-modules was specified.
It seems to me that --enable-slapi should have implied --enable-modules
from the beginning.
2003-09-23 06:11:38 +00:00
Howard Chu
a8ae9bb31d
ITS#2704 don't hang client when no preop plugins are loaded
2003-09-23 05:35:38 +00:00
Howard Chu
089a4852d6
ITS#2678 complain if updateref is missing on a slave database
2003-09-22 18:54:08 +00:00
Luke Howard
ff073b8cd5
Check for HAVE_LONG_LONG in STRTOL macro
2003-09-22 14:01:31 +00:00
Howard Chu
5fb7ea2294
Cleanup prev commit
2003-09-22 10:11:10 +00:00
Howard Chu
0342904699
back-hdb caching updates, use EntryInfo cache for hdb_dn2idl.
2003-09-22 08:37:32 +00:00
Howard Chu
365a3bac3f
Tweak entry caching: only maintain LRU list on cached entries, not
...
on arbitrary EntryInfo.
2003-09-21 23:08:44 +00:00
Howard Chu
fddbe13c6e
Revert broken index optimizations
2003-09-21 10:11:46 +00:00
Luke Howard
3846a8881a
Define SLAP_STRTOL macro for integerBitAndMatch() and integerBitOrMatch()
...
usage - necessary to use larger types for interop with a certain client
that would expect the assertion (attr:1.2.840.113556.1.4.803:=2147483648)
to match a signed value (eg. -2147483646).
There are probably better / more portable solutions; review appreciated.
2003-09-21 06:26:43 +00:00
Howard Chu
6da0f1e48e
ITS#2573 dynamic group support
...
moved labeledURI into system schema
attribute types that inherit from labeledURI may be used in dynamic
groups e.g. access to * by group/groupOfURLs/memberURL=foo
2003-09-20 08:16:04 +00:00
Howard Chu
1e808d5ec9
Fix crashes if test_filter is called with NULL op
2003-09-20 08:12:22 +00:00
Howard Chu
20902a2be3
Fix segfault if entry_get is called with NULL attribute
2003-09-20 07:48:57 +00:00
Howard Chu
bb13266a15
Plug memleak in slap_parseURI
2003-09-20 05:55:48 +00:00
Howard Chu
f2c3ba16d6
cn=ldapsync berval cleanup
2003-09-20 03:26:40 +00:00
Howard Chu
93248cee58
Tweak normalization in slap_entry2mods
2003-09-20 03:25:05 +00:00
Howard Chu
1240c70ff4
ITS#2497, implement value-level ACLs:
...
access to attr=foo val.regex=bar.*
2003-09-20 03:23:10 +00:00
Kurt Zeilenga
3ca86ffffd
Hide experimental features
2003-09-19 18:41:28 +00:00
Kurt Zeilenga
a9a28794bd
Hide experimental controls
2003-09-19 18:38:35 +00:00
Kurt Zeilenga
3e49a9cf6e
add "proxy" to "authorization" in a few places
2003-09-19 18:23:37 +00:00
Howard Chu
1881ae872f
ITS#2729 fix typos
2003-09-19 00:49:33 +00:00
Jong Hyuk Choi
f6d883d901
error behavior fix and TODO
2003-09-18 06:04:28 +00:00
Jong Hyuk Choi
a0331a0487
missing or empty attrs list in a syncrepl specification
...
is changed to mean attrs="*"
2003-09-17 23:06:57 +00:00
Luke Howard
9459a7f535
fix typo
2003-09-17 11:05:06 +00:00
Jong Hyuk Choi
537ccc3f5f
fix for persistent search termination (ITS#2724)
...
- the consumer slapd did not terminate when the provider is alive
- use a timeout in ldap_result() of syncrepl.c
2003-09-17 10:34:10 +00:00
Jong Hyuk Choi
d336d7783b
fix config file processing (ITS#2722)
2003-09-17 05:34:47 +00:00
Howard Chu
94e88c3700
ITS#2679 don't use cached ACL state from different attribute
2003-09-16 22:03:26 +00:00
Kurt Zeilenga
99f968b597
Initial support for pre/post read controls.
...
TODO:
Fix transactional consistency
Add client response control handling
2003-09-16 18:56:04 +00:00
Kurt Zeilenga
8f0bc2d55b
cleanup
2003-09-15 21:53:58 +00:00
Kurt Zeilenga
4679178db2
Don't pass NULL when string is expected.
...
Other Cleanup
2003-09-15 21:22:20 +00:00
Luke Howard
b299d7e067
Modifications must be copied before calling slap_mods_check() because
...
the pretty function may replace values which are owned by the SLAPI plugin
slapi_entry_dup() optimization - avoid string re-encoding
Fix slapi_add_internal() logic errors (was this ever tested?)
Don't attempt to free entries that have been cached; see new internal
slapi_add_entry_internal_locked() API
2003-09-15 06:53:54 +00:00
Howard Chu
aee837c999
More deadlock tweaks.
2003-09-14 10:27:59 +00:00
Howard Chu
41957e5129
ITS#2649, never defer Abandon requests
2003-09-13 11:15:23 +00:00
Howard Chu
370fd22870
Add comment about normalized values in mods vs entry attributes
2003-09-13 09:51:28 +00:00
Jong Hyuk Choi
c83f1812ef
fix in slap_entry2mods()
2003-09-13 00:36:14 +00:00
Jong Hyuk Choi
3868f3b5a7
LDAP_SASL_INTERACTIVE -> LDAP_SASL_QUIET
2003-09-12 22:49:14 +00:00
Jong Hyuk Choi
b39039a141
fix for Makefile change
2003-09-12 21:06:29 +00:00
Howard Chu
a2cfda21cd
Fix prev commit
2003-09-12 19:40:04 +00:00
Howard Chu
61155ca8e8
Fix prev commit
2003-09-12 18:53:59 +00:00
Howard Chu
72adc38cdf
Construct ctxcsn entries directly, plug memory leaks, remove
...
dependency on slap_mods_check and slap_mods2entry
2003-09-12 18:52:34 +00:00
Howard Chu
10811b6f51
Clarify/standardize library version mismatch error messages
2003-09-12 00:54:21 +00:00
Luke Howard
b3e8d9189c
Fix SLAPI bind pre-operation plugin regression
2003-09-11 09:04:03 +00:00
Jong Hyuk Choi
d5be4896a3
add bdb_get_commit_csn() for use in bdb_search
2003-09-10 17:03:01 +00:00
Kurt Zeilenga
6f39517929
ITS#2707: fix 'access to dn.subtree="" by ...' directives
2003-09-10 02:33:36 +00:00
Kurt Zeilenga
a1b9d3148e
subtree ACI patch from Ralf
2003-09-09 18:37:31 +00:00
Jong Hyuk Choi
005afc86e4
more EntryInfo handling fix code (overriding the prev fix)
2003-09-09 01:25:58 +00:00
Jong Hyuk Choi
4cda6127ee
use of bdb_modify_internal() in bdb_csn_commit()
...
fix EntryInfo handling in bdb_csn_commit()
2003-09-08 22:55:04 +00:00
Jong Hyuk Choi
57152b08ce
structrual oc fix
2003-09-05 20:13:10 +00:00
Jong Hyuk Choi
c25a892e62
misc cleanup
2003-09-04 19:48:53 +00:00
Jong Hyuk Choi
7357caac90
memory mgmt cleanup
2003-09-03 23:47:37 +00:00
Jong Hyuk Choi
7f882daf15
Schema checking option for LDAP Sync replication
2003-09-03 21:42:52 +00:00
Jong Hyuk Choi
d06d4d33a8
no schema checking patch for proxy cache (apurva)
2003-09-03 15:44:22 +00:00
Jong Hyuk Choi
aa8ff20012
Patch for ITS#2692
2003-09-03 08:21:51 +00:00
Luke Howard
da56275a2c
Support per-backend ACL plugins
2003-09-01 08:49:22 +00:00
Luke Howard
0edb270b9e
Support for ACL plugins
2003-08-31 08:17:21 +00:00
Luke Howard
d649ae0808
Inherit operation pblock for SLAPI
2003-08-31 08:14:54 +00:00
Luke Howard
57f242c3fb
Call SASL bind post-op SLAPI plugin _after_ DN has been set
2003-08-31 03:11:05 +00:00
Luke Howard
e40215e780
Call post-op bind functions after SASL bind
2003-08-31 03:08:06 +00:00
Luke Howard
a08fb7de7e
Expose SASL context to SLAPI plugins (SLAPI_X_CONN_SASL_CONTEXT)
...
Useful for plugins that may wish to collude with the SASL library to,
for example, retrieve a user's authorization data from a Kerberos ticket
for access control purposes
2003-08-30 17:29:14 +00:00
Jong Hyuk Choi
c36f32a9e4
slaptool update for LDAP Sync replication
2003-08-30 15:19:35 +00:00
Jong Hyuk Choi
fb7db00810
cleanup
2003-08-29 21:24:05 +00:00
Jong Hyuk Choi
853c03e38d
more patches for ITS#2692 (Thanks Luke!)
2003-08-29 17:02:53 +00:00
Jong Hyuk Choi
5548a2dd0c
Sync replication config option format change (interval)
2003-08-28 22:29:12 +00:00
Jong Hyuk Choi
9760933c20
unifdef LDAP_CACHING
2003-08-27 23:21:17 +00:00
Jong Hyuk Choi
ec9e19a573
cleanup
2003-08-27 22:18:52 +00:00
Jong Hyuk Choi
090ac0a772
unifdef LDAP_SYNC and LDAP_SYNCREPL
2003-08-27 22:16:04 +00:00
Jong Hyuk Choi
4559aa06aa
cleanup
2003-08-27 20:51:04 +00:00
Jong Hyuk Choi
3e6f9f4ee5
returning LDAP return code
2003-08-27 20:26:55 +00:00
Jong Hyuk Choi
286986c4e8
NO_SCHEMA_CHECK backend flag
2003-08-27 16:40:26 +00:00
Jong Hyuk Choi
27b8d71cbb
cleanup
2003-08-27 16:39:53 +00:00
Jong Hyuk Choi
81a53a9a5c
LDAP Sync protocol extension
...
- do not send updates in state mode when
syncCookie >= contextCSN (or omitCSN if changelog is used)
2003-08-26 22:49:44 +00:00
Jong Hyuk Choi
74d6415f1e
cleanup
2003-08-26 19:04:12 +00:00
Jong Hyuk Choi
9faedad3e5
Context CSN updates for hdb
2003-08-26 18:57:09 +00:00
Jong Hyuk Choi
79b04b12a2
Context CSN Patch (5)
...
- persistent search patch
- cascading search patch
2003-08-26 00:35:27 +00:00
Jong Hyuk Choi
7ef160494f
Context CSN Patch (4)
...
- context csn management for modrdn
- call slap_mods_opattrs() for moved entries as well
2003-08-25 22:23:49 +00:00
Jong Hyuk Choi
a636f61b01
misc cleanup
2003-08-25 22:18:33 +00:00
Jong Hyuk Choi
fbb8c9da5e
Context CSN Patch (3)
...
- context csn management for delete
- a later patch will take care of inconsistencies caused by
interactions between outstanding search and scope-outs
2003-08-25 20:20:26 +00:00
Jong Hyuk Choi
3be0b77c88
Context CSN Patch (2)
...
- BDB context csn codes moved to a separate function in back-bdb/ctxcsn.c
2003-08-25 19:15:04 +00:00
Jong Hyuk Choi
d53c90dc29
Context CSN patch (1) - cleanup
...
- serialize search_candidates() with the read of search_context_csn
2003-08-25 17:10:18 +00:00
Luke Howard
3301a31755
Fix symbol name collision when LDAP_SYNC && BDB_HIER
2003-08-23 11:58:33 +00:00
Jong Hyuk Choi
660617ae66
Context CSN patch (1)
...
- currenty works for refreshOnly mode of LDAP Sync
- Context CSN for add / modify is implemented
- code for delete / modrdn / refreshAndPersist will be soon committed
2003-08-23 02:51:33 +00:00
Jong Hyuk Choi
dd9eab0e30
Schema definition for contextCSN
2003-08-22 21:24:03 +00:00
Kurt Zeilenga
f39fb6d91b
Add missing assignment in last commit.
2003-08-22 21:16:16 +00:00
Kurt Zeilenga
be22981d78
Add nameAndOptionalUID pretty routine... improves uniqueMember handling
...
Should resolve ITS#2664.
2003-08-22 21:03:03 +00:00
Howard Chu
2ff82a82c5
Tweaks to callback processing; callbacks can return SLAP_CB_CONTINUE to
...
fall into the regular send_ldap_* functionality instead of calling into
those functions explicitly. Nested callbacks still aren't handled as
cleanly as they might be.
2003-08-19 03:22:07 +00:00
Howard Chu
f1b8808010
Fix tmpmemctx conflicts
2003-08-19 03:19:07 +00:00
Jong Hyuk Choi
6659cf3ea1
LDAP Sync protocol change : state mode (add+present) and log mode (add+delete)
2003-08-14 16:27:36 +00:00
Jong Hyuk Choi
fcc59c6488
Proxy caching update : op->o_caching_on flag removed
2003-08-14 02:11:46 +00:00
Jong Hyuk Choi
d113166475
Proxy cache patch (by Jong, Apurva, & Kurt)
...
1. Glueing patch for proxy cache
2. test script update to avoid schema checking voilations (attributes set)
3. configuration patch for proxy cache
2003-08-13 23:44:56 +00:00
Jong Hyuk Choi
264f690c81
ITS#2681: set rc to LDAP_INVALID_CREDENTIALS or 1
2003-08-13 20:27:10 +00:00
Hallvard Furuseth
2d48b5dc99
Handle full syntax of Generalized Time and UTC Time.
...
No longer accept initial and trailing spaces in these syntaxes.
2003-08-13 20:04:59 +00:00
Luke Howard
281627d81d
Do not attempt to map positive error codes returned by plugins to
...
negative error codes.
Plugins should never return positive error codes except in the case
of bind pre-operation plugins, where they should return SLAPI_BIND_XXX.
This should fix ITS #2616 ...
2003-08-11 09:55:45 +00:00
Kurt Zeilenga
2f5fbeb180
ITS#2664: add uniqueMemberMatch
2003-08-11 02:12:20 +00:00
Pierangelo Masarati
d0a7d4a9fd
clear list pointer in instatiated copy
2003-08-09 17:48:02 +00:00
Kurt Zeilenga
3186a1c27a
Remove deprecated code. Will remove slap.h code define later.
2003-08-09 03:44:30 +00:00
Kurt Zeilenga
b54780f940
Add initial support for modify/increment. No over/under flow detection.
...
Currently discovered via a "feature", but should use a control.
Start of a control made, but needs to be better integrated (with
auto use in ldapmodify(1)).
2003-08-07 16:42:40 +00:00
Luke Howard
1251d801c1
Allow SLAPI plug-ins to override OpenLDAP extended operations
...
(please review)
2003-08-01 03:40:11 +00:00
Kurt Zeilenga
009191da73
delete incorrect URI description. RFC 2255 should be used.
2003-07-31 08:41:11 +00:00
Luke Howard
e01031b357
Set AttributeDescription in slapi_acl_check_mods()
2003-07-15 12:10:19 +00:00
Pierangelo Masarati
53b7e6fbcf
apparently Oracle does not support AS in joins (ITS#2642)
2003-07-15 11:26:17 +00:00
Pierangelo Masarati
0bb807f4be
fix format (ITS#2640?)
2003-07-15 10:57:12 +00:00
Jong Hyuk Choi
d0868eae95
Various changes
...
- SyncRepl support in back-ldbm
- back-ldbm functions return LDAP return codes for internal operations (callback)
- subentry code copy from back-bdb
- Misc udpates
2003-07-15 00:55:58 +00:00
Jong Hyuk Choi
aaa66d254e
Various udpates for SyncRepl
2003-07-15 00:43:39 +00:00
Jong Hyuk Choi
b3e62ef604
SyncRepl updates for back-bdb / back-ldbm
2003-07-15 00:33:49 +00:00
Jong Hyuk Choi
2b803b0459
SyncRepl is changed to share the following routnines :
...
slap_mods_opattrs(), slap_mods_check(), slap_mods2entry()
2003-07-11 01:01:27 +00:00
Jong Hyuk Choi
b231c33efa
export glueing code
2003-07-08 20:07:07 +00:00
Luke Howard
d29ed4407c
Always call modification postoperation plugins even if a
...
preoperation plugin has removed all modifications and
thus there are none to pass to the backend.
Accept SSF as a valid parameter block value.
Fix completely broken slapi_access_allowed()
2003-07-03 23:17:54 +00:00
Luke Howard
c9e134f0f7
Support for SLAPI plugin extensions API.
...
This API allows a plugin to associate arbitrary context with an
internal server object such as a connection or operation.
Some documentation is at:
http://enterprise.netscape.com/docs/directory/602/plugin/function.htm#1104211
2003-07-03 19:04:18 +00:00
Luke Howard
9936694960
Expose SSF to plugin
2003-07-03 19:01:13 +00:00
Jong Hyuk Choi
cc6f31782d
- partial attribute replication tested ok
...
- conf file processing udpate
- misc updates
2003-07-02 14:51:23 +00:00
Jong Hyuk Choi
fd13d4d50f
misc cleanup
2003-07-01 15:43:25 +00:00
Jong Hyuk Choi
5bc1e1a3c9
Berkeley DB congestion avoidance
2003-07-01 11:55:18 +00:00
Jong Hyuk Choi
ea57395f82
Glueing code changes for replica promotion scenario
2003-06-28 00:52:40 +00:00
Jong Hyuk Choi
3b83a0b0a7
fix from Apurva
2003-06-28 00:36:27 +00:00
Jong Hyuk Choi
7087a8f58d
ITS#2618 fix
2003-06-27 20:29:32 +00:00
Jong Hyuk Choi
262f8bf11f
LCUP primitive routines removed
2003-06-27 17:39:48 +00:00
Jong Hyuk Choi
e70377b875
IDL cache AVL tree initialize
2003-06-26 06:24:24 +00:00
Jong Hyuk Choi
9df9b1377a
reinitialize presentlist & nonpresentlist
2003-06-25 23:21:18 +00:00
Jong Hyuk Choi
9faeffe8c6
fix the glueing code
2003-06-25 22:28:50 +00:00
Jong Hyuk Choi
2e793edc77
add SLAP_OC_GLUE flag to oc_map
2003-06-25 22:28:19 +00:00
Jong Hyuk Choi
5a5da65d36
#ifdef'ing SLAP_OC_GLUE definition
2003-06-25 16:46:36 +00:00
Jong Hyuk Choi
5d203d0cc5
not returning glue entries unless manageDSAit is set
2003-06-25 16:22:08 +00:00
Jong Hyuk Choi
86196e11a0
- syncrepl uses LDAP URL only
2003-06-23 14:15:28 +00:00
Jong Hyuk Choi
30ccb6087f
- syncrepl configuration uses URL only
...
- slimit, tlimit fix (ITS# 2592)
2003-06-23 14:14:47 +00:00
Jong Hyuk Choi
90364acc0b
- syncrepl uses per-thread memory allocator
...
- slimit, tlimit fix (ITS# 2592)
2003-06-23 14:13:38 +00:00
Kurt Zeilenga
6e602b5494
ITS#2607: improve socket() error logging with AF info
2003-06-21 22:55:15 +00:00
Jong Hyuk Choi
001cc11ef2
Proxy cache updates (with a test suite)
...
- IBM India Research (Apurva)
2003-06-21 00:21:57 +00:00
Kurt Zeilenga
3e0e06bcc5
ITS#2605: move #if 0 to fix compilation problem on Windows
2003-06-19 02:41:33 +00:00
Howard Chu
6fc06a7801
ITS#2596 init ID list
2003-06-15 23:10:30 +00:00
Kurt Zeilenga
02bfbae186
Initialize schema before starting server.
2003-06-15 05:57:14 +00:00
Kurt Zeilenga
46122fa688
Fix ITS#2578
2003-06-15 05:52:51 +00:00
Howard Chu
44e32b3f7f
ITS#2594 add URI support for replica config
2003-06-14 00:06:36 +00:00
Howard Chu
a505d0c1fa
ITS#2587 fix failure return from telephoneNumberNormalize
2003-06-13 17:28:45 +00:00
Howard Chu
0c8a4b1756
More fixes for modify - don't delete index keys that are still being used
...
by other values of the attribute.
Also, filter out duplicate keys to avoid redundant DB operations.
Key collisions due to separate attributes indexed by supertype are still
not safe. Yuck.
2003-06-13 06:09:45 +00:00
Howard Chu
9004df89d7
ITS#2593 keep entryinfo locked during delete
2003-06-12 22:47:13 +00:00
Howard Chu
aa3b69eb32
ITS#2440 unmunge init_module names
2003-06-12 22:25:20 +00:00
Howard Chu
8d9fd64599
ITS#2437 use lt_dlopenext instead of lt_dlopen for convenience
2003-06-12 22:21:30 +00:00
Jong Hyuk Choi
92988db5d3
cleanup
2003-06-12 15:11:08 +00:00
Howard Chu
c3039b66fe
Another BDB_HIER redundant modification
2003-06-12 11:17:35 +00:00
Howard Chu
299983eb74
Another BDB_HIER e_name / e_nname fix
2003-06-12 11:14:50 +00:00
Howard Chu
8defa92746
ITS#2593? get entry lock sooner...
2003-06-12 11:11:37 +00:00
Hallvard Furuseth
d61f44fa7c
Revert previous patch: Bad time for it.
2003-06-12 09:20:04 +00:00
Howard Chu
9c47359912
Bind fixes for chaining
2003-06-11 22:35:31 +00:00
Jong Hyuk Choi
33b8042bc0
cleanup
2003-06-11 19:35:31 +00:00
Jong Hyuk Choi
f07179ca61
syncrepl changes
...
- can handle multiple syncinfo
- ldap_sync_search() added
2003-06-11 17:03:57 +00:00
Jong Hyuk Choi
3f8bb27a83
a fix for back-bdb entry cache
2003-06-11 17:01:54 +00:00
Hallvard Furuseth
9c0ca8d9a3
Add 'deref=' to Statslog SRCH output.
2003-06-11 16:22:29 +00:00
Hallvard Furuseth
6b37465d94
Fix printf format in debug output.
2003-06-11 15:50:25 +00:00
Howard Chu
cd5d33a17c
Add EBCDIC support. (but of course you need an OS/390 port of libltdl)
2003-06-11 13:37:59 +00:00
Howard Chu
4c5de987cd
Fix config, chaining
2003-06-11 06:32:24 +00:00
Howard Chu
09d05a57c2
More overlay tweaks. Added LDAP chaining overlay.
2003-06-11 04:36:35 +00:00
Howard Chu
2a29233c72
Fix response callbacks
2003-06-11 02:45:50 +00:00
Howard Chu
62da6969dc
Preliminary backend overlay support, based on backglue, not tested...
2003-06-11 02:27:51 +00:00
Kurt Zeilenga
0db73d9d15
code clean before adding readback hacks
2003-06-11 00:59:10 +00:00
Kurt Zeilenga
544805dcec
localize SYNCREPL config defines
2003-06-10 18:36:47 +00:00
Kurt Zeilenga
a908d75f0c
s/tls/starttls/
...
s/master/provider/
2003-06-10 18:33:44 +00:00
Kurt Zeilenga
256732f2ce
s/tls/starttls/
2003-06-10 18:32:36 +00:00
Kurt Zeilenga
a8e859a401
Add server side assert control support.
2003-06-10 04:44:41 +00:00
Kurt Zeilenga
0b3f6e364c
vrFilter -> o_vrFilter
2003-06-10 03:32:33 +00:00
Kurt Zeilenga
c249f3ac21
Fix vrFilter compile error
2003-06-10 03:30:14 +00:00
Kurt Zeilenga
3ca2a91ae1
Assertion control with no backend support (yet)
2003-06-10 02:19:30 +00:00
Howard Chu
782b481a9a
ITS#2580 - avoid cache deadlock
2003-06-09 22:00:00 +00:00
Kurt Zeilenga
af6b191c96
misc cleanup
2003-06-09 21:33:46 +00:00
Luke Howard
c3c881976a
Call SLAPI close function, not start function on shutdown
2003-06-09 04:11:06 +00:00
Luke Howard
cbb6117448
Call SLAPI start plugins in slap_startup(), not slap_init(); plugins
...
aren't loaded at slap_init() time
2003-06-07 14:35:29 +00:00
Luke Howard
54392b6527
Test error code from doPluginFNs() correctly
2003-06-07 06:52:52 +00:00
Luke Howard
721ea2046e
Call SLAPI start/close plugins at init/shutdown time
2003-06-07 06:32:52 +00:00
Howard Chu
6a8cac7ac8
Fix select/yield
2003-06-06 23:52:06 +00:00
Hallvard Furuseth
93b19fdf9a
Fix bdb_db_hash() to handle padding bits in integers.
2003-06-05 11:55:27 +00:00
Hallvard Furuseth
579e768046
#include Perl files before OpenLDAP files, and #undef _ (ITS#2513)
2003-06-05 11:44:06 +00:00
Hallvard Furuseth
d7c2f20ba7
Change dn->bv_val to op->o_req_dn.bv_val in LDAP_LOG() (from rev 1.24 change).
2003-06-04 12:34:42 +00:00
Hallvard Furuseth
642c8b1627
Break up too long string literals (>509 characters, ISO C's minimum max size).
2003-06-03 18:01:37 +00:00
Hallvard Furuseth
0ef242a5aa
Add missing 0 initializer in builtin_extops[]
2003-06-03 17:49:33 +00:00
Hallvard Furuseth
efcb1b0bc0
Remove comma at end of enumerator list.
2003-06-03 17:47:26 +00:00
Hallvard Furuseth
aa90e4aade
Do not set op->o_private (to the process' pid). Only abandon needed it.
2003-06-03 17:31:25 +00:00
Kurt Zeilenga
05101a5864
Fix -T usage
2003-06-02 22:11:54 +00:00
Kurt Zeilenga
fb0f6eeeb4
Axe abandon support
2003-06-02 20:20:45 +00:00
Kurt Zeilenga
2fcbaf29d9
read get_extop func
2003-06-01 00:09:32 +00:00
Pierangelo Masarati
412f510868
fix typo; need to port fix in OPENLDAP_REL_ENG_2_2
2003-05-31 22:27:19 +00:00
Kurt Zeilenga
f0063245ad
Set schema flags (might need schema check routines as well)
2003-05-31 21:56:18 +00:00
Kurt Zeilenga
c68057f598
Schema registration stuff needs work to set flags
2003-05-31 21:46:33 +00:00
Kurt Zeilenga
cc6630d8dd
Don't bother to hide when LDAP_DEVEL is defined.
2003-05-31 20:57:14 +00:00
Kurt Zeilenga
16af7fdd4c
Hide experimental controls and extended operations
2003-05-31 20:19:02 +00:00
Kurt Zeilenga
001953cdc5
Schema cleanup
2003-05-31 18:57:32 +00:00
Kurt Zeilenga
fefb7a97e4
Misc cleanup (needs better error handling and general code cleanup)
2003-05-31 05:48:00 +00:00
Kurt Zeilenga
11f990a641
Fix intermediate responses
2003-05-31 05:32:57 +00:00
Kurt Zeilenga
12304f64e5
Merge partial and intermediate responses
2003-05-31 05:01:49 +00:00
Kurt Zeilenga
03233d2719
Move SYNC, SYNCREPL, and LDAP_CACHING out from behind LDAP_DEVEL
2003-05-31 02:55:23 +00:00
Jong Hyuk Choi
732f5501a9
base entry checking for refreshAndPersist as well
2003-05-30 21:47:15 +00:00
Jong Hyuk Choi
771df8f75b
remove DB_NOTFOUND in rc checking
2003-05-30 21:45:07 +00:00
Jong Hyuk Choi
c6e5cca3f4
cleanup comments of sl_mem_detach()
2003-05-30 21:44:18 +00:00
Kurt Zeilenga
54d01d8946
Add missing externs based upon jfrederic.clere@fujitsu-siemens.com
...
suggestion in ITS#2559.
2003-05-30 20:04:59 +00:00
Kurt Zeilenga
0954351565
Change ACL default style to exact (from regex)
2003-05-30 05:24:39 +00:00
Kurt Zeilenga
193c7ca228
Fix matching rule flags
2003-05-30 02:17:30 +00:00
Howard Chu
676984e8d3
Fix slap_EXOP declarations
2003-05-29 07:18:58 +00:00
Howard Chu
5d0ba372e5
Fix LBER_OPT_MEMCTX behavior
2003-05-28 22:17:08 +00:00
Howard Chu
ac908e15e8
Fix TL malloc/free
2003-05-28 22:15:44 +00:00
Pierangelo Masarati
476e1958b6
fix typo
2003-05-26 16:31:20 +00:00
Luke Howard
0af6508632
s/forms/form in PADL copyright
2003-05-25 04:48:49 +00:00
Kurt Zeilenga
32e2521867
Remove $OpenLDAP$ from installed file
2003-05-25 04:08:59 +00:00
Kurt Zeilenga
5e6a5174ea
Clarify copyrights
2003-05-25 04:07:47 +00:00
Kurt Zeilenga
7ca24a8591
Another round of minor copyright updates
2003-05-25 03:56:57 +00:00
Luke Howard
4cee2467be
s/forms/form in PADL copyright
2003-05-25 02:59:09 +00:00
Kurt Zeilenga
4b3545cd2e
Update IBM copyrights
...
Kurt Zeilenga, IBM Corporation
2003-05-25 02:03:07 +00:00
Howard Chu
f7d7700b6e
ITS#2549, init memctx to NULL. Also reset ber memctx to NULL when freeing.
2003-05-25 01:32:39 +00:00
Kurt Zeilenga
1cc7b10b7a
remove cruft
2003-05-25 01:17:38 +00:00
Howard Chu
4a3748b6cf
Restructured to avoid direct use of sl_malloc functions. Minimizes impact
...
of #ifdef USE_SL_MALLOC...
2003-05-25 00:53:08 +00:00
Kurt Zeilenga
86fdca5177
#if 0 debug statements in signal handlers
2003-05-24 21:12:20 +00:00
Pierangelo Masarati
6180bcbf51
Finish proxy cache cleanup and API porting (on behalf of Apurva Kumar)
2003-05-24 17:38:04 +00:00
Howard Chu
283471d84e
Fix syncinfo reference after free
2003-05-24 06:50:48 +00:00
Kurt Zeilenga
8035d016c4
Fix typos in last commit
...
Apply to Makefile as well
2003-05-24 06:15:00 +00:00
Kurt Zeilenga
73f2048456
Add clarification as to source of this file
...
Add OpenLDAP copyright statement
2003-05-24 03:18:50 +00:00
Howard Chu
9dace23dec
Change slap_sasl_authorized to take an Operation instead of a Connection,
...
for compatibility with proxyAuthz control
2003-05-24 02:44:46 +00:00
Howard Chu
83f0acc1d8
ITS#2533 backend_attribute uses tmpmemctx, must free accordingly
2003-05-24 02:06:18 +00:00
Howard Chu
c40115c12e
Don't use single malloc for BDB_HIER e->e_name + e->e_nname
2003-05-24 01:54:03 +00:00
Kurt Zeilenga
d6bfa4ab8f
remove documentation for bind_simple_unprotected
...
(which was axed log ago)
2003-05-24 01:26:38 +00:00
Howard Chu
61eec0734a
Fix double-free'd rdn bug
2003-05-24 00:46:52 +00:00
Jong Hyuk Choi
2e5fb908d1
- glue entry management change
...
- op->o_tmpmfunc setup
2003-05-23 13:32:13 +00:00
Howard Chu
4c0e4741f7
Add comments to sl_mem_detach()
2003-05-23 09:10:05 +00:00
Kurt Zeilenga
703444febd
Partially fix slapi builds, still have undefined references
2003-05-23 06:27:38 +00:00
Howard Chu
3e7a533790
ITS#2542 fix?
2003-05-23 04:24:39 +00:00
Howard Chu
2bb9a15d57
ITS#2541 added bdb_cache_delete_cleanup() to defer cache delete.
2003-05-23 02:04:03 +00:00
Howard Chu
505838469d
Don't re-cache IDL's retrieved from the cache
2003-05-23 01:23:53 +00:00
Howard Chu
f3e0a28f18
Don't avl_insert NULL kids
2003-05-23 01:12:50 +00:00
Howard Chu
fe1bcdeb28
ITS#2540 not sure, difficult to reproduce crash...
2003-05-22 23:48:02 +00:00
Hallvard Furuseth
6362a51fe8
Printf %p expects a void pointer.
...
Other pointers may have different representation.
2003-05-22 22:00:54 +00:00
Hallvard Furuseth
6d3d9fe027
Don't do pointer arithmetic on void pointers.
2003-05-22 21:52:02 +00:00
Hallvard Furuseth
86ff7f4654
Send correct pid in 'pid:' line (ITS#2519).
...
Also don't lock op->o_conn->c_mutex. It is already locked by slapd/abandon.c.
2003-05-22 19:44:01 +00:00
Howard Chu
dc41a6b37e
ITS#2529 null DN in log
2003-05-22 09:22:41 +00:00
Howard Chu
9e798820e3
ITS#2522 fix candidate return values - once more, with feeling...
2003-05-22 09:17:42 +00:00
Howard Chu
ca4892d5e7
ITS#2533 remember which backend fetched the entry
2003-05-22 08:57:13 +00:00
Howard Chu
ade6b8b750
ITS#2217 fix option sorting
2003-05-22 08:39:55 +00:00
Jong Hyuk Choi
a0faa93683
If the sync mode is refreshAndPersist,
...
search does not return error when base entry is not found
2003-05-21 23:44:10 +00:00
Jong Hyuk Choi
4192c4aaaa
select loop changes for persistent threads
2003-05-20 23:52:11 +00:00
Jong Hyuk Choi
2b62559aa5
runqueue update according to the idle timer change
2003-05-20 22:13:21 +00:00
Jong Hyuk Choi
7e7429267e
persistent search updates with recent changes
2003-05-20 20:21:39 +00:00
Hallvard Furuseth
05d7b891ec
Move SLAPD_MONITOR_DN out of format strings.
...
Otherwise slapd would break if SLAPD_MONITOR_DN contained a '%'.
2003-05-20 18:16:45 +00:00
Hallvard Furuseth
3db60ba479
Fix debug output (print int as %d, not %s).
2003-05-20 18:13:39 +00:00
Hallvard Furuseth
c702f2e50f
Fix debug statement (remove spurious '.' after '\n').
2003-05-20 18:12:14 +00:00
Luke Howard
9184d038ea
Build without HAVE_TLS
2003-05-20 02:59:19 +00:00
Jong Hyuk Choi
4f58efc4d1
- change in message to modlist conversion
2003-05-20 01:45:12 +00:00
Pierangelo Masarati
074f54f300
clarify the size of a generalizedTime
2003-05-19 21:10:49 +00:00
Kurt Zeilenga
60fc6860d2
Fix typo
2003-05-19 18:54:15 +00:00
Pierangelo Masarati
988287d681
do not init schema that's not specific to monitoring
2003-05-18 00:15:28 +00:00
Pierangelo Masarati
072280600a
use back-monitor without including core.schema; commit by now; will cleanup later
2003-05-17 17:19:16 +00:00
Kurt Zeilenga
bf438cda3e
Clean up SLAP_NVALUES comment
2003-05-16 03:58:28 +00:00
Kurt Zeilenga
4604634592
NVALUES updates to approximate matching...
2003-05-16 03:57:01 +00:00
Hallvard Furuseth
6af256b8e1
Fix some Statslog()s: Add missing newlines. Print file descriptor as long.
2003-05-15 23:45:33 +00:00
Howard Chu
8e550fae0c
Streamlined listener/select/accept handling:
...
For ITS#2482:
added sl_is_mute flag to Listener - when set, the listener is ignored
if accept() on a listener fails with EMFILE, set the sl_is_mute flag
when removing a connection, if emfile != 0, look for a listener to unmute
For ITS#2374:
if global_idletimeout is set and there are active sessions, use a timeout
on the select() to actively detect idle sessions.
2003-05-15 13:10:52 +00:00
Pierangelo Masarati
64485f5fe0
remove unused arg from fprintf (ITS#2516)
2003-05-15 12:18:04 +00:00
Hallvard Furuseth
f972945131
#include "lutil.h" to get lutil_strcopy().
2003-05-15 11:51:33 +00:00
Hallvard Furuseth
d426e40e57
Remove excess `0' arguments to fprintf.
2003-05-15 11:47:42 +00:00
Hallvard Furuseth
3821d837a1
#include <ac/unistd.h> to get write()
2003-05-15 11:45:57 +00:00
Hallvard Furuseth
592e05e3e1
#include <ac/string.h> to get strcasecmp().
2003-05-15 11:43:33 +00:00
Pierangelo Masarati
48c65151c9
add create/modify timestamp to all entries; use monitorTimestamp for start/current time; minor cleanup
2003-05-15 01:19:30 +00:00
Pierangelo Masarati
a004061c0a
need starttime before backend db_open() is invoked
2003-05-15 01:12:17 +00:00
Hallvard Furuseth
44a99d694e
#include <ac/string.h>, to get strlen(), strncmp() and strncasecmp().
2003-05-14 21:36:34 +00:00
Kurt Zeilenga
d0f025bd46
updated certificateExactMatch support,
...
doesn't yet use ctx malloc routines
2003-05-14 20:52:23 +00:00
Howard Chu
4c6888cada
ITS#2514 fix NULL deref
2003-05-14 19:30:25 +00:00
Howard Chu
ae9e88a78a
ITS#2509 add missing arg for dnNormalize
2003-05-14 13:58:30 +00:00
Howard Chu
b7351c66bc
ITS#2511 use %p to log pointer values
2003-05-14 13:54:15 +00:00
Luke Howard
ac7ac5acef
Don't crash if attr_find() fails (Howard, you might like to review this)
2003-05-14 07:25:00 +00:00
Luke Howard
eed45f454c
Fix content rule validation code -- don't use validation result variable
...
as an iterator!
2003-05-14 05:29:46 +00:00
Howard Chu
1e49fdc634
ITS#2507, fix *_candidates error return values
2003-05-13 11:39:14 +00:00
Howard Chu
190f161d74
Optimize modify_internal, only reindex the actual modified values, not
...
the entire attribute.
2003-05-13 03:09:48 +00:00
Howard Chu
9e8bbf129f
Fix prev commit, must passthru precomputed scopes
2003-05-13 02:44:22 +00:00
Howard Chu
fb52e37e06
ITS#2506 - fix prev patch, don't ignore undefined filters. treat as False,
...
test_filter will never match them anyway.
2003-05-13 01:16:26 +00:00
Howard Chu
b6ef8c1876
ITS#2505 - make sr_strings per-op instead of static
2003-05-12 23:57:19 +00:00
Howard Chu
574ca540d4
Revert prev commit
2003-05-11 10:09:51 +00:00
Howard Chu
236321ce9c
Plug leak in hdb
2003-05-11 08:42:58 +00:00
Howard Chu
6aa3637545
Added SLAP_TOOL_READMAIN and SLAP_TOOL_READONLY slapMode flags. The rw
...
arg to tool_entry_open comes too late for back-bdb to use.
2003-05-11 07:03:48 +00:00
Howard Chu
2d22e02ef9
Another idle time tweak
2003-05-11 06:06:22 +00:00
Howard Chu
c84c133c90
Plug mem leak in slapindex
2003-05-10 03:56:01 +00:00
Howard Chu
399572ba50
For ITS#2502 - force release of locks on exiting threads
2003-05-09 22:30:28 +00:00
Jong Hyuk Choi
ca1da5b89a
-reenabling LDAP_CACHING
2003-05-09 16:48:50 +00:00
Jong Hyuk Choi
986bcd52a9
-syncUUID search in syncrepl
...
-test017-syncreplication
2003-05-09 06:50:44 +00:00
Pierangelo Masarati
f2dfb55780
now LDAP_CACHING can be enabled again; not sure it works, though
2003-05-09 00:36:31 +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
Kurt Zeilenga
e64bb13148
minor tweak
2003-05-07 22:22:21 +00:00
Jong Hyuk Choi
45776bff04
a runqueue for periodic thread execution (for syncrepl)
2003-05-07 02:06:01 +00:00
Jong Hyuk Choi
6b0e1b39e5
temporarily disable LDAP_CACHING (till API update)
2003-05-05 16:03:59 +00:00
Luke Howard
8fd23795f8
Don't crash slapi_filter_get_subfilt() if no "any" filter
2003-05-05 10:23:33 +00:00
Luke Howard
1b3007c22c
Content rule logic fix
2003-05-05 09:17:10 +00:00
Luke Howard
13f0acfb6a
Don't crash if no attributes in slapi_attr_value_find()
2003-05-04 16:59:10 +00:00
Pierangelo Masarati
0864531e58
add network timeout (ITS#2413 reworked)
2003-05-03 11:30:38 +00:00
Luke Howard
83cb1037a4
Fix slapi_filter_join() behavioural bug.
...
Fix slapi_filter_dup() crasher.
Add slapi_x_filter_append(), as a replacement for slapi_filter_join() that
can create compound filters containing multiple filters. Will propose API
to Sun DS team; until then it should likely be marked LDAP_DEVEL (if SLAPI
is not entirely marked as such already).
2003-05-03 04:15:35 +00:00
Kurt Zeilenga
a82a6d8403
Junk
2003-05-02 22:14:09 +00:00
Kurt Zeilenga
d2840928c6
Remove junk
2003-05-02 22:12:07 +00:00
Jong Hyuk Choi
9543844d39
strdup cleanup
2003-05-02 18:00:33 +00:00
Howard Chu
2d5d4ecffa
ITS#2480 uninit'd vars
2003-05-02 13:38:16 +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
Hallvard Furuseth
c5d60fc043
ctrls[] was initialized with which non-constants.
2003-05-02 13:26:25 +00:00
Hallvard Furuseth
a632038df9
Entry *e could be freed uninitialized after goto return_results;
2003-05-02 13:24:44 +00:00
Hallvard Furuseth
c46cd36088
Insert missing %s in printf format to print ldap_err2string().
2003-05-02 13:13:30 +00:00
Hallvard Furuseth
3420d12bdc
Fix printf/Debug format arguments.
2003-05-02 13:08:47 +00:00
Jong Hyuk Choi
e8cd5c2386
- LDAP_SYNCREPL defined in include/ldap.h
...
- add "updatedn" to the replication specification
- return referral to update to the slave server
2003-05-01 23:39:29 +00:00
Howard Chu
759996c6e9
Fix HDB search_aliases crash, cleanup search scope processing: call dn2idl
...
directly instead of going thru filter_candidates. Use hdb_ function prefix
in dn2id.c to avoid ambiguities...
2003-05-01 11:59:08 +00:00
Luke Howard
bb9d3ff304
Fix build breakage
2003-05-01 10:13:46 +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
Jong Hyuk Choi
0cafb28e31
syncrepl REFRESH : a master entry modify case fix
2003-05-01 02:14:47 +00:00
Jong Hyuk Choi
b4e8f8f470
comment cleanup
2003-04-30 16:39:40 +00:00
Jong Hyuk Choi
c4f7bcfc56
list of nonpresent entries in syncinfo_t
2003-04-30 16:38:15 +00:00
Jong Hyuk Choi
e08ba25101
syncrepl refresh mode : both scope-in & scope-out working fine
2003-04-30 16:35:23 +00:00
Howard Chu
04c5d82817
Fix prev commit
2003-04-30 16:00:36 +00:00
Howard Chu
4b73446ab5
ITS#2424 reset SASL on an existing connection
2003-04-30 15:38:32 +00:00
Luke Howard
e4779aefc1
A pre-operation plugin is not required to set SLAPI_RESULT_CODE in
...
order to prevent the operation from being passed to the backend. It
need only return a non-zero error code.
2003-04-30 13:37:14 +00:00
Howard Chu
7e2273b30e
Added errmsg arg to lutil_passwd_{check,hash} functions
2003-04-30 07:52:05 +00:00
Howard Chu
cfaf127eaa
Log errors from dn2id failures
2003-04-30 07:47:24 +00:00
Howard Chu
35d18d4ab0
Use DB_RMW when deleting dn2id elements
2003-04-30 07:46:58 +00:00
Howard Chu
7e1a91340c
Use computed filters to pass in search scope.
2003-04-30 07:46:01 +00:00
Jong Hyuk Choi
030d5a614d
- mods memory allocation fix
...
- persistent syncreplCookie (in syncConsumerSubentry) access becomes reliable
2003-04-30 04:01:25 +00:00
Jong Hyuk Choi
b10f1c5780
- manageDSAit is implicitly assumed for LCUP / SYNC
...
- LCUP / SYNC search both entries and subentries at the same time
2003-04-30 02:04:23 +00:00
Jong Hyuk Choi
2fd73195f5
LCUP / SYNC overrides manageDSAit upon calling select_backend()
2003-04-30 02:01:03 +00:00
Jong Hyuk Choi
e885605f21
cleanup
2003-04-29 23:32:58 +00:00
Howard Chu
15b661c5c7
Revert prev commit. It's a symptom that BDB was built incorrectly.
2003-04-29 22:02:24 +00:00
Howard Chu
c066e87e2c
Better handling of computed filters
2003-04-29 21:51:23 +00:00
Kurt Zeilenga
231f8464d1
cleanup
2003-04-29 21:14:12 +00:00
Hallvard Furuseth
7e8ff6df6b
Implement slapcat -s <dn>: Only dump a subtree of the database.
2003-04-29 20:47:21 +00:00
Howard Chu
b7fd633e8a
Fix computed filter inversion
2003-04-29 20:40:26 +00:00
Hallvard Furuseth
fca812e3aa
Must have ';' between default: and '}'
2003-04-29 20:12:00 +00:00
Howard Chu
2c1b7e4e7c
ITS#2474 default return value
2003-04-29 20:01:51 +00:00
Kurt Zeilenga
5cd994ed21
remove dnNormalize2
...
replace calls to dnNormalize2 with calls to dnNormalize
2003-04-29 18:28:14 +00:00
Kurt Zeilenga
eebc51b9bf
remove dnPretty
...
rename dnPretty2 to dnPretty
2003-04-29 18:13:10 +00:00
Jong Hyuk Choi
77b58e69a5
tab cleanup
2003-04-29 17:55:26 +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
6387a3b6bf
#include <ac/string.h>.
...
Print unsigned long with %lu, not %d.
2003-04-29 15:05:19 +00:00
Hallvard Furuseth
9d9ac9e4d9
#include <ac/string.h>, to get memset() and strlen().
2003-04-29 15:02:01 +00:00
Hallvard Furuseth
51da53b4b0
Print long with %ld, not %d.
2003-04-29 14:55:36 +00:00
Hallvard Furuseth
46e0ea292b
Don't do arithmetic on void pointers.
2003-04-29 14:54:22 +00:00
Hallvard Furuseth
8a2bb1d1cc
Declare lap_free_ctrls() and sl_mem_init().
2003-04-29 14:53:05 +00:00
Howard Chu
2931966ea5
Fix computed TRUE/FALSE filters
2003-04-29 05:58:28 +00:00
Howard Chu
169c7afcdf
ITS#2453 - Handle computed filters, ignore Undefined filters.
2003-04-29 02:55:43 +00:00
Howard Chu
792e97790d
Handle SLAPD_FILTER_COMPUTED cases
2003-04-29 00:42:54 +00:00
Kurt Zeilenga
a0bcff1630
generic first component matching routines
...
Need to add specific routines for schema attribute types
2003-04-28 04:41:47 +00:00
Luke Howard
231a7cacf6
Remove unused variables in slapi_filter_test()
2003-04-26 03:28:48 +00:00
Luke Howard
b0e2fd5a8b
Don't crash in slapi_send_ldap_search_entry if no attributes specified
2003-04-26 03:28:12 +00:00
Howard Chu
b63bdc6513
Undo BDB const mucking
2003-04-25 13:14:33 +00:00
Howard Chu
e4f1c459c2
ITS#2464 don't strdup NULL DN
2003-04-25 12:44:19 +00:00
Howard Chu
e0f0a40497
ITS#2467 NULL pointer check
2003-04-25 10:27:55 +00:00
Kurt Zeilenga
7bbc903201
fix up nvalues code so that pretty routines work properly
...
re-add objectClass pretty routines
2003-04-25 02:28:06 +00:00
Kurt Zeilenga
49a4ae59ba
Need to pretty assertion values
2003-04-25 01:01:53 +00:00
Kurt Zeilenga
af5f617d2a
cleanup
2003-04-25 00:14:54 +00:00
Kurt Zeilenga
519faf22c2
Backout last commit... needs more work
2003-04-24 23:46:12 +00:00
Kurt Zeilenga
3067954616
rework objectClass mucking to use syntax "pretty" routine
...
(be liberal in what you accept, strict in what you generate)
2003-04-24 23:40:55 +00:00
Kurt Zeilenga
79262c5703
Fix typo
2003-04-24 12:43:30 +00:00
Luke Howard
958942d8e3
Fix potential attr_merge_normalize() crasher
2003-04-24 11:14:57 +00:00
Luke Howard
5178355d27
Fix another crasher in attr_merge_normalize_one()
2003-04-24 10:51:42 +00:00
Luke Howard
03fcb6526d
Fix crasher in attr_merge_normalize_one()
2003-04-24 10:40:45 +00:00
Luke Howard
331e627541
When a validate function fails from within a tool, report the offending
...
attribute
2003-04-24 10:18:05 +00:00
Kurt Zeilenga
65ea6c23c2
New integer syntax / matching routines
...
A pretty function likely should be added "to be liberal in what we accept"
2003-04-24 05:16:06 +00:00
Jong Hyuk Choi
e9bd75ae9b
ber, bv memory cleanup
2003-04-23 16:29:31 +00:00
Howard Chu
2b6f4ff7d0
Fix byte-ordering in bdb_dup_compare
2003-04-23 11:52:22 +00:00
Luke Howard
b1b8d9d651
slapi_dn_normalize() should pretty DN; slapi_dn_normalize_case() should normalize it
...
(appears to be correct based on iPlanet documentation)
2003-04-23 11:29:11 +00:00
Howard Chu
184f647b25
Change RDN compare funcs, we don't need lexical ordering
2003-04-23 10:26:06 +00:00
Luke Howard
4a51d2457a
Use attr_merge_normalize() instead of attr_mergeit()
...
(Seems to me that attr_mergeit() can be deprecated in favour of the
former -- Howard?)
2003-04-23 09:50:41 +00:00
Howard Chu
02217c9183
Subtree rename support for the cache
2003-04-23 08:46:23 +00:00
Luke Howard
9e3e91e067
Allow search rewriter plugins to also set the search base, scope, and alias
...
dereference policy
2003-04-23 08:16:05 +00:00
Howard Chu
f4183f1598
Fix multiple inclusion
2003-04-23 07:25:44 +00:00
Luke Howard
ebe2c10994
Fix incorrect usage of slapi_ch_free()
2003-04-23 07:01:56 +00:00
Howard Chu
350b73c2d6
Added back-hdb. Contributed by Howard Chu @ Symas Corp.
2003-04-23 06:54:36 +00:00
Howard Chu
6f461690c1
Function renaming, make internal funcs static, etc.
2003-04-23 06:34:55 +00:00
Luke Howard
bdb3adca39
Fix SLAPI debug message typo
2003-04-23 05:00:00 +00:00
Jong Hyuk Choi
fd3cf2b5ed
get_ldapmsg_ber() -> ldap_get_message_ber()
2003-04-22 22:09:25 +00:00
Jong Hyuk Choi
b67a3b9840
Misc cleanup - more to come.
2003-04-22 21:42:14 +00:00
Kurt Zeilenga
a6da45c9c7
Fix typo in last commit
2003-04-22 20:35:41 +00:00
Howard Chu
1745c2478d
Missed a bei_rdn in prev commit
2003-04-22 20:35:29 +00:00
Kurt Zeilenga
b9fe2c2fd6
Fix up subtreeSpecification to allow new GSER-based string format
...
(real validatator needed).
2003-04-22 20:33:08 +00:00
Jong Hyuk Choi
8e12768eed
subtreeSpecification syntax change : -binary +validator
2003-04-22 20:08:37 +00:00
Howard Chu
c7d3d42304
Omit bei_rdn field from EntryInfo
2003-04-22 18:59:37 +00:00
Howard Chu
7c39a5e726
filter_candidate tweaks, search_stack tweaks
2003-04-22 18:22:51 +00:00
Jong Hyuk Choi
f97a85db83
more cleanup for the backend API change
2003-04-22 17:59:54 +00:00
Howard Chu
68822b1e15
Trim dead BDB_HIER stuff
2003-04-22 17:06:35 +00:00
Howard Chu
c9f8d7accb
Fix args to bdb_cache_modrdn
2003-04-22 17:05:22 +00:00
Jong Hyuk Choi
4d6469f949
subentry cleanup
2003-04-22 17:00:04 +00:00
Howard Chu
1643145b03
Fix multi-line string literals. new GCC complains...
2003-04-22 16:06:29 +00:00
Howard Chu
0afba16b9b
Fix id2entry, let bdb_cache_release_all clean up EntryInfos
...
Fix idl_cache_put
2003-04-22 13:14:06 +00:00
Howard Chu
89127c93d0
Mem context tweaks for bdb_dn2idl
2003-04-22 06:29:13 +00:00
Howard Chu
ee1cddf6fd
Fix typo in prev commit
2003-04-22 05:15:50 +00:00
Howard Chu
bd871d710d
Moved IDL cache code to standalone functions.
...
Use IDL cache in bdb_dn2id_children.
2003-04-22 05:14:27 +00:00
Howard Chu
f0577fcb08
Pass parent EntryInfo instead of parent DN to dn2id_add/delete.
...
Add bdb_cache_children, remove cache flag manipulation from dn2id_children
2003-04-22 04:06:09 +00:00
Kurt Zeilenga
cd66f42f90
cleanup
2003-04-21 19:01:08 +00:00
Kurt Zeilenga
8cc4866fa1
Assign experimental OID to syncReplCookie
2003-04-21 18:57:49 +00:00
Howard Chu
d290145776
memory context tweaks
2003-04-21 18:28:38 +00:00
Howard Chu
e061628ff3
Fix previous commit
2003-04-21 18:09:44 +00:00
Jong Hyuk Choi
86a46c267a
OpenLDAP synchronization based replication engine
2003-04-21 14:08:13 +00:00
Jong Hyuk Choi
3efe7398c9
memory API change
2003-04-21 14:01:39 +00:00
Howard Chu
e374c580f2
Perform is_at_subtype check inline
2003-04-21 03:55:20 +00:00
Howard Chu
d8068af892
Fix glue_sub_init realloc disconnect
2003-04-20 09:18:02 +00:00
Pierangelo Masarati
1150becd63
use a macro for the entry buffer size
2003-04-18 17:17:18 +00:00
Pierangelo Masarati
629885a269
use SLAP_PTRCMP
2003-04-18 17:16:48 +00:00
Pierangelo Masarati
6bcbe9ad31
reset passwords before freeindg them
2003-04-18 10:02:43 +00:00
Pierangelo Masarati
7de67df355
ensure all metasingleconns are init'ed
2003-04-18 10:02:00 +00:00
Howard Chu
6fd41cd254
Add shm_key config keyword to use shared memory for BDB environment
...
Unmeasurable performance difference on my tests, but who knows...
2003-04-18 09:43:22 +00:00
Luke Howard
d4a9e0ece0
Fix crasher when duplicating substring assertions
2003-04-18 08:21:12 +00:00
Howard Chu
6002ad5233
Minor fixes
2003-04-18 07:43:07 +00:00
Luke Howard
c734eaf68a
Improve error checking
2003-04-18 07:29:45 +00:00
Howard Chu
7caf3e0952
Fix prev commit, extended search was broken
2003-04-18 05:53:24 +00:00
Luke Howard
86a18c2ea2
Don't pollute op->o_bd in access_allowed()
2003-04-18 04:57:15 +00:00
Howard Chu
3baffe7cf2
Fix undefined filters
2003-04-18 04:44:46 +00:00
Howard Chu
6b524914c5
Fix undefined substring filters
2003-04-18 04:44:06 +00:00
Howard Chu
8d8a52f9d2
ITS#2453, Fix filter candidate generation
2003-04-18 03:36:52 +00:00
Howard Chu
7c60ff1ef8
ITS#2449, broken NOT filters
2003-04-18 02:31:38 +00:00
Jong Hyuk Choi
2dbcd890b8
Caching non-existing index entries in the IDL cache - caching keys only
2003-04-18 00:35:11 +00:00
Pierangelo Masarati
b5e9378d4f
improve previous commit
2003-04-17 22:19:14 +00:00
Pierangelo Masarati
9f7c48ab54
don't return referral if cannot compute one (should fix ITS#2435)
2003-04-17 21:48:57 +00:00
Howard Chu
c754980045
Use EntryInfo navigation for search scope checks
2003-04-17 11:03:21 +00:00
Howard Chu
ec13a69220
Finish alias scope support
2003-04-17 09:23:53 +00:00
Howard Chu
f7db076c86
Fix prev commit
2003-04-17 05:15:12 +00:00
Howard Chu
7dcb79157d
Fix database search loop conditions
2003-04-17 04:55:39 +00:00
Howard Chu
d7a1eb0ea2
Fix AVL comparisons
2003-04-17 04:36:42 +00:00
Howard Chu
2048c05a82
Added CACHE_ENTRY_NO_KIDS flag to bei_state to shortcut dn2id_children.
2003-04-17 00:52:31 +00:00
Pierangelo Masarati
9caafcb3d9
cleanup; improve error handling
2003-04-16 22:22:57 +00:00
Kurt Zeilenga
d2db0733ab
Add associated matching rule checks
2003-04-16 21:42:52 +00:00
Pierangelo Masarati
786d4e23b7
allow compare on dynamically generated operational attributes (may be moved to the frontend)
2003-04-16 20:55:42 +00:00