1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

932 Commits

Author SHA1 Message Date
Andrew Tridgell
30ee8beb93 r18301: I discovered how to load the warnings from a build farm build into
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.
(This used to be commit eba6c84eff)
2007-10-10 14:18:04 -05:00
Andrew Tridgell
27126bae7e r18286: ldb now needs install-sh too
(This used to be commit ce5b1b8c09)
2007-10-10 14:18:01 -05:00
Andrew Tridgell
e6b457d550 r18283: libreplace.m4 needs to be early in configure.ac in other packages too
(This used to be commit 03f9c67c06)
2007-10-10 14:18:01 -05:00
Simo Sorce
a865dcf02f r18272: Couldn't resist to change this.
What we want to do here is to just make sure res is freed.
Well let's just do so explicitly, the steal cofused me
initially while reading the code. This way it is clear
what we want to do.

Simo.
(This used to be commit 30a26a501f)
2007-10-10 14:17:59 -05:00
Andrew Bartlett
f140bd7e38 r18245: Ensure we don't keep the rootdse record around (steal it onto the
correct memory context).

Andrew Bartlett
(This used to be commit b4f234e507)
2007-10-10 14:17:54 -05:00
Andrew Tridgell
89a39c7acb r18244: more portable shell scripting
(This used to be commit 3200031276)
2007-10-10 14:17:54 -05:00
Stefan Metzmacher
a46e12d0e0 r18213: don't list LIBREPLACE depdendecies explicit and
always at it as first private dependencies

metze
(This used to be commit 135d096776)
2007-10-10 14:17:50 -05:00
Jelmer Vernooij
873749f218 r18168: Use {NULL} rather than POPT_TABLEEND, which is not always available.
(This used to be commit 8b622c5ded)
2007-10-10 14:17:45 -05:00
Jelmer Vernooij
f057742ef3 r18166: Fix build with external popt.
(This used to be commit b34310029a)
2007-10-10 14:17:45 -05:00
Jelmer Vernooij
7276648944 r18161: Fix LDB build after popt changes.
(This used to be commit 849fa93540)
2007-10-10 14:17:44 -05:00
Stefan Metzmacher
6aa376ef15 r18153: html/ isn't needed
metze
(This used to be commit 39dc57a502)
2007-10-10 14:17:43 -05:00
Stefan Metzmacher
6150443532 r18152: move our AC macros into lib/replace/libreplace_macros.m4
and include them from there

metze
(This used to be commit 38f9e90a12)
2007-10-10 14:17:43 -05:00
Stefan Metzmacher
6513e415b8 r18150: fix make *clean
metze
(This used to be commit e354cd0fae)
2007-10-10 14:17:42 -05:00
Andrew Tridgell
ed356c7989 r18143: the 'showflags' convention from Samba is useful for the other packages
(This used to be commit a4d1f1d222)
2007-10-10 14:17:40 -05:00
Andrew Tridgell
eaf584cd97 r18133: ad2oLschema needs ctype.h on some systems
(This used to be commit efe60c8a4b)
2007-10-10 14:17:37 -05:00
Andrew Tridgell
014f70008f r18130: the move to system/ in libreplace broke some things ... should be
happier now
(This used to be commit 18542f184f)
2007-10-10 14:17:37 -05:00
Andrew Tridgell
a983b06d37 r18129: moved the system includes into libreplace - this gives much more
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
(This used to be commit 77d1a468e0)
2007-10-10 14:17:36 -05:00
Jelmer Vernooij
ca720634dd r18123: Fix manual file build.
(This used to be commit e84b6c70a1)
2007-10-10 14:17:35 -05:00
Jelmer Vernooij
a59706f721 r18121: Simplify m4 code, hopefully fix Samba4 build problems.
(This used to be commit 1adf65b4d7)
2007-10-10 14:17:35 -05:00
Andrew Tridgell
b7477fb388 r18117: first steps in making samba4 use libreplace
(This used to be commit c079cedb08)
2007-10-10 14:17:34 -05:00
Andrew Tridgell
6d2dd5a238 r18115: comparison_fn_t is defined in libreplace now
(This used to be commit e9ee8b1053)
2007-10-10 14:17:34 -05:00
Andrew Tridgell
58316b88e5 r18112: really make use of libreplace in ldb
(This used to be commit 2057159c75)
2007-10-10 14:17:18 -05:00
Andrew Tridgell
ea086c1cc8 r18109: move ldb to use the same build methods
(This used to be commit 28dcbb512f)
2007-10-10 14:17:18 -05:00
Stefan Metzmacher
99b2e8fdc9 r18098: use m4_include() instead of sinclude()
this breaks ./autogen.sh in lib/ldb/, but the ldb build is broken
anyway

