Commit Graph

5257 Commits

Author SHA1 Message Date
Pierangelo Masarati
2b393962fc fix continuation of ITS#2999 2004-03-06 09:33:24 +00:00
Howard Chu
efd23f5c0c Fix prev commit 2004-03-05 19:29:02 +00:00
Howard Chu
9b16d161d5 Take advantage of IDL cache in bdb_idl_insert/delete_key 2004-03-05 15:41:30 +00:00
Howard Chu
18bb805736 Fix prev commit 2004-03-05 15:40:37 +00:00
Howard Chu
c5d8c776ca Set IDL cache to 10x Entry cache by default 2004-03-05 13:46:12 +00:00
Howard Chu
896beebadc unifdef SLAP_IDL_CACHE 2004-03-05 13:43:18 +00:00
Howard Chu
c558bd49bc ITS#2992 Windows fixes from Alexey Melnikov 2004-03-05 12:24:06 +00:00
Howard Chu
87a4c01b29 ITS#2998 rename pcl -> be_pcl 2004-03-05 10:33:41 +00:00
Pierangelo Masarati
f5ffcae717 cleanup 2004-03-05 09:56:16 +00:00
Pierangelo Masarati
b761105439 improve fix to ITS#2999: don't care about limits after abandon 2004-03-04 23:02:30 +00:00
Pierangelo Masarati
23b0e84cb8 fix ITS#2999 2004-03-04 22:56:49 +00:00
Howard Chu
de1ee3757b Fix missing EQAULITY rules 2004-03-03 10:51:32 +00:00
Howard Chu
896271195a ITS#2974 fix hole array allocation 2004-03-02 23:01:04 +00:00
Howard Chu
4504b48c6b default_passwd_hash now takes a list of schemes
passwordModify exop will generate all the configured hashes
2004-03-02 22:12:23 +00:00
Howard Chu
5f63dfc566 lutil_passwd_hash result berval is in argument list now 2004-03-02 22:11:31 +00:00
Howard Chu
1b98cd6262 Fix SLAPI_ADD_RESCONTROLS 2004-03-02 20:31:37 +00:00
Howard Chu
4a8bb3991f ITS#2961 check for NULL authcDN 2004-03-02 18:37:49 +00:00
Howard Chu
e729d96ecd ITS#2985 fix slappasswd typo 2004-03-01 14:54:05 +00:00
Howard Chu
b480d7c9ff Added pwdexop request structure to avoid redundant parsing 2004-02-29 19:04:34 +00:00
Pierangelo Masarati
d015b9583c handle filter computed in a more granular way (ITS#2977) 2004-02-28 16:05:59 +00:00
Pierangelo Masarati
ca5515b460 fix the problem right now 2004-02-28 15:20:56 +00:00
Pierangelo Masarati
fa2cb48f3a should fix ITS#2983 - total count of ops initiated/completed in root of operations branch 2004-02-28 14:36:19 +00:00
Kurt Zeilenga
c850d82559 Move to Attic 2004-02-27 01:23:44 +00:00
Howard Chu
57ba4cac66 Merged slap tools with main slapd binary; installs symlinks.
tools directory is now obsolete.
2004-02-26 19:03:41 +00:00
Howard Chu
2d0af83c71 ITS#2934 - don't touch conn->c_sasl_dn for Simple Binds 2004-02-26 11:48:34 +00:00
Howard Chu
7fe35bcddb ITS#2978 make sure liboverlays.a is always built and used 2004-02-26 03:38:38 +00:00
Howard Chu
0aebe2e51a ITS#2970 fix build_new_dn for zero-length parent DN 2004-02-26 02:58:12 +00:00
Jong Hyuk Choi
4e3c30bbf0 misc addition to the previous glueing commit 2004-02-24 01:55:59 +00:00
Jong Hyuk Choi
d7d19b7420 Glue entry pruning: delete parent entries when they are glues and become leaves 2004-02-23 22:49:24 +00:00
Jong Hyuk Choi
372dcb78eb Glue entry pruning : delete parent entries after modrdn when they are glue and become leaf entry 2004-02-23 22:48:46 +00:00
Jong Hyuk Choi
0c58aa3ab9 Glue entry pruning support: delete the parent entries when they are glue and become leaf 2004-02-23 22:47:55 +00:00
Pierangelo Masarati
6f9b99bc69 improve filter error logging in case of unknown attribute type 2004-02-23 11:45:19 +00:00
Jong Hyuk Choi
53d191e14d syncrepl update: 1) improve error handling 2) glueing support for non-leaf deletion (TODO : deletion of leaf glue entries in the delete / modrdn code) 2004-02-22 20:44:44 +00:00
Pierangelo Masarati
4e57108991 allow search limits based on groups (ITS#2967) 2004-02-18 16:40:36 +00:00
Jong Hyuk Choi
528ea2f808 sync with the man page slapadd(8) : does not change syncrepl entries in the ldif file when neither of the promotion (-p) or the demotion (-r) option is given. 2004-02-17 23:56:18 +00:00
Pierangelo Masarati
129aa2884b fix numericStringMatch (ITS#2938) 2004-02-17 20:30:37 +00:00
Pierangelo Masarati
1ac20b1f02 improve previous commit 2004-02-17 13:34:51 +00:00
Pierangelo Masarati
cb3d538ea3 allow no-user-modification propagations if back-ldap is used for replication (i.e. updatedn is defined) 2004-02-17 12:39:42 +00:00
Howard Chu
8a55795fbe ITS#2888 fix back-ldap to check result of send_search_entry.
Make sure sizelimit errors are propagated.
2004-02-13 02:44:13 +00:00
Howard Chu
4479b4c417 ITS#2962 - EBCDIC db_version string 2004-02-13 00:53:02 +00:00
Howard Chu
b36e3a1ab0 ITS#2960 - make sure bi_open gets invoked 2004-02-13 00:42:21 +00:00
Kurt Zeilenga
5d0f6e75b4 Don't defer abandon due to pending 2004-02-10 00:17:21 +00:00
Kurt Zeilenga
3c1b2ed9cb ITS#2959: provide reason for deferring operation in log message
Also, took away abandon operations blank check against deferment.
Abandon must be deferred in some cases (such as when other operations
are pending) and should be deferred in some other cases (such as too
many threads).
2004-02-09 21:33:21 +00:00
Jong Hyuk Choi
7707a66d33 fix for ITS#2947 2004-02-06 22:41:55 +00:00
Howard Chu
12b09c58e2 Another EBCDIC syslog fix 2004-02-04 23:00:05 +00:00
Pierangelo Masarati
253f70e0c2 fix duplicate key in metadata 2004-01-31 10:31:13 +00:00
Kurt Zeilenga
733c3c5f87 Remove now redundant error check 2004-01-30 05:33:27 +00:00
Howard Chu
e0e3560cf5 Use Btree instead of Hash for indexing 2004-01-28 05:00:56 +00:00
Jong Hyuk Choi
d84a5d29ab Fix the missing delete problem (reported by Doug Council) 2004-01-27 18:16:40 +00:00
Howard Chu
89812424f4 Skip spurious Statslog's for callback-intercepted responses. 2004-01-22 01:20:15 +00:00
Howard Chu
54453690f6 ITS#2888 once more, fix sizelimit propagation 2004-01-21 10:25:41 +00:00
Pierangelo Masarati
eeb9a07823 make file names more slapd-ish; add attribute inheritance to search attributes; precompile uppercased search 2004-01-19 22:13:15 +00:00
Ralf Haferkamp
8b3a69ae39 Additional fix for ITS#2924: check for availability of
glueBack->be_entry_close before calling it
2004-01-19 14:38:15 +00:00
Pierangelo Masarati
6c27bf332c cleanup 2004-01-17 18:26:36 +00:00
Pierangelo Masarati
945f3fc9d0 cleanup 2004-01-17 18:07:43 +00:00
Pierangelo Masarati
c4a8f58a0d honor attributeType inheritance as well 2004-01-17 16:27:11 +00:00
Pierangelo Masarati
d65f402058 improve fix to ITS#2923; note that suffix massaging is inherently flawed, because comperisons should always occur on Normalized DN, while massaging can also occur on Pretty DN, but there is no guarantee they have the same length or any length-based comparison can work; so in any case, we should pass the Normalized DN and, if the Pretty DN is present, massage it as well accordingly 2004-01-17 12:25:46 +00:00
Pierangelo Masarati
2c049ebb42 fix ITS#2923 2004-01-17 11:48:14 +00:00
Pierangelo Masarati
fa856463fe now I remember why I introduced the 'has_ldapinfo_dn_ru' flag 2004-01-17 11:33:13 +00:00
Howard Chu
4b88f8c1b2 slapd_shutdown/syncrepl fix 2004-01-16 20:02:07 +00:00
Howard Chu
f77474f1df ITS#2924, fix transition to subsequent subordinates 2004-01-16 19:07:03 +00:00
Pierangelo Masarati
aa39de6db3 should improve readability and (hopefully) decrease traffic on openldap-software; sorry I can't test it right now 2004-01-16 18:56:22 +00:00
Howard Chu
c9d033ae30 Fix syncrepl slapd_shutdown detection, would not stop on a gentlehup. 2004-01-15 21:35:05 +00:00
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