Commit Graph

851 Commits

Author SHA1 Message Date
Howard Chu
e955bbeaf5 Unify rs_modlist in Add/Modify/Modrdn req structs 2006-12-24 06:45:57 +00:00
Howard Chu
8b457119ac Use a specific sr_type for intermediate Glue results 2006-12-18 19:46:40 +00:00
Howard Chu
1e849ec14d ITS#4638 restore original parameters on op completion
(this is preliminary, more work remains)
2006-12-17 22:57:45 +00:00
Pierangelo Masarati
8830e0628e more portable fix to ITS#4756 2006-12-17 22:03:03 +00:00
Pierangelo Masarati
97e6225cc9 implement full IPv6 support in ACLs; use URL notation (as suggested by Howard) to disambiguate parsing (ITS#4756) 2006-12-15 01:11:11 +00:00
Howard Chu
1f35a953a1 Remainder of fix for ITS#4615 - stop processing overlay stack at glue
boundary
2006-12-13 03:03:47 +00:00
Pierangelo Masarati
e73ce756cc fix DN (and berval'ued items requiring) normalization in bindconf_parse (ITS#4766) 2006-12-02 16:13:25 +00:00
Kurt Zeilenga
99b954e2c3 LDAPBIS cleanup 2006-10-28 03:53:02 +00:00
Kurt Zeilenga
857e74bbed Remove extraneous SLAP_RELAX macro 2006-10-21 03:37:35 +00:00
Howard Chu
f63f46f0b1 Use a single malloc for entry_decode instead of two - partially decode
the entry to get nvals first, so the size can be computed.
2006-09-20 02:43:47 +00:00
Howard Chu
242274d038 Remove obsolete SLAP_FILTER_DN definitions 2006-09-14 09:29:29 +00:00
Howard Chu
9f054b648b Support dynamic add/delete of attributeTypes and objectClasses 2006-09-14 00:06:04 +00:00
Howard Chu
2bfe79fe88 Add BackendInfo.bi_extra for backend custom APIs
Use bi_extra for back-monitor entry points. Backends should never
directly reference each other's symbols.
2006-09-13 11:38:51 +00:00
Pierangelo Masarati
8eb455e7b2 add sb_version to slap_bindconf;
rework slap_client_connect() and slap_discover_feature() accordingly
2006-09-11 00:52:43 +00:00
Pierangelo Masarati
b60990780f custom monitoring can be enabled/disabled via config 2006-09-06 23:08:57 +00:00
Pierangelo Masarati
0d2e2772d5 move req2op selection into a helper 2006-09-04 07:17:34 +00:00
Howard Chu
78172aa0cf Entry/Attribute struct caching, to minimize malloc fragmentation
Note: this breaks LDAP_COMP_MATCH and SLAP_ZONE_MALLOC. But they
were probably broken already anyway.
2006-08-29 01:43:23 +00:00
Kurt Zeilenga
d3e288dffe s/managedit/relax/
#unifdef -DSLAP_RELAX
2006-08-22 23:31:46 +00:00
Kurt Zeilenga
3d667a4705 remove dontusecopy ifdefs 2006-08-22 20:57:33 +00:00
Kurt Zeilenga
97fa3f1efd More LDAP_DEVEL cleanup
Rename ManageDIT to Relax
2006-08-22 00:45:16 +00:00
Kurt Zeilenga
d9720d50dd Some LDAP_DEVEL cleanup 2006-08-15 19:36:54 +00:00
Howard Chu
86f1f7e047 Cleanup unused fields from prev commit 2006-07-09 21:32:16 +00:00
Howard Chu
25c4b164a4 ITS#4253 fix value-dependent ACL caching - just record the ACL we'll start
looking for, don't cache anything else.
2006-07-09 20:51:00 +00:00
Luke Howard
7c9c559019 add o_no_subordinate_glue member to operation 2006-06-10 12:30:00 +00:00
Howard Chu
d2b27b156e Add "hidden" database config, allow hidden DBs with redundant suffixes 2006-05-29 06:03:43 +00:00
Pierangelo Masarati
cff53d4867 allow tools to syslog 2006-05-24 17:57:13 +00:00
Howard Chu
33a3448964 Cleanup - no more SLAP_MULTI_CONN_ARRAY 2006-05-16 01:22:47 +00:00
Howard Chu
966c47e5b4 Detect TLS config changes 2006-05-03 02:48:23 +00:00
Hallvard Furuseth
1c51987f87 #define Statslog() also when --disable-debug (disappeared in rev 1.754) 2006-04-16 16:01:09 +00:00
Pierangelo Masarati
c08f05f0c0 group SlapReply search flags 2006-04-12 14:02:15 +00:00
Kurt Zeilenga
eb9a3c1876 unifdef -DSLAP_ACL_HONOR_DISCLOSE
unifdef -DSLAP_ACL_HONOR_MANAGE
unifdef -DSLAP_OVERLAY_ACCESS
unifdef -DSLAP_ORDERED_PRETTYNORM
unifdef -DSLAP_AUTHZ_SYNTAX
Move LDAP_COLLECTIVE_ATTRIBUTES, LDAP_COMP_MATCH, and LDAP_SYNC_TIMESTAMP
back behind LDAP_DEVEL (as these either too experimental or not yet
implemented).
2006-04-12 05:53:26 +00:00
Kurt Zeilenga
444ec670e3 really fix it 2006-04-11 22:27:41 +00:00
Kurt Zeilenga
809331582b Fix bad edit - like cause of ITS#4484 2006-04-11 22:26:52 +00:00
Kurt Zeilenga
cc2ad31bba remove more LDBM cruft 2006-04-11 18:56:11 +00:00
Kurt Zeilenga
2e2d036490 remove LDAP_DEVEL around lightweight dispatcher code
(presently in 2.4)
2006-04-11 18:34:09 +00:00
Howard Chu
c6d0edc3b7 Use TLS context stuff in syncrepl 2006-04-07 02:57:39 +00:00
Howard Chu
7a5d12cc51 Add TLS options to bindconf struct 2006-04-07 01:49:19 +00:00
Pierangelo Masarati
00073c8cac fix operational attrs return with chain overlay (ITS#4431); misc cleanup 2006-03-24 22:49:51 +00:00
Kurt Zeilenga
71511a0569 more txn infrastructure 2006-03-08 05:54:10 +00:00
Kurt Zeilenga
247536744e Some more txn infrastructure 2006-03-07 08:07:21 +00:00
Kurt Zeilenga
fad69dbef8 Additional TXN changes 2006-03-07 02:21:27 +00:00
Kurt Zeilenga
8ac8d70a55 TXN protocol element parsers (without any backend support)
Misc cleanup
2006-03-07 00:48:14 +00:00
Luke Howard
ec023f9777 remove c_pb, it is no longer needed 2006-02-16 00:14:38 +00:00
Howard Chu
0e6aa53cd1 Unifdef SLAPD_MULTIMASTER, use config setting instead 2006-02-06 04:45:12 +00:00
Kurt Zeilenga
f5b9ff7940 unifdef -DSLAPD_CONF_UNKNOWN_BAILOUT -DSLAPD_CONF_UNKNOWN_IGNORED=""
-DSLAPD_DEBUG_CONFIG_ERROR=LDAP_DEBUG_ANY
2006-01-24 04:40:01 +00:00
Pierangelo Masarati
a029490fe8 let overlays define if they must appear exactly once in a chain, and if they must be global/per-db only, and holler in case 2006-01-14 18:02:35 +00:00
Pierangelo Masarati
9bcb37b5c1 refine fix to ITS#4320 2006-01-10 02:05:54 +00:00
Pierangelo Masarati
779e26df2d apparently Statslog() doesn't really differ any more from just Log()... 2006-01-09 16:28:02 +00:00
Luke Howard
c51a71e5c2 Add -s option to slapadd to disable schema checking 2006-01-08 20:18:14 +00:00
Pierangelo Masarati
339b9c371e rfc2589 support (ITS#4293) 2006-01-06 17:46:52 +00:00
Pierangelo Masarati
e484ebf9c8 complete ACI commit 2006-01-06 17:28:59 +00:00
Pierangelo Masarati
a54ca7a6ce factor ACI code out of slapd; now it can only use dynacl layer 2006-01-06 17:12:35 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00
Pierangelo Masarati
912dd6f083 fix {add,delete} access (ITS#4295) 2006-01-02 16:44:36 +00:00
Pierangelo Masarati
8e7e8c4d04 allow modules to register callbacks for dynamic data in root DSE 2006-01-02 08:57:56 +00:00
Luke Howard
1c0f49dda3 Backout accidental private part of previous commit 2006-01-01 09:24:19 +00:00
Luke Howard
b6fffd1417 Add orr_modlist member to request structure, containing a list of
modifications to be applied by the backend atomically with a modify
RDN request.

Handle updating of RDN values in frontend.

Code that calls a backend's be_modrdn should call slap_modrdn2mods(op, rs)
before invoking the backend and cleanup with slap_mods_free( op->orr_modlist, 1 ).
See do_modrdn() for an example.
2006-01-01 09:23:24 +00:00
Pierangelo Masarati
eb734a167b add severity-aware logging (ITS#4282) 2005-12-27 16:29:37 +00:00
Kurt Zeilenga
439af9ec10 (Quick)fix UUID naming attributes 2005-12-20 22:36:51 +00:00
Pierangelo Masarati
266c6ad1ea plug one-time leaks; misc cleanup 2005-12-16 01:58:36 +00:00
Pierangelo Masarati
76a089086b forgot binds 2005-12-15 17:54:13 +00:00
Pierangelo Masarati
d86a46cc33 shortcut to allow restricting all operations 2005-12-15 17:46:37 +00:00
Pierangelo Masarati
8687dace5b allow per-replogfile pid/args file & replication interval (ITS#3523) 2005-12-10 12:25:27 +00:00
Howard Chu
10d8ae3c51 Tweak syncrepl messageID 2005-12-05 11:46:30 +00:00
Pierangelo Masarati
22f05c6785 add support for backend/overlay obsolete names... 2005-11-28 14:13:54 +00:00
Pierangelo Masarati
ed098b4136 fix previous commit (overlay initializer prototypes were incorrect) 2005-11-26 17:04:51 +00:00
Kurt Zeilenga
c106f49029 Primitive handling of dontUseCopy (always error). 2005-11-26 07:09:59 +00:00
Pierangelo Masarati
b3c8a976ec use LDAP_SIZELIMIT_EXCEEDED; rework the return values of slap_send_search_entry(); silence a few warnings 2005-11-25 22:17:24 +00:00
Pierangelo Masarati
98936ee3c4 streamline overlay configuration 2005-11-25 12:43:43 +00:00
Pierangelo Masarati
ea83f6a669 check sizelimit in frontend (ITS#4213) 2005-11-25 00:28:33 +00:00
Pierangelo Masarati
14e2726cce rework typedefs for functions 2005-11-19 14:58:04 +00:00
Pierangelo Masarati
28aca605c7 more URI into bindconf 2005-11-16 21:52:14 +00:00
Pierangelo Masarati
4537065ffc further isolation and cleanup of ACI code 2005-11-10 00:52:43 +00:00
Pierangelo Masarati
fc2912ba92 move bindconf_[un]parse() into generic API 2005-11-06 23:28:54 +00:00
Kurt Zeilenga
e470116ab3 fix -USLAP_LIGHTWEIGHT_DISPACTHER sl_busy issue 2005-11-03 18:50:04 +00:00
Pierangelo Masarati
d277c5b3d6 silence SLAP_SEM_LOAD_CONTROL related warnings... 2005-10-16 08:58:06 +00:00
Kurt Zeilenga
533394d641 disable SLAP_SEM_LOAD_CONTROL by default, needs additional review/work
Misc. other cleanup
2005-10-16 00:17:58 +00:00
Kurt Zeilenga
9bc19c5232 Revised lightweight dispatcher -- writers moved into worker threads
Presently spawns operations in separate thread to ease clr_read/wake handling.
Seems to perform reasonable well...
2005-10-15 06:54:55 +00:00
Howard Chu
7dcb68f6fa Move CSN invocations to backends 2005-10-13 11:58:44 +00:00
Kurt Zeilenga
6db7e605ee Align Operation buffers using LBER_ALIGNED_BUFFER 2005-10-12 23:17:28 +00:00
Howard Chu
a79ae8da3e Better fix for req_pwdexop_s 2005-10-06 20:34:30 +00:00
Howard Chu
ccc1cb5fb3 Fix req_pwdexop definition 2005-10-06 20:04:12 +00:00
Howard Chu
62f7c85be4 Add slap_overinfo oi_origdb field to point to original BackendDB 2005-10-02 01:23:09 +00:00
Pierangelo Masarati
fb3fc81c7e improved authz_backend detection for internal databases (ITS#4018) 2005-09-10 09:56:29 +00:00
Kurt Zeilenga
b707e1e38c Move uidNumber and gidNumber into slapd(8)
to ensure they are available for ldapi://.
2005-09-05 01:08:40 +00:00
Pierangelo Masarati
6cb8b14435 allow undefined attrs to be "proxied" (ITS#3959) 2005-08-25 21:14:26 +00:00
Pierangelo Masarati
849ecbcf1f allow options in dynacl configuration 2005-08-22 16:28:50 +00:00
Pierangelo Masarati
4bc8197dcb further ACI factoring out & confinement 2005-08-22 16:03:35 +00:00
Hallvard Furuseth
94747c50db SLAP_OP_* enums are always used. Delete #ifdef SLAPD_MONITOR around definition. 2005-08-21 00:00:09 +00:00
Pierangelo Masarati
00b5d8c1bc allow objectClass checking including sups 2005-08-20 19:01:53 +00:00
Pierangelo Masarati
e066ec210e merge sml_managing into sml_flags (SLAP_MOD_MANAGING) 2005-08-18 08:48:10 +00:00
Pierangelo Masarati
b2284183f9 more on manage 2005-08-17 22:06:46 +00:00
Pierangelo Masarati
ec49990d51 ACIs almost entirely factored out of slapd
Added OpenLDAPaciSyntax based on ITS#3877 by Nikita Shulga
aci_mask() doesn't exploit the normalized value yet (next step)
The case #define SLAPD_ACI_ENABLED / #undef SLAP_DYNACL should
be removed
2005-08-17 17:14:57 +00:00
Hallvard Furuseth
9873eb7ab0 Add missing Statslog() statements (loglevel stats/stats2):
"ABANDON", "STARTTLS", "CANCEL", "WHOAMI", "PASSMOD", "EXT", "INTERM",
  "TLS established", SASL and Extended Response "RESULT".
In Statslog output "conn=xx fd=yy closed", append the reason in
  "()" unless client or server closed the connection after Unbind.
Still missing Statslog output from a number of failed requests.
2005-08-14 00:14:58 +00:00
Pierangelo Masarati
d10250d9f6 add authzSyntax for authzTo/authzFrom attributes; add X-ORDERED 'VALUES' if support for ordered_value_{validate,pretty,normalize} is present; exploit normalization in slap_parseURI (only #ifdef LDAP_DEVEL) 2005-08-11 23:52:17 +00:00
Pierangelo Masarati
2b93e9b376 wrap validate/pretty/normalize for ordered values (only #ifdef LDAP_DEVEL) 2005-08-11 23:35:15 +00:00
Luke Howard
12d006d17d Add o_no_schema_check to operation structure
entry_schema_check() nows takes Operation instead of Backend as first
argument, allows it to check o_no_schema_check
2005-08-01 15:26:13 +00:00
Luke Howard
cb786e3330 Remove SLAPI pblock from operation structure 2005-07-22 07:54:17 +00:00
Luke Howard
44bb946436 More use of SLAPI accessor macros 2005-07-22 05:33:47 +00:00
Luke Howard
ffe20229dc Move most of SLAPI frontend into overlay 2005-07-21 16:35:20 +00:00