metze
(This used to be commit 816fa197a7)
2007-10-10 14:17:16 -05:00
Stefan Metzmacher
14b0bc5d07 r18091: sometimes autoconf picks up some old stuff:
- remove configure and config.h.in
- cleanup after autoconf and autoheader are done

metze
(This used to be commit ce94fb008d)
2007-10-10 14:17:15 -05:00
Jelmer Vernooij
7a4206aa52 r18036: Add missing file
(This used to be commit 9ad8075d70)
2007-10-10 14:17:06 -05:00
Jelmer Vernooij
38fdde5d9b r18031: Merge my replace fixes:
* libreplace can now build stand-alone
 * add stub testsuite for libreplace
 * make talloc/tdb/ldb use libreplace
(This used to be commit fe7ca4b145)
2007-10-10 14:17:05 -05:00
Andrew Bartlett
173d17ab2f r18022: Increment number of records converted, and print number of records skipped.
Andrew Bartlett
(This used to be commit 6c11501ec3)
2007-10-10 14:17:03 -05:00
Volker Lendecke
515067a02e r18018: Fix the build on OpenBSD. No license problem this time, I've written strnlen
from scratch.

Volker
(This used to be commit 2a7cdf52e4)
2007-10-10 14:17:03 -05:00
Andrew Tridgell
0bb1c2da0e r17992: reverted r17842
This needs more consideration, as the patch removed the copyright
notice and license from the timegm.c code.

Volker, when you get a minute can you let me know what problem this
patch fixed so I can find a different approach?
(This used to be commit 5b9b9dd530)
2007-10-10 14:17:02 -05:00
Andrew Tridgell
f2c0831697 r17978: make the ldap backend test for ldb work both with and without modules
(so it works on both redhat and debian, for example)
(This used to be commit 71264bb785)
2007-10-10 14:16:59 -05:00
Stefan Metzmacher
071582898c r17960: try to use gmake if present on IRIX
metze
(This used to be commit 18b4ae591a)
2007-10-10 14:16:57 -05:00
Simo Sorce
bc2e3aa3f3 r17868: remove duplicated attributes from list
(This used to be commit fab0e66281)
2007-10-10 14:16:49 -05:00
Simo Sorce
d0ef5aad17 r17859: Fix some return values
(This used to be commit 5b4fc48c49)
2007-10-10 14:16:49 -05:00
Volker Lendecke
03dd0d5fc8 r17844: The AIX compiler thinks { } is a syntax error
(This used to be commit 4189736e09)
2007-10-10 14:16:48 -05:00
Volker Lendecke
6e9097045f r17842: After talking to Simo, apply the next attempt to resolve the strnlen
problem. Timegm is the same. Simo says this is just a workaround, but it helps
for now. Feel free to revert.

Volker
(This used to be commit fd166ca0c0)
2007-10-10 14:16:47 -05:00
Simo Sorce
88b04ab6e6 r17830: Set the default_basedn (hey, it comes from the "default" naming contex :-)
once at connection time, after modules have been loaded.

