Hallvard Furuseth
742f3a2a2c
Warning cleanup: signed meets unsigned.
2008-10-13 14:54:27 +00:00
Hallvard Furuseth
04a7b8bf70
For ITS#5408: Handle special chars in filenames, in particular on Windows.
...
When upgrading, may need to slapcat/slapadd the database if back-ldif
is used as a general backend with chars like ':' or Windows' special
chars in DNs.
2008-04-16 00:09:25 +00:00
Hallvard Furuseth
66bedd2962
For ITS#5408: Cleanup: No functionality change.
...
Change dn2path(), get_entry() and move_entry() prototypes/usage.
Remove unused statements/initializations. get_entry() now returns
a result code, reducing result code handling a bit.
2008-04-15 22:30:40 +00:00
Hallvard Furuseth
e67144ca7c
For ITS#5408: back-ldif cannot currently handle multiple database suffixes.
...
So make olcDbDirectory SINGLE-VALUE and set SLAP_DBFLAG_ONE_SUFFIX.
Take advantage of that in ldif_back_referrals().
2008-04-15 22:22:38 +00:00
Hallvard Furuseth
61140d66a0
ITS#5328:
...
Do not send errors (other than referral) from ldif_back_referrals().
Return LDAP result code from ldif_back_entry_get().
2008-02-11 21:04:05 +00:00
Kurt Zeilenga
c890c96d13
Happy New Year (belated)
2008-01-08 00:19:56 +00:00
Hallvard Furuseth
d3c90c989c
Fix spew_file() comment
2008-01-08 00:02:58 +00:00
Pierangelo Masarati
64c662c5b2
behave when the empty DN is used as database suffix (ITS#5265)
2007-12-11 16:59:40 +00:00
Pierangelo Masarati
4d53c886a8
fix back-ldif delete (ITS#5265)
2007-12-11 15:12:48 +00:00
Pierangelo Masarati
b6508a1066
fix dirsep's in DN (ITS#5172)
2007-10-10 18:50:20 +00:00
Pierangelo Masarati
8f95ff260c
consistently use "tag=" instead of "op=" in debug messages
2007-08-25 00:10:52 +00:00
Pierangelo Masarati
ce6b685caf
rework previous commit
2007-08-17 09:52:31 +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
87f918ebc0
don't dereference save_errnop if NULL; create temporary file in right dir; revert to strtol(3) (ITS#4627)
2007-08-16 09:23:48 +00:00
Howard Chu
c727d5caf7
ITS#4627 fix tool_entry_next
2007-08-15 20:09:06 +00:00
Hallvard Furuseth
8e30e008c6
Fix rev 1.68 spew_entry() for ITS#4627: Do not dereference NULL save_errnop.
...
Add missing unlink(). Update debug messages, move one from spew_file().
Also check the close() return code.
2007-08-15 19:43:13 +00:00
Howard Chu
b45c15fdc9
TS#4627 fix tool_entry_first()
2007-08-14 18:54:28 +00:00
Pierangelo Masarati
d8f964fb7a
fix most of the issues of ITS#4627
2007-08-14 15:54:56 +00:00
Howard Chu
a87b4592a4
Remove tool_id2entry_get
2007-08-11 04:19:53 +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
Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Howard Chu
fcc51c0497
Fix modrdn, must also rename the directory if it exists.
2006-12-24 00:54:14 +00:00
Howard Chu
2a9afa55a7
Avoid unnecessary calls to oc_bvfind
2006-11-27 19:59:59 +00:00
Howard Chu
701c39ed83
Tone down enum_tree warning
2006-11-17 22:51:04 +00:00
Kurt Zeilenga
7c68de27c8
Check opattrs add result
2006-09-16 17:20:29 +00:00
Howard Chu
3f4e196beb
Portability cleanups
2006-09-14 07:29:46 +00:00
Pierangelo Masarati
1efd2ef101
(almost blind) fix potential strchr() read-past-end of berval
2006-05-26 00:07:55 +00:00
Howard Chu
716df7c62c
ITS#4512 fix bogus Debug messages in rev 1.48
2006-04-28 06:22:48 +00:00
Howard Chu
f3ee4f5d30
Fix rev 1.52, frontendDB uses index {-1}.
2006-04-27 23:21:39 +00:00
Howard Chu
e97673df67
ITS#4500 use rdwr lock instead of mutex
2006-04-27 07:52:12 +00:00
Pierangelo Masarati
02b3af0900
check existence of newSuperior
2006-04-25 21:11:44 +00:00
Pierangelo Masarati
54f7d5aef3
allow empty modlist
2006-04-25 19:51:38 +00:00
Pierangelo Masarati
95b29919a3
more ITS#4503 cleanup
2006-04-25 19:30:48 +00:00
Pierangelo Masarati
423a2c73f4
fix *entry_get() behavior
2006-04-13 16:09:06 +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
8fb8b17c04
Code which doesn't hanlding allocation failure should use
...
ch_ routines, not SLAP_ macros
2006-04-06 21:44:05 +00:00
Ralf Haferkamp
93d5e01390
some more debug logging
2006-02-15 17:25:45 +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
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
9f2e86c8e3
cleanup error logging
2005-12-16 19:01:05 +00:00
Pierangelo Masarati
e0a28ee53f
remove unused var
2005-12-06 23:06:55 +00:00
Pierangelo Masarati
e9169c2b46
use helper to destroy modrdn modifications; plug leaks...
2005-12-06 22:56:36 +00:00
Pierangelo Masarati
aac978d8f9
better fix to ITS#4183 (the prototype in proto-slap.h was erroneously committed earlier)
2005-11-18 00:20:01 +00:00
Howard Chu
91b3f49d5f
ITS#4128 revert prev fixes, alternate fix used.
2005-11-03 21:56:33 +00:00
Pierangelo Masarati
48432b1a8d
more about ITS#4128; please review
2005-10-31 15:33:30 +00:00
Pierangelo Masarati
217489bd90
address ITS#4128; please review
2005-10-31 15:27:26 +00:00
Howard Chu
7dcb68f6fa
Move CSN invocations to backends
2005-10-13 11:58:44 +00:00
Howard Chu
29731c1850
Partially revert rev 1.31, must detect send_search errors to propagate
...
errors up when reading config DB.
2005-08-27 10:15:22 +00:00
Hallvard Furuseth
f17ffeb925
Rename label "leave" to "done".
...
Tru64 5.1 alpha's <pthread.h> turns "leave" into an exception handling keyword.
2005-08-26 22:23:27 +00:00
Pierangelo Masarati
cc361f7aa0
don't need compare if entry_get is available
2005-08-03 00:33:37 +00:00
Howard Chu
b98d3b5903
ITS#3912 missed an invocation of entry_schema_check in last round of changes
2005-08-02 09:44:44 +00:00
Hallvard Furuseth
e404a15082
Cleanup
2005-07-31 18:17:13 +00:00
Pierangelo Masarati
d959d771bf
support increment; don't bother too much about return values of send_search_* functions
2005-07-30 15:00:41 +00:00
Pierangelo Masarati
6fe8f5dd18
...otherwise it doesn't work with overlays
2005-07-30 10:37:34 +00:00
Howard Chu
ddf6c7b298
Plug more memleaks
2005-07-21 23:26:40 +00:00
Howard Chu
a70c294359
Plug memleak in enum_tree
2005-07-21 21:59:35 +00:00
Hallvard Furuseth
ca615a4b3a
bvlist *list was updated through the wrong type.
2005-07-17 12:08:32 +00:00
Howard Chu
7b245a0a55
Fix entry writing, truncate file if rewriting.
2005-06-25 14:15:11 +00:00
Pierangelo Masarati
36c5fe1991
don't leave dangling pointers; pass entry when sending referrals
2005-05-30 12:37:24 +00:00
Kurt Zeilenga
feeeabcd68
manageDIT framework and obsolete objectclasses/DIT-content-rule override
2005-05-13 19:07:31 +00:00
Howard Chu
048a36a60f
Fix prev commit, trim unused cfOC vars
2005-05-09 05:02:23 +00:00
Howard Chu
ee59484f7b
Restructured to allow miscellaneous Adds under database/overlay objects
2005-05-09 03:42:51 +00:00
Howard Chu
f8bba201f4
More for error propagation
2005-05-09 01:20:03 +00:00
Howard Chu
6d7b27fcca
Propagate config errors back to caller.
2005-05-06 20:20:45 +00:00
Howard Chu
9b045fa734
Fix for WIN32 mkdir
2005-05-06 00:02:26 +00:00
Howard Chu
02f1ede034
ITS#3699, #3702 fix ldif_back_search to send entries immediately instead
...
of queueing them up.
2005-05-04 09:53:10 +00:00
Pierangelo Masarati
f7ead8f919
apply naming scheme to global/database schema
2005-04-10 22:27:50 +00:00
Pierangelo Masarati
20b3d14dc3
more dnParent() cleanup
2005-03-30 22:29:54 +00:00
Pierangelo Masarati
7cf03f2b50
don't fail if the directory can't be opened because it doesn't exist; silence few warnings
2005-03-30 18:38:04 +00:00
Pierangelo Masarati
7d531d1416
release lock as early as possible; deferring referral checking in searches may reduce the amount of dynamic entry generation
2005-03-29 23:56:23 +00:00
Pierangelo Masarati
908aaa5107
add manageDSAit & referral support (to be tested); cleanup some error conditions
2005-03-29 18:57:42 +00:00
Pierangelo Masarati
40ec0992d6
don't continue if fopen failed
2005-03-29 11:43:36 +00:00
Howard Chu
fbbc07e644
Allow for alternate ordering characters to be used in the filesystem
2005-03-29 08:29:38 +00:00
Howard Chu
aaf112c9c2
Better numeric sorting for ordered entries
2005-03-29 03:11:40 +00:00
Howard Chu
3f357270d4
Fix unparsers, schema loading works
2005-03-21 10:23:01 +00:00
Howard Chu
fda662bd34
More for loading config from LDIF
2005-03-20 09:13:48 +00:00
Howard Chu
c2a9642850
Support subtree rename, refuse subtree delete
2005-03-18 23:22:12 +00:00
Howard Chu
83c748fe5c
More for loading config from database. Fix non-reentrant strtok_quote.
2005-03-17 23:07:44 +00:00
Howard Chu
dccfd8ae23
Fix enum_tree, return in lexical order
2005-03-17 06:31:50 +00:00
Howard Chu
49bf49de06
More cleanup. Still needs work.
2005-03-16 07:45:17 +00:00
Kurt Zeilenga
6ea6a72d5d
remove non-ISO-C-isms
...
This code needs to be cleaned up!
2005-03-16 02:33:27 +00:00
Howard Chu
bc4564cac4
More back-config / back-ldif integration, added config_generic_wrapper,
...
added -F option to specify config directory
2005-03-15 08:57:34 +00:00
Howard Chu
699fa73c2b
Added back-ldif
2005-03-10 06:19:18 +00:00