| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
everywhere.
|
| |
|
| |
|
| |
|
|
|
|
| |
metze
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to a ldb_schema_syntax struct.
the default attribute handler is now registered dynamicly as "*"
attribute, instead of having its own code path.
ldb_schema_attribute's can be added to the ldb_schema given a
ldb_schema_syntax struct or the syntax name
we may also need to introduce a ldb_schema_matching_rule,
and add a pointer to a default ldb_schema_matching_rule
in the ldb_schema_syntax.
metze
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This moves these attributes from objectguid into an optional backend
(objectguid), used by ltdb. For OpenLDAP, the entryUUID module
converts entryCSN into usnChanged.
This also changes the sequence number API, and uses 'time based'
sequence numbers, when an LDAP or similar backend is detected.
To assist this, we also store the last modified time in the TDB,
whenever we change a value.
Andrew Bartlett
|
|
|
|
|
|
|
|
| |
emacs compile mode (hint, paste to a file, and compile as "cat
filename").
This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
|
|
|
|
|
|
|
|
|
| |
needs to be renamed (operation_add?).
This allows me to match the behaviour and substitute with the
entryUUID module for remote LDAP connections.
Andrew Bartlett
|
|
|
|
| |
helper function to set them.
|
| |
|
|
|
|
|
|
|
|
| |
Finally acknowledge that ldb is inherently async and does not have a dual personality anymore
Rename all ldb_async_XXX functions to ldb_XXX except for ldb_async_result, it is now ldb_reply
to reflect the real function of this structure.
Simo.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The function pointer was meant to be unused, this patch fixes
partition.c to use ldb_sequence_number(). (No backend provided the
pointer any more).
Set the flags onto the ldb structure, so that all backends opened by
the partitions module inherit the flags.
Set the read-ony flag when accessed as the global catalog
Modify the LDAP server to track that this query is for the global
catalog (by incoming port), and set a opqaue pointer.
Next step is to read that opaque pointer in the partitions module.
Andrew Bartlett
|
|
|
|
|
| |
Check timeouts are correctly verified.
Some minor fixed and removal of unused code.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This means that some modules have been disabled as well as they
have not been ported to the async interface
One of them is the ugly objectclass module.
I hope that the change in samldb module will make the MMC happy
without the need of this crappy module, we need proper handling
in a decent schema module.
proxy and ldb_map have also been disabled
ldb_sqlite3 need to be ported as well (currenlty just broken).
|
|
|
|
| |
They have never benn used and make little sense too imo
|
|
|
|
|
| |
I was sick of jumping inot each module for each request,
even the ones not handle by that module.
|
|
|
|
| |
Testing various async paths and uncovering bugs
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Applications that use LDB modules will now have to run ldb_global_init()
before they can use LDB.
The next step will be adding support for loading LDB modules from .so
files. This will also allow us to use one LDB without difference between the
standalone and the Samba-specific build
|
|
|
|
|
|
|
| |
the @BASEINFO sequenceNumber
(simo, I changed the function pointer to a structure element as you
preferred)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
ldb_msg_add_steal_value().
These try to maintain the talloc heirachy, which must be correct
otherwise talloc_steal operations of entire attribute lists fails.
This fixes the currentTime value, found by using Microsoft's dcdiag
tool (before this commit, it pointed to invalid memory, due to the
changes in -r 13606)
Andrew Bartlett
|
|
|
|
|
|
| |
this helps in getting symbol -fvisibility=hidden (GCC 4 feature) working later.
metze
|
|
|
|
|
|
| |
a second_stage_init private function for modules that need a second stage init.
Simo.
|
|
|
|
|
|
|
| |
There's still lot of work to do but the patch is stable
enough to be pushed into the main samba4 tree.
Simo.
|
| |
|
|
|
|
| |
request strucutre. It will take a while for this to happen everywhere.
|
|
|
|
| |
- removed an unnecessary level of pointer in ldb_search structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch changes the way lsb_search is called and the meaning of the returned integer.
The last argument of ldb_search is changed from struct ldb_message to struct ldb_result
which contains a pointer to a struct ldb_message list and a count of the number of messages.
The return is not the count of messages anymore but instead it is an ldb error value.
I tryed to keep the patch as tiny as possible bu as you can guess I had to change a good
amount of places. I also tried to double check all my changes being sure that the calling
functions would still behave as before. But this patch is big enough that I fear some bug
may have been introduced anyway even if it passes the test suite. So if you are currently
working on any file being touched please give it a deep look and blame me for any error.
Simo.
|
|
|
|
| |
dn->canonicalName function abartlet just committed
|
|
|
|
|
|
| |
- added note about allowedAttributesEffective (will be needed for mmc)
- fixed some more ldb warnings
|
|
|
|
|
|
| |
ldb_msg_copy_attr() to ensure
that callers (like the ldap server) can talloc_steal the name
|
|
|
|
|
|
|
|
|
|
|
| |
- removed the timestamps module, replacing it with the operational module
- added a ldb_msg_copy_shallow() function which should be used when a module
wants to add new elements to a message on add/modify. This is needed
because the caller might be using a constant structure, or may want to
re-use the structure again
- enabled the UTC time attribute syntaxes in the operational module
|
|
most of the changes are fixes to make all the ldb code compile without
warnings on gcc4. Unfortunately That required a lot of casts :-(
I have also added the start of an 'operational' module, which will
replace the timestamp module, plus add support for some other
operational attributes
In ldb_msg_*() I added some new utility functions to make the
operational module sane, and remove the 'ldb' argument from the
ldb_msg_add_*() functions. That argument was only needed back in the
early days of ldb when we didn't use the hierarchical talloc and thus
needed a place to get the allocation function from. Now its just a
pain to pass around everywhere.
Also added a ldb_debug_set() function that calls ldb_debug() plus sets
the result using ldb_set_errstring(). That saves on some awkward
coding in a few places.
|