Introduce a function to retrieve the value where needed.
(This used to be commit 0caf6a44e0)
2007-10-10 14:16:46 -05:00
Andrew Tridgell
60898ca0b7 r17828: set the auto_baseDN opaque even on failure to fetch rootDSE. That
ensures we never try twice
(This used to be commit 946901e5dd)
2007-10-10 14:16:46 -05:00
Andrew Tridgell
fb36e279e7 r17822: the ildap ldb backend doesn't need the auto rootDSE logic any more
(This used to be commit c670837cc0)
2007-10-10 14:16:45 -05:00
Andrew Tridgell
a2ca0b5e3c r17821: changed ldb_search() and the ldbsearch command line utility to
automatically work out the basedn when basedn==NULL. The basedn is
fetched from the rootDSE defaultNamingContext value (if there is one)

This means we don't have to have the defaultNamingContext logic in
lots of places. It makes a lot of sense to me to have basedn==NULL
mean "use the default, as given by the database"

Note that explicitly specifing a basedn of '' is not the same thing,
and will not trigger this code

The baseDN is cached in a ldb opaque, so we only have to fetch it once
(This used to be commit 5d1b66b68f)
2007-10-10 14:16:44 -05:00
Andrew Tridgell
6a4794452f r17820: simplify the code flow a little
(This used to be commit 221272e393)
2007-10-10 14:16:44 -05:00
Stefan Metzmacher
eb6f27eccc r17778: fix compiler warnings
metze
(This used to be commit 4f753f9ebc)
2007-10-10 14:16:40 -05:00
Stefan Metzmacher
47479df22e r17775: use an enum to get rid of compiler warnings
metze
(This used to be commit c66cf31afd)
2007-10-10 14:16:40 -05:00
Andrew Tridgell
66337169f1 r17771: add a comment explaing the odd cast
(This used to be commit 47e695ed88)
2007-10-10 14:16:39 -05:00
Andrew Tridgell
a524e8cdde r17770: don't force -L/usr/lib, it breaks us4
(This used to be commit 348aff8c83)
2007-10-10 14:16:39 -05:00
Andrew Tridgell
2d4ecdb3e1 r17769: only look for dlopen in -ldl if not found in libc. Needed for us4
(This used to be commit 0b254f3bde)
2007-10-10 14:16:39 -05:00
Andrew Tridgell
b075bb842d r17765: fix handling of old solaris /bin/sh in ldb build/test
(This used to be commit f41d3ed4b3)
2007-10-10 14:16:38 -05:00
Andrew Tridgell
18f93fce20 r17764: more portable setenv() replacement
(This used to be commit 5c00b6d083)
2007-10-10 14:16:38 -05:00
Andrew Tridgell
47fb506da2 r17762: HPUX needs setenv
(This used to be commit 535c96f1e7)
2007-10-10 14:16:38 -05:00
Stefan Metzmacher
48c7cfcb74 r17756: I don't know why but this only works with the standalone
ldb build...I'll test more tomorrow.

