Commit Graph

362 Commits

Author SHA1 Message Date
Pierangelo Masarati
4242ce20d6 rework connections so that they get cached on a per-thread basis (ITS#5095) 2007-08-20 00:27:47 +00:00
Pierangelo Masarati
2f5bfba296 let req_modify_s and req_modrdn_s have a common portion to interoperate within slap_mods_opattrs() (ITS#5093) 2007-08-16 09:48:53 +00:00
Pierangelo Masarati
27428ac00e uniformly exploit rootdn bind; add support for rootdn bind to backends that didn't have it (ITS#4962) 2007-08-16 09:38:15 +00:00
Pierangelo Masarati
5eef8c7f40 fix objectClass inheritance (ITS#5088) 2007-08-11 09:37:55 +00:00
Pierangelo Masarati
147f1c157f use RFC4523 objectClasses 2007-08-11 09:32:24 +00:00
Pierangelo Masarati
3119bba337 more on ITS#4868 2007-08-11 09:31:48 +00:00
Ralf Haferkamp
3a9310431e Reworked recent backend API changes, now using a separate struct,
(ConfigReply) for the error messages.
2007-08-03 12:02:07 +00:00
Ralf Haferkamp
5ae46c195e Added a new parameter (ConfigArgs*) to the _db_init, _db_open, _db_close and
_db_destroy functions.
2007-07-25 17:21:05 +00:00
Howard Chu
88cbe052e0 Fallout from ITS#4986 - remove unused param of select_backend() 2007-07-13 03:18:20 +00:00
Hallvard Furuseth
93fbb87545 Give OperationBuffer normal struct members instead of using
LBER_ALIGNED_BUFFER(OPERATION_BUFFER_SIZE), as discussed in ITS#4078.
Add a corresponding SyncOperationBuffer in overlays/syncprov.c.
2007-05-18 23:54:26 +00:00
Pierangelo Masarati
b013847111 fix ';binary' certificate transport (ITS#4868); add cert to sql-test000 (mysql; psql untested) 2007-04-12 01:02:01 +00:00
Pierangelo Masarati
78d8d6e06d add support for pagedResults to back-sql (ITS#4888) 2007-03-22 23:10:56 +00:00
Pierangelo Masarati
8e8633b241 add support for binary attributes (ITS#4868) 2007-03-13 00:34:37 +00:00
Pierangelo Masarati
d07f85fc91 fix subtree shortcut (ITS#4856) 2007-03-05 19:39:32 +00:00
Kurt Zeilenga
da6d9eb046 happy new year 2007-01-02 20:00:42 +00:00
Pierangelo Masarati
1939ed3fc2 apparently, structural_class() args changed 2006-12-24 15:45:48 +00:00
Pierangelo Masarati
7684514535 fix typo (ITS#4784) 2006-12-21 22:05:49 +00:00
Howard Chu
69c4495bc2 ITS#4768 more be_add fallout 2006-12-12 21:00:12 +00:00
Howard Chu
2a9afa55a7 Avoid unnecessary calls to oc_bvfind 2006-11-27 19:59:59 +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
Pierangelo Masarati
36898bbb76 don't sigsegv if has_ldapinfo_dn_ru is erroneously defined; return a (more) meaningful error 2006-07-08 11:47:23 +00:00
Pierangelo Masarati
fcab1dd1bc handle computed filters the best it can (ITS#4604) 2006-07-01 19:00:27 +00:00
Pierangelo Masarati
5f58c733cc enable NOOP (ITS#4563; seems to work now) 2006-05-25 22:45:45 +00:00
Pierangelo Masarati
d1824b14ae fix NOOP return code (ITS#4563; I'll check and confirm it later; NOOP support might be broken) 2006-05-25 16:58:41 +00:00
Pierangelo Masarati
810a8f0d06 sigh, the test was renamed ages ago 2006-05-24 01:50:57 +00:00
Howard Chu
ab7e975159 check for NULLs from ber_mem funcs 2006-05-09 11:09:04 +00:00
Howard Chu
6b4de96679 plug leak 2006-05-09 10:52:22 +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
Howard Chu
fe3b6d0071 ITS#4384 rework entryCSN handling, retrieve from incoming request
if it was provided. Always check and graduate, regardless of shadow status.
2006-02-05 01:09:48 +00:00
Kurt Zeilenga
acbb5cf689 Happy new year! 2006-01-03 23:11:52 +00:00
Luke Howard
b55557e30b Remove new_rdn/old_rdn - handled by frontend 2006-01-02 15:40:45 +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
0c75d26060 make the message one-line 2005-12-17 00:41:17 +00:00
Pierangelo Masarati
b984e616c3 remove support for control as the operation is now incompatible 2005-12-16 15:01:59 +00:00
Pierangelo Masarati
6930e84f81 plug leaks... 2005-12-06 22:56:58 +00:00
Pierangelo Masarati
0b0aed319a use helper to destroy modrdn modifications; send result after commit\!... 2005-12-06 22:56:07 +00:00
Pierangelo Masarati
c226563da4 fix various memory leaks and handling issues 2005-12-06 22:06:29 +00:00
Kurt Zeilenga
48cb85865d Remove some unnecessary #ifdefs 2005-11-26 07:38:18 +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
f86543c770 cleanup filter escaping 2005-11-25 12:16:27 +00:00
Pierangelo Masarati
ea83f6a669 check sizelimit in frontend (ITS#4213) 2005-11-25 00:28:33 +00:00
Pierangelo Masarati
194aa68dab always set sr_flags before sending an entry 2005-11-24 21:20:06 +00:00
Pierangelo Masarati
d34fffcaf9 use lutil_ato*() whenever appropriate 2005-11-24 01:10:05 +00:00
Pierangelo Masarati
654181d8d5 silence debug messages 2005-11-24 01:00:28 +00:00
Pierangelo Masarati
55c52c5c72 better fix to ITS#4183 (the prototype in proto-slap.h was erroneously committed earlier) 2005-11-18 00:00:39 +00:00
Pierangelo Masarati
b2c4a3be6a fix size limit count (ITS#4181) 2005-11-17 18:55:47 +00:00
Pierangelo Masarati
af23be3675 silence warnings... 2005-11-14 21:47:17 +00:00
Pierangelo Masarati
910ee45f01 use pooled memory whenever appropriate 2005-11-13 21:51:13 +00:00
Pierangelo Masarati
1faf38448b fix root entry delete/add 2005-11-07 01:08:41 +00:00
Pierangelo Masarati
3019716578 fix invalid read 2005-11-07 01:07:59 +00:00
Pierangelo Masarati
7efa22c2b7 fix type issue 2005-11-06 23:34:33 +00:00
Pierangelo Masarati
bdb661440b fix operational attrs addition 2005-11-06 23:34:03 +00:00
Pierangelo Masarati
dbb88f203b fix root entry deletion 2005-11-06 23:33:41 +00:00
Pierangelo Masarati
40cac2e37a fix access checking; fix operational attrs addition 2005-11-06 23:32:52 +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
Pierangelo Masarati
0d76419984 add missing space (ITS#4061) 2005-10-04 10:02:54 +00:00
Pierangelo Masarati
1c2aef6050 fix format and signedness issues 2005-09-08 20:18:43 +00:00
Pierangelo Masarati
98363b43a6 enable syncrepl support by default 2005-08-10 16:54:45 +00:00
Pierangelo Masarati
e24cc0589f more cleanup 2005-08-07 22:22:27 +00:00
Pierangelo Masarati
d79d9be840 free Env 2005-08-07 21:53:38 +00:00
Pierangelo Masarati
3d075186bf don't leak entry/referrals in case of reference 2005-08-07 21:26:15 +00:00
Pierangelo Masarati
09f749da96 remove unnecessary data from search_info 2005-08-07 20:43:07 +00:00
Pierangelo Masarati
779d94312f cleanup candidate list in case of abandon, even if it occurs while selecting candidates 2005-08-07 20:11:41 +00:00
Pierangelo Masarati
433c7923c5 cleanup candidate list in case of abandon 2005-08-07 20:04:47 +00:00
Pierangelo Masarati
125059ccb5 more cleanup 2005-08-07 18:56:19 +00:00
Pierangelo Masarati
92527ee15b plug more leaks; few remain (but seem to be in ODBC) 2005-08-07 17:28:26 +00:00
Pierangelo Masarati
be355833a0 fix use of uninitialized value; beautify logs 2005-08-07 10:49:40 +00:00
Pierangelo Masarati
e281e08e79 remove cruft 2005-08-07 10:49:01 +00:00
Luke Howard
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
Pierangelo Masarati
e8c4911a39 check return value from add (ITS#3891) 2005-07-28 00:06:14 +00:00
Pierangelo Masarati
a6d9e7d933 use operation slab for column binding 2005-07-25 22:11:09 +00:00
Pierangelo Masarati
6f3363f0d9 Under some circumstances, port 9010 is already in use and may cause problems to referrals whose server is supposed to be unavailable 2005-07-20 11:17:06 +00:00
Pierangelo Masarati
e6ecb77b0e drop stored procedures 2005-07-20 11:16:09 +00:00
Hallvard Furuseth
81ecb0b153 assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL). 2005-07-18 06:22:33 +00:00
Pierangelo Masarati
684860502e should address ITS#3861 2005-07-13 17:43:30 +00:00
Hallvard Furuseth
b1f5e9258a Complete the replacement of LDAP_CONTROL_X_TREE_DELETE with
SLAP_CONTROL_X_TREE_DELETE, which is only defiend when LDAP_DEVEL.
back-sql triggered an assert(0): It expected the control to be supported.
2005-07-07 20:36:37 +00:00
Pierangelo Masarati
ba8b6bbd88 add delete stuff to all attributes (needed to deelete with "fail_if_no_mapping yes"); passes write test(s) 2005-06-13 22:13:10 +00:00
Pierangelo Masarati
acf5187b2e rework assertion 2005-06-13 22:12:11 +00:00
Pierangelo Masarati
495106c213 fix potential SIGSEGV when backsql_modify_delete_all_values() is used outside backsql_add() 2005-06-13 22:11:41 +00:00
Pierangelo Masarati
91bdea2817 use "pgsql" instead of "postgres" for consistency with the directory names in servers/slapd/back-sql/rdbms_depend 2005-06-09 11:03:06 +00:00
Pierangelo Masarati
94747a8489 fix previous commit; document aliasing and aliasing quotes configuration 2005-06-09 09:45:02 +00:00
Pierangelo Masarati
e52d5cb812 make aliasing and aliasing quotes configurable 2005-06-09 09:43:20 +00:00
Pierangelo Masarati
4d58c2f39f fix previous commit 2005-06-01 19:36:58 +00:00
Pierangelo Masarati
3751f0325d work around syncprov interoperation issues; minor cleanup 2005-06-01 19:35:13 +00:00
Pierangelo Masarati
6434721e42 fix improper use of "fail_if_no_mapping" flag: fail in case of error, don't fail only if mapping is not present 2005-06-01 16:51:36 +00:00
Kurt Zeilenga
feeeabcd68 manageDIT framework and obsolete objectclasses/DIT-content-rule override 2005-05-13 19:07:31 +00:00
Howard Chu
c225c4af34 Updated ldif_read_record to support LDIF include: directive 2005-05-12 00:46:39 +00:00
Pierangelo Masarati
3ce45e11bb fix and strengthen the structural objectClass test 2005-05-12 00:43:29 +00:00
Pierangelo Masarati
740835dff9 remove global_schemacheck 2005-05-12 00:03:50 +00:00
Pierangelo Masarati
4abbf9c610 implement add/delete granularity in write access (ITS#3631) 2005-04-08 00:18:24 +00:00
Pierangelo Masarati
0220a25f05 use alias name instead of column name in order by clause (ITS#3629) 2005-04-04 17:41:29 +00:00
Pierangelo Masarati
20b3d14dc3 more dnParent() cleanup 2005-03-30 22:29:54 +00:00
Kurt Zeilenga
71c2c1c9fe Change "subtree delete not supported" diagnostic text to
"subordinate objects must be deleted first" as the "not supported"
language implies some feature of LDAP is not implemented in slapd(8).
2005-03-26 00:53:00 +00:00
Pierangelo Masarati
5d19659193 honor abandon/cancel (ITS#3551) 2005-02-19 12:25:55 +00:00
Pierangelo Masarati
0f18e6ce24 fix ITS#3551 2005-02-19 11:07:02 +00:00
Pierangelo Masarati
fbb2b75ace matched values is "global" 2005-01-30 22:04:02 +00:00
Pierangelo Masarati
96fa1eda64 (blind) improvement of column name aliasing 2005-01-21 17:27:27 +00:00
Pierangelo Masarati
2975c6d46e provision for ITS#3497 2005-01-20 16:35:49 +00:00
Pierangelo Masarati
5785175313 provision for ITS#3497 2005-01-20 16:06:41 +00:00