1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-05 12:23:50 +03:00
Commit Graph

852 Commits

Author SHA1 Message Date
Andrew Tridgell
6495620d18 r17702: test for gcc, and only enable gcc flags if true 2007-10-10 14:16:27 -05:00
Andrew Tridgell
bd1bd1c5ce r17701: doxygen (if installed!) needs to be run in the src directory 2007-10-10 14:16:27 -05:00
Andrew Bartlett
daa1a61891 r17700: Despite our best hopes, the way module initialisation tends to happen,
we make searches before things are initialised.  Cope with this.

Andrew Bartlett
2007-10-10 14:16:27 -05:00
Andrew Bartlett
5bcfa12cef r17698: The original code assumed that &data->context was a valid talloc
pointer.

This only works when this is the only structure member, but when I
added a new context pointer, it failed.

Andrew Bartlett
2007-10-10 14:16:27 -05:00
Andrew Tridgell
55748bb382 r17697: - enable test for slapd
- include popt.m4
2007-10-10 14:16:26 -05:00
Andrew Tridgell
13e14e0f8d r17696: attempt to allow ldb to use an external popt directory, so we can
point it at the popt sources in the samba source tree when building in
the build farm
2007-10-10 14:16:26 -05:00
Andrew Tridgell
7cca1f83f4 r17695: added installcheck target 2007-10-10 14:16:26 -05:00
Andrew Tridgell
3e48177dd1 r17693: only install man pages if we have managed to generate them with
xsltproc
2007-10-10 14:16:26 -05:00
Andrew Tridgell
9bc751d1f1 r17692: - don't try and run ldap tests unless we have slapd
- fix manpages install
2007-10-10 14:16:25 -05:00
Andrew Bartlett
ba00f45357 r17691: Make the structure more public, so we have somewhere for calling
modules to put private data.

Andrew Bartlett
2007-10-10 14:16:25 -05:00
Andrew Tridgell
9a7c1df956 r17689: build works, this should fix install .... 2007-10-10 14:16:25 -05:00
Andrew Tridgell
d0412765ba r17688: the commit/test cycle for getting this to work in the build farm sure
is tedious! nearly there I hope .....
2007-10-10 14:16:25 -05:00
Andrew Tridgell
b12fd256ff r17687: remove circular dependency 2007-10-10 14:16:24 -05:00
Andrew Tridgell
580ed6730d r17679: - fix 'make test-ldap' to skip ldb specials
- allow ldb to be built in a separate build directory, using:

     /some/path/to/ldb/configure
     make

  this will make it much easier to put ldb in the build farm without
  interfering with the build farm builds of tdb and talloc
2007-10-10 14:16:22 -05:00
Andrew Tridgell
e390881819 r17678: don't free result message twice 2007-10-10 14:16:22 -05:00
Simo Sorce
07d377f3c2 r17614: Our first "client side' ldb module.
This module has been created with the purpose of being used
for searches against ldap servers without the need to handle
the control manually

You can test it by passing -o modules:paged_searches to ldbsearch

The page search size is set to 500 objects.

Simo.
2007-10-10 14:16:17 -05:00
Simo Sorce
86fc149ca8 r17613: style fix 2007-10-10 14:16:16 -05:00
Andrew Bartlett
05c276568a r17601: Fix declaration after statement.
Andrew Bartlett
2007-10-10 14:16:16 -05:00
Andrew Bartlett
cb2b9d800d r17600: Finish the schema conversion tool, and add a mapping file, used to map
OIDs and skip built-in attributes.

Andrew Bartlett
2007-10-10 14:16:16 -05:00
Andrew Bartlett
22dec7b62a r17599: Improvements to the AD-like to OpenLDAP format schema conversion utility.
We now read the objectClasses, and sort them into order, so that
OpenLDAP will load them.  We do this by walking down the 'subClassOf'
chain.  This should also be used in the objectClass module to sort the
objectClass list, and to populate the @SUBCLASS records.

Andrew Bartlett
2007-10-10 14:16:16 -05:00
Simo Sorce
e9d101bc3c r17596: apply patch from Martin 2007-10-10 14:16:15 -05:00
Andrew Bartlett
113ef01320 r17582: Fix dependenies for oLschema2ldif.
Andrew Bartlett
2007-10-10 14:15:39 -05:00
Andrew Bartlett
391f472df7 r17581: Add tool to convert AD schema back to OpenLDAP's schema formatting.
Andrew Bartlett
2007-10-10 14:15:39 -05:00
Andrew Bartlett
ba1c652bae r17580: Add a new tools to convert back from AD-like schema to OpenLDAP.
Add attribute syntax mapping to the existing OpenLDAP -> AD tool.

Andrew Bartlett
2007-10-10 14:15:39 -05:00
Andrew Tridgell
403cbd3355 r17579: make ldb build g++ friendly 2007-10-10 14:15:38 -05:00
Andrew Bartlett
656e58672c r17542: In using ldb_map, I ran across some very odd behaviours when we search
for objectClass=xyz.  The code has been warning at me 'no
covert_operator set', and indeed this is the case.  (It then proceeds to
strip this as a search expression)

In this commit, I have implemented a convert_operator for objectClass,
by pretending it is a simple MAP_CONVERT operator for the search
requests.

I also have changed the logic for when we should bail out.  I can only
see reason to bail out on the search if we have both local and remote
trees.  How can a remote-only search be un-splittable?