metze
(This used to be commit aeee1b4655)
2007-10-10 14:16:37 -05:00
Andrew Tridgell
6ac7ea5027 r17749: more HPUX madness
(This used to be commit 444e92890f)
2007-10-10 14:16:36 -05:00
Stefan Metzmacher
7852524532 r17748: make the casts much easier to understand
metze
(This used to be commit 5992f3b918)
2007-10-10 14:16:36 -05:00
Stefan Metzmacher
7a76b20d4f r17747: ldb's make test should not try to install something
metze
(This used to be commit ccf9ad0d2f)
2007-10-10 14:16:36 -05:00
Andrew Tridgell
461ff1ecc9 r17746: the automatic archive creation in make breaks on 3 platforms. Lets try
manual archives and see if they work a bit better ....
(This used to be commit 15ec8c3741)
2007-10-10 14:16:36 -05:00
Andrew Tridgell
8ad26badea r17745: got rid of the final asprintf() in ldb
(This used to be commit 21377a6076)
2007-10-10 14:16:35 -05:00
Stefan Metzmacher
0749ab0400 r17743: fix compiler warnings
metze
(This used to be commit 694a56b0ae)
2007-10-10 14:16:35 -05:00
Andrew Tridgell
d95354300c r17741: tru64 uses inttypes.h not stdint.h.
ain't standards wonderful?
(This used to be commit 5eb59e5be0)
2007-10-10 14:16:35 -05:00
Andrew Tridgell
0a98d90995 r17740: get rid of dependence on asprintf(), using talloc_asprintf() instead
(This used to be commit 0e350ea0c1)
2007-10-10 14:16:34 -05:00
Andrew Tridgell
57f587729d r17739: forgot to add replace/*
(This used to be commit ceb09f50b7)
2007-10-10 14:16:34 -05:00
Andrew Tridgell
309ef90690 r17738: solving the seemingly trivial problem of timegm() being missing on
some systems requires quite a large change in ldb. The core problem is
that ldb doesn't have its own equivalent of lib/replace/, so we have
no sane place to put things like timegm.c

This patch moves part of lib/replace/ from Samba4 into ldb, and the
next patch will remove those parts from Samba4. We will probably need
to similarly move parts of lib/replace/ into lib/talloc/ and lib/tdb/,
so that at each level the libraries have replacements for the
functions they need, but higher level libraries don't need to
re-include replacements if a lower level library already replaces the
function
(This used to be commit c2f6c217fb)
2007-10-10 14:16:34 -05:00
Andrew Tridgell
1f7a813199 r17735: a (probably useless) attempt to workaround stupidity in HPs version of
make
(This used to be commit b85b1f5926)
2007-10-10 14:16:34 -05:00
Andrew Tridgell
8cbf9b64dc r17734: tru64 needs these for standalone build
(This used to be commit b735ad8cfa)
2007-10-10 14:16:33 -05:00
Andrew Tridgell
96adaec729 r17733: doxygen is way too noisy to build every time, and it doesn't do
dependencies. If someone can fix it to only rebuild when something
changes, then feel free to re-enable it by default. Otherwise use
"make doxygen" if you are in need of a doxygen fix ....
(This used to be commit e9ab8d9f48)
2007-10-10 14:16:33 -05:00
Andrew Tridgell
f1da198449 r17732: after some help from Jelmer, changed builddocs.sh not to rely on
either an internet connection, or a list of xsl paths
(This used to be commit 7f3c699d0f)
2007-10-10 14:16:33 -05:00
Andrew Tridgell
48032446a6 r17731: try to cope with freebsd handling of .a dependencies
(This used to be commit 1ad1d5f37e)
2007-10-10 14:16:33 -05:00
Andrew Tridgell
99309fac5c r17730: cast dlsym result to try to avoid a compiler crash on hpux
(This used to be commit 217cff9f00)
2007-10-10 14:16:33 -05:00
Andrew Tridgell
c09f6050f7 r17729: remove the dependence on an internet connection for building
standalone ldb by only running xsltproc if we can find a local copy of
the required stylesheets
(This used to be commit 16be09e0d6)
2007-10-10 14:16:32 -05:00
Andrew Tridgell
8e36c42846 r17726: not having slapd installed isn't a ldb test failure
(This used to be commit 33ccb93647)
2007-10-10 14:16:32 -05:00
Andrew Tridgell
28e1409720 r17725: VPATH and builds out of the source directory causes problems with the
AIX 5.1 version of make. Putting a direct dependency on $(OBJS) works
around this, and should be harmless on other systems
(This used to be commit 6a7182b599)
2007-10-10 14:16:32 -05:00
Andrew Tridgell
5b9633e40d r17724: don't rely on strnlen() as MacOSX 10.4 doesn't have it. Someday apple
will realise that buffer overflows are bad ....
(This used to be commit 0a6968b71b)
2007-10-10 14:16:32 -05:00
Andrew Tridgell
2fe39a82bf r17722: better to use talloc_vasprintf() than vasprintf() directly, as it
depends on less libc functions
(This used to be commit a05101d83b)
2007-10-10 14:16:32 -05:00
Andrew Tridgell
ba8ed91a75 r17721: fixed the dlopen and MODULESDIR handling in the standalone build
(This used to be commit a40e8c210a)
2007-10-10 14:16:31 -05:00
Andrew Tridgell
10d8142e5d r17720: in standalone ldb build, some systems need sys/stat.h and a defn of
comparison_fn_t
(This used to be commit 99915268e6)
2007-10-10 14:16:31 -05:00
Andrew Tridgell
e7f56e45b2 r17719: ldb_cmdline needs to be static for cc on solaris
(This used to be commit db4d99f35b)
2007-10-10 14:16:31 -05:00
Andrew Tridgell
7c5bb2bce7 r17718: don't consider a slapadd failure in the ldap backend tests as a ldb
failure
(This used to be commit 72cdf93b5a)
2007-10-10 14:16:31 -05:00
Stefan Metzmacher
02515a7613 r17714: fix compiler warnings
metze
(This used to be commit cea06e105a)
2007-10-10 14:16:30 -05:00
Stefan Metzmacher
cc973cbd77 r17711: fix compiler warnings
metze
(This used to be commit f3dc51fef5)
2007-10-10 14:16:29 -05:00
Andrew Tridgell
d8f2434296 r17708: make the automated testing of the ldb ldap backend more portable
(This used to be commit bf88bc5de6)
2007-10-10 14:16:29 -05:00
Andrew Bartlett
b2658f0dd6 r17707: Match the output (aside from dividers) the output of
ol-schema-migrate.pl in the schema output.

Andrew Bartlett
(This used to be commit 8f624fd175)
2007-10-10 14:16:28 -05:00
Andrew Tridgell
b2dd4b3e15 r17706: remove the dependence on gnu make in the standalone build
(This used to be commit 07fa357f3f)
2007-10-10 14:16:28 -05:00
Andrew Tridgell
d5c4606798 r17702: test for gcc, and only enable gcc flags if true
(This used to be commit 6495620d18)
2007-10-10 14:16:27 -05:00
Andrew Tridgell
8c53215884 r17701: doxygen (if installed!) needs to be run in the src directory
(This used to be commit bd1bd1c5ce)
2007-10-10 14:16:27 -05:00
Andrew Bartlett
3d33bc10ed r17700: Despite our best hopes, the way module initialisation tends to happen,
we make searches before things are initialised.  Cope with this.

Andrew Bartlett
(This used to be commit daa1a61891)
2007-10-10 14:16:27 -05:00
Andrew Bartlett
cda3a37d76 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
(This used to be commit 5bcfa12cef)
2007-10-10 14:16:27 -05:00
Andrew Tridgell
1d1f100a73 r17697: - enable test for slapd
- include popt.m4
(This used to be commit 55748bb382)
2007-10-10 14:16:26 -05:00
Andrew Tridgell
787dbed6c3 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
(This used to be commit 13e14e0f8d)
2007-10-10 14:16:26 -05:00
Andrew Tridgell
66758e092b r17695: added installcheck target
(This used to be commit 7cca1f83f4)
2007-10-10 14:16:26 -05:00
Andrew Tridgell
70da14f025 r17693: only install man pages if we have managed to generate them with
xsltproc
(This used to be commit 3e48177dd1)
2007-10-10 14:16:26 -05:00
Andrew Tridgell
be99212aec r17692: - don't try and run ldap tests unless we have slapd
- fix manpages install
(This used to be commit 9bc751d1f1)
2007-10-10 14:16:25 -05:00
Andrew Bartlett
3e83b0fac4 r17691: Make the structure more public, so we have somewhere for calling
modules to put private data.

Andrew Bartlett
(This used to be commit ba00f45357)
2007-10-10 14:16:25 -05:00
Andrew Tridgell
c2bc9bdda1 r17689: build works, this should fix install ....
(This used to be commit 9a7c1df956)
2007-10-10 14:16:25 -05:00
Andrew Tridgell
c21e51b19a r17688: the commit/test cycle for getting this to work in the build farm sure
is tedious! nearly there I hope .....
(This used to be commit d0412765ba)
2007-10-10 14:16:25 -05:00
Andrew Tridgell
c4e83e8efc r17687: remove circular dependency
(This used to be commit b12fd256ff)
2007-10-10 14:16:24 -05:00
Andrew Tridgell
35817c01a8 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
(This used to be commit 580ed6730d)
2007-10-10 14:16:22 -05:00
Andrew Tridgell
862ba26172 r17678: don't free result message twice
(This used to be commit e390881819)
2007-10-10 14:16:22 -05:00
Simo Sorce
071aa999ab 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.
(This used to be commit 07d377f3c2)
2007-10-10 14:16:17 -05:00
Simo Sorce
2b4249e7ba r17613: style fix
(This used to be commit 86fc149ca8)
2007-10-10 14:16:16 -05:00
Andrew Bartlett
2faae939ce r17601: Fix declaration after statement.
Andrew Bartlett
(This used to be commit 05c276568a)
2007-10-10 14:16:16 -05:00
Andrew Bartlett
49b335c756 r17600: Finish the schema conversion tool, and add a mapping file, used to map
OIDs and skip built-in attributes.

Andrew Bartlett
(This used to be commit cb2b9d800d)
2007-10-10 14:16:16 -05:00
Andrew Bartlett
c35420160e 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
(This used to be commit 22dec7b62a)
2007-10-10 14:16:16 -05:00
Simo Sorce
f41fc00624 r17596: apply patch from Martin
(This used to be commit e9d101bc3c)
2007-10-10 14:16:15 -05:00
Andrew Bartlett
04b2dfd935 r17582: Fix dependenies for oLschema2ldif.
Andrew Bartlett
(This used to be commit 113ef01320)
2007-10-10 14:15:39 -05:00
Andrew Bartlett
f28774e370 r17581: Add tool to convert AD schema back to OpenLDAP's schema formatting.
Andrew Bartlett
(This used to be commit 391f472df7)
2007-10-10 14:15:39 -05:00
Andrew Bartlett
7de75a991b 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
(This used to be commit ba1c652bae)
2007-10-10 14:15:39 -05:00
Andrew Tridgell
9f7da6fea0 r17579: make ldb build g++ friendly
(This used to be commit 403cbd3355)
2007-10-10 14:15:38 -05:00
Andrew Bartlett
c846d461fa 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
(This used to be commit 656e58672c)
2007-10-10 14:15:35 -05:00
Andrew Bartlett
8f42f1292c 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
(This used to be commit af02b4d7c6)
2007-10-10 14:15:33 -05:00
Andrew Bartlett
027583e6de 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.
(This used to be commit af2bece4d3)
2007-10-10 14:15:33 -05:00
Simo Sorce
a23b63a8e5 r17516: Change helper function names to make more clear what they are meant to do
(This used to be commit ad75cf8695)
2007-10-10 14:15:31 -05:00
Simo Sorce
8492a45f8a r17515: Fix warnings
(This used to be commit 5f78645150)
2007-10-10 14:15:31 -05:00
Simo Sorce
faed817506 r17514: Simplify the way to set ldb errors and add another
helper function to set them.
(This used to be commit 260868bae5)
2007-10-10 14:15:31 -05:00
Simo Sorce
71041a5007 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.
(This used to be commit d57b521aad)
2007-10-10 14:15:30 -05:00
Simo Sorce
39018ab902 r17503: Add a useful function to search for a DN
(This used to be commit 8c6efd7b55)
2007-10-10 14:15:30 -05:00
Andrew Bartlett
ecfdd5fc6c r17474: Allow the partitions module to load modules for specific backends.
Andrew Bartlett
(This used to be commit c016db2187)
2007-10-10 14:15:27 -05:00
Andrew Bartlett
11685acd1d r17473: Split loading a list of modules and initialising them into a seperate
function.

Andrew Bartlett
(This used to be commit bed17cc579)
2007-10-10 14:15:27 -05:00
Stefan Metzmacher
c3e837eaaf r17432: display more GUID values nicely,
they all have rangeLower=16 rangeUpper=16
and attribute syntax 2.5.5.10

metze
(This used to be commit 932f8bec21)
2007-10-10 14:15:25 -05:00
Stefan Metzmacher
3a083f8f53 r17430: implement the LDAP_SERVER_PERMISSIVE_MODIFY control in the client
metze
(This used to be commit 96259f0f24)
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
12050962f6 r17429: implement the LDAP_SERVER_SHOW_DELETED control in the client
metze
(This used to be commit 40dc7c1787)
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
8ac0237eba r17420: add client support for the LDAP_SERVER_DOMAIN_SCOPE control
metze
(This used to be commit 84e74a759c)
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
817610f385 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
(This used to be commit 4ccd0f8171)
2007-10-10 14:15:24 -05:00
Stefan Metzmacher
b4028ca104 r17418: add client support for the LDAP_SERVER_SD_FLAGS control
metze
(This used to be commit 23759a1e9b)
2007-10-10 14:15:23 -05:00
Stefan Metzmacher
07cb71ba50 r17416: display the attributeSecurityGUID nicely.
this attriute is used to group multiple attribute
to a propertySet for access control.

metze
(This used to be commit 96e9d46091)
2007-10-10 14:15:23 -05:00
Stefan Metzmacher
0f6c285fa8 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
(This used to be commit 92f133f1ef)
2007-10-10 14:15:23 -05:00
Simo Sorce
9481764b19 r17398: avoid a memleak when we are returned 0 results and make a more creative use of memory contexts
(This used to be commit fc97b5dc8c)
2007-10-10 14:15:22 -05:00
Andrew Bartlett
bf5e85ba25 r17397: Add const, and use a more local memory context.
Andrew Bartlett
(This used to be commit 59fc8031ec)
2007-10-10 14:15:21 -05:00
Simo Sorce
eb16bc612a r17370: Fix tdb searches, we need to return an LDAP_REPLY_DONE packet when done.
Awesome how this didn't break everything around...
(This used to be commit 1b3b617659)
2007-10-10 14:15:20 -05:00
Andrew Bartlett
f685635e87 r17368: Add 'const' to ldb_match_msg().
Andrew Bartlett
(This used to be commit 54eda4b859)
2007-10-10 14:15:19 -05:00
Simo Sorce
b1b9617d1c r17350: Avoid a couple of memleaks, unnecessary code and use a more linear style
(This used to be commit 97c4d41a30)
2007-10-10 14:15:18 -05:00
Andrew Bartlett
b94b9d8c3d 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
(This used to be commit 26bc7dbed9)
2007-10-10 14:15:17 -05:00
Andrew Bartlett
ce20796be2 r17304: Improve ldb_tdb error strings a bit more.
Andrew Bartlett
(This used to be commit 38bd4f6179)
2007-10-10 14:15:09 -05:00
Andrew Bartlett
09b861f45b r17301: Add a new function to copy a list of attributes, while adding one to
the end.

Andrew Bartlett
(This used to be commit 2a87ed1111)
2007-10-10 14:15:08 -05:00
Andrew Bartlett
2d65c9ada5 r17300: Try to fix some segfaults in ldb_ildap module, when the remote server
drops the connection.  The reconnect code needs to be hooked in here.

Andrew Bartlett
(This used to be commit 778debedea)
2007-10-10 14:15:08 -05:00
Andrew Bartlett
e3df3cd55f r17225: Fix the build by fixing the spelling of START-TLS.
Andrew Bartlett
(This used to be commit 4827a6b171)
2007-10-10 14:10:21 -05:00
Simo Sorce
e248caed12 r17195: Start thinking how to implement extended operations.
Ad supports three extended operations:
- start tls
- dynamic objects
- fast binds

none of these are a priority.
(This used to be commit 523e8f3ed4)
2007-10-10 14:10:18 -05:00
Simo Sorce
49f68caed2 r17186: "async" word abuse clean-up part 2
(This used to be commit c6aa60c7e6)
2007-10-10 14:10:17 -05:00
Simo Sorce
c93817b36d r17185: Oh, I wanted to do this for sooo long time.
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.
(This used to be commit 25fc735404)
2007-10-10 14:10:16 -05:00
Stefan Metzmacher
4611244abd r17113: build tdb and ldb standalone with the same sizes of 'off_t' as from samba
metze
(This used to be commit 5c1e6c08c7)
2007-10-10 14:10:13 -05:00
Stefan Metzmacher
761450c66e r17112: - fix the build of the ldap ldb backend with newer openldap header files.
- use the correct timeout variable (simo you should do a standalone build before commiting:-)

metze
(This used to be commit ac9d69d257)
2007-10-10 14:10:13 -05:00
Andrew Bartlett
624544f065 r17031: When I first revived the objectclass sorting module, simo complained
that it should handle the add without a search.

Now that I'm working on better behaviour with an LDAP backend, I've
fixed the module to do just that.  For an ADD, and a MODIFY with the
REPLACE flag, we do not need the search step.

Andrew Bartlett
(This used to be commit 87573e2ee4)
2007-10-10 14:10:09 -05:00
Andrew Bartlett
32ab518767 r16972: Replace the sequence_number function pointer in ldb with the ldb flags.
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
(This used to be commit a1161cb30e)
2007-10-10 14:10:04 -05:00
Andrew Bartlett
e071f4abd2 r16965: Take a better stab at comparison functions between string and binary
forms of the objectGUID and objectSID attributes.

Andrew Bartlett
(This used to be commit e7894b49b3)
2007-10-10 14:10:04 -05:00
Andrew Bartlett
e29e30d068 r16937: Add const, to make it clear that it is invalid to talloc_free() the DN
at this point.

Andrew Bartlett
(This used to be commit f7fb168ab6)
2007-10-10 14:10:02 -05:00
Andrew Bartlett
8d62a6ba2c r16936: Correct comment in this comparison function
Andrew Bartlett
(This used to be commit d64987a288)
2007-10-10 14:10:02 -05:00
Andrew Bartlett
2caa112ae4 r16932: Consistanly use the macro for these DNs and attributes.
Andrew Bartlett
(This used to be commit dd6ca33422)
2007-10-10 14:10:01 -05:00
Andrew Bartlett
35fda6c5f3 r16916: Implement metze's proposed changes to the tdb logging API.
This clearly links the log function with its private pointer, and
makes the argument list for tdb_open_ex a bit shorter.

Andrew Bartlett
(This used to be commit 5d5503e8d8)
2007-10-10 14:09:59 -05:00
Andrew Bartlett
977e44c556 r16908: Set an error string if we can't find a backend for an operation.
Andrew Bartlett
(This used to be commit 6a8c9af9ba)
2007-10-10 14:09:58 -05:00
Andrew Bartlett
1f1b34b3e8 r16832: I should be more careful (and test!) when trying to make compilers and
static checkers happy...

Andrew Bartlett
(This used to be commit ae7ec0d553)
2007-10-10 14:09:49 -05:00
Andrew Bartlett
3ed1e8ff3c r16829: Fix a number of issues raised by the IBM checker, or gcc warnings.
In particular, this removes one use of the LDB_DN_NULL_FAILED macro,
which was being used on more than DNs, had an embedded goto, and
confused the IBM checker.

In the password_hash code, ensure that sambaAttr is not, before
checking the number of values.

In GENSEC, note that this switch value can't occour.  This seems to be
the only way to quiet both the IBM checker and gcc, as well as cope
with possibly invalid inputs.

Andrew Bartlet
(This used to be commit 3e58350ec2)
2007-10-10 14:09:48 -05:00
Andrew Bartlett
44e6f21393 r16825: Make ldb_sainity_check() set an error string. This makes it much
easier to chase down what modules or application code gets wrong.

Ensure not to leave memory allocated on failure in ldb_search()

Andrew Bartlett
(This used to be commit 0828739951)
2007-10-10 14:09:47 -05:00
Simo Sorce
a3f606f6ca r16784: - make some function in ldb static, they not need to be exported anywhere
- fix a bad segfault
  Andrew please make test before committing.

Simo.
(This used to be commit b9b6bb3e89)
2007-10-10 14:09:45 -05:00