Andrew Bartlett
2007-10-10 14:15:35 -05:00
Andrew Bartlett
af02b4d7c6 r17526: Move timestamp generation into the objectGUID module. It probably
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
2007-10-10 14:15:33 -05:00
Andrew Bartlett
af2bece4d3 r17525: This is a merge from the Google Summer of Code 2006 project by Martin Kühl
<mkhl@samba.org>.

Martin took over the work done last year by Jelmer, in last year's
SoC.  This was a substanital task, as the the ldb modules API changed
significantly during the past year, with the addition of async calls.

This changeset reimplements and enables the ldb_map ldb module and
adapts the example module and test case, both named samba3sam, to the
implementation.

The ldb_map module supports splitting an ldb database into two parts
(called the "local" and "remote" part) and storing the data in one of
them (the remote database) in a different format while the other acts
as a fallback.
This allows ldb to e.g. store to and load data from a remote LDAP
server and present it according to the Samba4 schema while still
allowing the LDAP to present and modify its data separately.

A complex example of this is the samba3sam module (by Jelmer
Vernooij), which maps data between the samba3 and samba4 schemas.

A simpler example is given by the entryUUID module (by Andrew
Bartlett), which handles some of the differences between AD and
OpenLDAP in operational attributes.  It principally maps objectGUID,
to and from entryUUID elements.  This is also an example of a module
that doesn't use the local backend as fallback storage.

This merge also splits the ldb_map.c file into smaller, more
manageable parts.
2007-10-10 14:15:33 -05:00
Simo Sorce
ad75cf8695 r17516: Change helper function names to make more clear what they are meant to do 2007-10-10 14:15:31 -05:00
Simo Sorce
5f78645150 r17515: Fix warnings 2007-10-10 14:15:31 -05:00
Simo Sorce
260868bae5 r17514: Simplify the way to set ldb errors and add another
helper function to set them.
2007-10-10 14:15:31 -05:00
Simo Sorce
d57b521aad r17504: Do not use the invented unixID but use the rfc2307 uidNumber and gidNumber attributes instead
Do not change unixName right now, we don't have an attribute to use in the posixGroup class,
and I think we should remove its usage altogether and look up users and groups by their uid/gid only.

Simo.
2007-10-10 14:15:30 -05:00
Simo Sorce
8c6efd7b55 r17503: Add a useful function to search for a DN 2007-10-10 14:15:30 -05:00
Andrew Bartlett
c016db2187 r17474: Allow the partitions module to load modules for specific backends.
Andrew Bartlett
2007-10-10 14:15:27 -05:00
Andrew Bartlett
bed17cc579 r17473: Split loading a list of modules and initialising them into a seperate
function.

Andrew Bartlett
2007-10-10 14:15:27 -05:00
Stefan Metzmacher
932f8bec21 r17432: display more GUID values nicely,
they all have rangeLower=16 rangeUpper=16
and attribute syntax 2.5.5.10

metze
2007-10-10 14:15:25 -05:00
Stefan Metzmacher
96259f0f24 r17430: implement the LDAP_SERVER_PERMISSIVE_MODIFY control in the client
metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
40dc7c1787 r17429: implement the LDAP_SERVER_SHOW_DELETED control in the client
metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
84e74a759c r17420: add client support for the LDAP_SERVER_DOMAIN_SCOPE control
metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
4ccd0f8171 r17419: add client support for the LDAP_SERVER_SEARCH_OPTIONS support.
with this you can limit a search to a specific partitions
or a search over all partitions without getting referrals.
(Witch is the default behavior on the Global Catalog Port)

metze
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
23759a1e9b r17418: add client support for the LDAP_SERVER_SD_FLAGS control
metze
2007-10-10 14:15:23 -05:00
Stefan Metzmacher
96e9d46091 r17416: display the attributeSecurityGUID nicely.
this attriute is used to group multiple attribute
to a propertySet for access control.

metze
2007-10-10 14:15:23 -05:00
Stefan Metzmacher
92f133f1ef r17415: the ldif handlers can't do search as this now blocks foerever
because the handlers are called within the async callbacks
in side the main search.

Also it makes no sense to give the sddl encoder the sid of the primary
domain when we need a description of a real security_descriptor,
this only makes sense for the defaultSecurityDescriptor...

metze
2007-10-10 14:15:23 -05:00
Simo Sorce
fc97b5dc8c r17398: avoid a memleak when we are returned 0 results and make a more creative use of memory contexts 2007-10-10 14:15:22 -05:00
Andrew Bartlett
59fc8031ec r17397: Add const, and use a more local memory context.
Andrew Bartlett
2007-10-10 14:15:21 -05:00
Simo Sorce
1b3b617659 r17370: Fix tdb searches, we need to return an LDAP_REPLY_DONE packet when done.
Awesome how this didn't break everything around...
2007-10-10 14:15:20 -05:00
Andrew Bartlett
54eda4b859 r17368: Add 'const' to ldb_match_msg().
Andrew Bartlett
2007-10-10 14:15:19 -05:00
Simo Sorce
97c4d41a30 r17350: Avoid a couple of memleaks, unnecessary code and use a more linear style 2007-10-10 14:15:18 -05:00
Andrew Bartlett
26bc7dbed9 r17349: We can't just return sucess here, modules below us expect the async
reply rules to be followed.

Add code to do a fake async callback on the skipped records.

Andrew Bartlett
2007-10-10 14:15:17 -05:00
Andrew Bartlett
38bd4f6179 r17304: Improve ldb_tdb error strings a bit more.
Andrew Bartlett
2007-10-10 14:15:09 -05:00