Andrew Tridgell [Fri, 25 Aug 2006 07:08:06 +0000 (07:08 +0000)]
r17823: get rid of most of the samdb_base_dn() calls, as they are no longer
needed in searches
Andrew Tridgell [Fri, 25 Aug 2006 06:45:47 +0000 (06:45 +0000)]
r17822: the ildap ldb backend doesn't need the auto rootDSE logic any more
Andrew Tridgell [Fri, 25 Aug 2006 06:41:37 +0000 (06:41 +0000)]
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
Andrew Tridgell [Fri, 25 Aug 2006 06:38:29 +0000 (06:38 +0000)]
r17820: simplify the code flow a little
Jelmer Vernooij [Thu, 24 Aug 2006 21:32:30 +0000 (21:32 +0000)]
r17811: Add .bzrignore file
Stefan Metzmacher [Thu, 24 Aug 2006 12:13:41 +0000 (12:13 +0000)]
r17794: ifdef out unused macros
metze
Stefan Metzmacher [Thu, 24 Aug 2006 11:33:00 +0000 (11:33 +0000)]
r17793: add -Wmissing-prototypes, -Wmissing-declarations, -Wmissing-field-initializers
gcc options, but don't enable them yet.
we should step by step try to enable them, after removing the flood of warnings
they would generate.
metze
Stefan Metzmacher [Thu, 24 Aug 2006 11:24:06 +0000 (11:24 +0000)]
r17792: io.out.winsserver is a const char *,
and iname->winserver = talloc_steal(iname, io.out.winsserver)
generated a warning, so I changed iname->winsserver to also
be a const char *.
then a talloc_free(iname->winsserver) would generate a warning,
but we can steal it into the tmp_ctx without a warning
and that gets free'ed a few lines later.
metze
Stefan Metzmacher [Thu, 24 Aug 2006 11:13:13 +0000 (11:13 +0000)]
r17791: get rid of another compiler warning
metze
Stefan Metzmacher [Thu, 24 Aug 2006 10:55:17 +0000 (10:55 +0000)]
r17790: replace uses -ldl and should directly depend on it
metze
Stefan Metzmacher [Thu, 24 Aug 2006 10:51:34 +0000 (10:51 +0000)]
r17789: remove compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 10:41:31 +0000 (10:41 +0000)]
r17788: fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 10:38:06 +0000 (10:38 +0000)]
r17787: ifdef out unused macros and generate a smb_panic()
when the wrong macro is used on a field.
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:53:21 +0000 (09:53 +0000)]
r17786: remove unused macros, fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:51:41 +0000 (09:51 +0000)]
r17785: fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:49:58 +0000 (09:49 +0000)]
r17784: fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:49:09 +0000 (09:49 +0000)]
r17783: fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:48:40 +0000 (09:48 +0000)]
r17782: fix compiler warning
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:47:51 +0000 (09:47 +0000)]
r17781: fix compiler warning
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:47:08 +0000 (09:47 +0000)]
r17780: better fix this one correctly
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:41:45 +0000 (09:41 +0000)]
r17779: this macro is unused
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:41:10 +0000 (09:41 +0000)]
r17778: fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 08:48:15 +0000 (08:48 +0000)]
r17777: these macros are unused...
metze
Stefan Metzmacher [Thu, 24 Aug 2006 08:45:32 +0000 (08:45 +0000)]
r17776: these macros are also defined in libcli/raw/trans2.h
metze
Stefan Metzmacher [Thu, 24 Aug 2006 08:32:57 +0000 (08:32 +0000)]
r17775: use an enum to get rid of compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 08:19:43 +0000 (08:19 +0000)]
r17774: this macro is unused
metze
Stefan Metzmacher [Thu, 24 Aug 2006 08:17:31 +0000 (08:17 +0000)]
r17773: this macros are unsed, with compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 07:58:22 +0000 (07:58 +0000)]
r17772: warn about unused macros
(only when defined in the .c file not in headers)
metze
Andrew Tridgell [Thu, 24 Aug 2006 07:20:32 +0000 (07:20 +0000)]
r17771: add a comment explaing the odd cast
Andrew Tridgell [Thu, 24 Aug 2006 06:13:11 +0000 (06:13 +0000)]
r17770: don't force -L/usr/lib, it breaks us4
Andrew Tridgell [Thu, 24 Aug 2006 06:04:12 +0000 (06:04 +0000)]
r17769: only look for dlopen in -ldl if not found in libc. Needed for us4
Andrew Tridgell [Thu, 24 Aug 2006 04:14:34 +0000 (04:14 +0000)]
r17768: This merges in the current version of Brad Henry's windows testing
framework patch. There are some issues with the patch that I will
discuss in a separate email to the list, but given the low (zero?)
impact of the patch as it is, I think its better to integrate it now,
then let Brad send some minor update patches later
Andrew Tridgell [Thu, 24 Aug 2006 01:03:42 +0000 (01:03 +0000)]
r17765: fix handling of old solaris /bin/sh in ldb build/test
Andrew Tridgell [Thu, 24 Aug 2006 00:41:15 +0000 (00:41 +0000)]
r17764: more portable setenv() replacement
Andrew Tridgell [Wed, 23 Aug 2006 23:21:29 +0000 (23:21 +0000)]
r17763: moved setenv to ldb/replace/
Andrew Tridgell [Wed, 23 Aug 2006 23:20:50 +0000 (23:20 +0000)]
r17762: HPUX needs setenv
Stefan Metzmacher [Wed, 23 Aug 2006 14:48:19 +0000 (14:48 +0000)]
r17756: I don't know why but this only works with the standalone
ldb build...I'll test more tomorrow.
metze
Stefan Metzmacher [Wed, 23 Aug 2006 14:13:54 +0000 (14:13 +0000)]
r17755: fix the build...
I hope we can find a more clean approach to import lib/replace/ into ldb.
metze
Stefan Metzmacher [Wed, 23 Aug 2006 13:20:16 +0000 (13:20 +0000)]
r17754: remove the --always-create option from mkproto.pl
and make this behavior the default.
as with make 3.81 and autodependencies this way is much
faster as make can use faster codepathes internally.
(without this make needed more and more startup time after using
autodependencies for a few weeks)
metze
Stefan Metzmacher [Wed, 23 Aug 2006 13:14:03 +0000 (13:14 +0000)]
r17753: fix compiler warnings and make the code simpler
metze
Stefan Metzmacher [Wed, 23 Aug 2006 13:06:31 +0000 (13:06 +0000)]
r17752: using -1 in a uint16_t value causes compiler warnings,
use UINT16_MAX as invalid search handle
metze
Andrew Tridgell [Wed, 23 Aug 2006 11:32:29 +0000 (11:32 +0000)]
r17750: these have moved to ldb/replace/ now
Andrew Tridgell [Wed, 23 Aug 2006 11:31:43 +0000 (11:31 +0000)]
r17749: more HPUX madness
Stefan Metzmacher [Wed, 23 Aug 2006 11:29:08 +0000 (11:29 +0000)]
r17748: make the casts much easier to understand
metze
Stefan Metzmacher [Wed, 23 Aug 2006 11:27:40 +0000 (11:27 +0000)]
r17747: ldb's make test should not try to install something
metze
Andrew Tridgell [Wed, 23 Aug 2006 11:21:44 +0000 (11:21 +0000)]
r17746: the automatic archive creation in make breaks on 3 platforms. Lets try
manual archives and see if they work a bit better ....
Andrew Tridgell [Wed, 23 Aug 2006 10:55:20 +0000 (10:55 +0000)]
r17745: got rid of the final asprintf() in ldb
Stefan Metzmacher [Wed, 23 Aug 2006 10:01:07 +0000 (10:01 +0000)]
r17744: we explicit want to get warnings about declarations after statements:-)
metze
Stefan Metzmacher [Wed, 23 Aug 2006 09:19:19 +0000 (09:19 +0000)]
r17743: fix compiler warnings
metze
Stefan Metzmacher [Wed, 23 Aug 2006 09:00:57 +0000 (09:00 +0000)]
r17742: make the casts explicit and remove compiler warnings
metze
Andrew Tridgell [Wed, 23 Aug 2006 05:19:42 +0000 (05:19 +0000)]
r17741: tru64 uses inttypes.h not stdint.h.
ain't standards wonderful?
Andrew Tridgell [Wed, 23 Aug 2006 05:08:55 +0000 (05:08 +0000)]
r17740: get rid of dependence on asprintf(), using talloc_asprintf() instead
Andrew Tridgell [Wed, 23 Aug 2006 04:55:39 +0000 (04:55 +0000)]
r17739: forgot to add replace/*
Andrew Tridgell [Wed, 23 Aug 2006 04:53:47 +0000 (04:53 +0000)]
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
Andrew Tridgell [Wed, 23 Aug 2006 02:51:40 +0000 (02:51 +0000)]
r17737: fixed a 'declaration in code' error
Andrew Tridgell [Wed, 23 Aug 2006 02:06:07 +0000 (02:06 +0000)]
r17735: a (probably useless) attempt to workaround stupidity in HPs version of
make
Andrew Tridgell [Wed, 23 Aug 2006 01:55:02 +0000 (01:55 +0000)]
r17734: tru64 needs these for standalone build
Andrew Tridgell [Wed, 23 Aug 2006 01:51:45 +0000 (01:51 +0000)]
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 ....
Andrew Tridgell [Wed, 23 Aug 2006 01:44:22 +0000 (01:44 +0000)]
r17732: after some help from Jelmer, changed builddocs.sh not to rely on
either an internet connection, or a list of xsl paths
Andrew Tridgell [Wed, 23 Aug 2006 01:13:40 +0000 (01:13 +0000)]
r17731: try to cope with freebsd handling of .a dependencies
Andrew Tridgell [Wed, 23 Aug 2006 00:46:40 +0000 (00:46 +0000)]
r17730: cast dlsym result to try to avoid a compiler crash on hpux
Andrew Tridgell [Wed, 23 Aug 2006 00:42:33 +0000 (00:42 +0000)]
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
Andrew Tridgell [Tue, 22 Aug 2006 23:48:41 +0000 (23:48 +0000)]
r17726: not having slapd installed isn't a ldb test failure
Andrew Tridgell [Tue, 22 Aug 2006 23:32:19 +0000 (23:32 +0000)]
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
Andrew Tridgell [Tue, 22 Aug 2006 23:12:22 +0000 (23:12 +0000)]
r17724: don't rely on strnlen() as MacOSX 10.4 doesn't have it. Someday apple
will realise that buffer overflows are bad ....
Andrew Tridgell [Tue, 22 Aug 2006 22:28:37 +0000 (22:28 +0000)]
r17722: better to use talloc_vasprintf() than vasprintf() directly, as it
depends on less libc functions
Andrew Tridgell [Tue, 22 Aug 2006 22:27:57 +0000 (22:27 +0000)]
r17721: fixed the dlopen and MODULESDIR handling in the standalone build
Andrew Tridgell [Tue, 22 Aug 2006 20:49:58 +0000 (20:49 +0000)]
r17720: in standalone ldb build, some systems need sys/stat.h and a defn of
comparison_fn_t
Andrew Tridgell [Tue, 22 Aug 2006 20:39:01 +0000 (20:39 +0000)]
r17719: ldb_cmdline needs to be static for cc on solaris
Andrew Tridgell [Tue, 22 Aug 2006 20:33:39 +0000 (20:33 +0000)]
r17718: don't consider a slapadd failure in the ldap backend tests as a ldb
failure
Stefan Metzmacher [Tue, 22 Aug 2006 19:28:44 +0000 (19:28 +0000)]
r17717: this cried for bugs...and they happened...
we were passing a struct timeval reference as string,
and gcc gives a warning...use C99 style initialisation.
is there a special reason why the ACB_NORMAL is passed
when the force_password_change is selected?
metze
Stefan Metzmacher [Tue, 22 Aug 2006 19:05:27 +0000 (19:05 +0000)]
r17716: make casts explicit and remove compiler warnings
metze
Stefan Metzmacher [Tue, 22 Aug 2006 19:01:08 +0000 (19:01 +0000)]
r17715: make the cast explicit and remove compiler warnings
metze
Stefan Metzmacher [Tue, 22 Aug 2006 18:51:46 +0000 (18:51 +0000)]
r17714: fix compiler warnings
metze
Stefan Metzmacher [Tue, 22 Aug 2006 18:50:03 +0000 (18:50 +0000)]
r17713: fix compiler warnings
metze
Stefan Metzmacher [Tue, 22 Aug 2006 18:49:11 +0000 (18:49 +0000)]
r17712: fix compiler warning
metze
Stefan Metzmacher [Tue, 22 Aug 2006 18:09:49 +0000 (18:09 +0000)]
r17711: fix compiler warnings
metze
Andrew Tridgell [Tue, 22 Aug 2006 11:26:27 +0000 (11:26 +0000)]
r17708: make the automated testing of the ldb ldap backend more portable
Andrew Bartlett [Tue, 22 Aug 2006 10:49:54 +0000 (10:49 +0000)]
r17707: Match the output (aside from dividers) the output of
ol-schema-migrate.pl in the schema output.
Andrew Bartlett
Andrew Tridgell [Tue, 22 Aug 2006 10:46:23 +0000 (10:46 +0000)]
r17706: remove the dependence on gnu make in the standalone build
Andrew Bartlett [Tue, 22 Aug 2006 10:20:38 +0000 (10:20 +0000)]
r17705: Use the paged_searches module by default against the LDAP backend, if
selected.
Andrew Bartlett
Andrew Bartlett [Tue, 22 Aug 2006 10:19:46 +0000 (10:19 +0000)]
r17704: Add comments suggesting how to get the LDAP backend working.
Shutdown and reload the LDB, so the entryUUID module knows to read the
schema (will be changed once we have a central schema store and
notifications).
Andrew Bartlett
Andrew Bartlett [Tue, 22 Aug 2006 10:05:20 +0000 (10:05 +0000)]
r17703: Fixes to enable the entryUUID module to work for it's objectClass ->
OID mappings.
The key point is to 'enable' the partitions in the partitions module
before the init is complete. That way, the modules can perform
searches that use partitions.
Andrew Bartlett
Andrew Tridgell [Tue, 22 Aug 2006 07:20:59 +0000 (07:20 +0000)]
r17702: test for gcc, and only enable gcc flags if true
Andrew Tridgell [Tue, 22 Aug 2006 06:49:16 +0000 (06:49 +0000)]
r17701: doxygen (if installed!) needs to be run in the src directory
Andrew Bartlett [Tue, 22 Aug 2006 06:18:07 +0000 (06:18 +0000)]
r17700: Despite our best hopes, the way module initialisation tends to happen,
we make searches before things are initialised. Cope with this.
Andrew Bartlett
Andrew Bartlett [Tue, 22 Aug 2006 06:07:01 +0000 (06:07 +0000)]
r17699: Remove more printf calls.
Try to cope with partital initialisation.
Andrew Bartlett
Andrew Bartlett [Tue, 22 Aug 2006 06:01:47 +0000 (06:01 +0000)]
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
Andrew Tridgell [Tue, 22 Aug 2006 05:33:52 +0000 (05:33 +0000)]
r17697: - enable test for slapd
- include popt.m4
Andrew Tridgell [Tue, 22 Aug 2006 05:27:33 +0000 (05:27 +0000)]
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
Andrew Tridgell [Tue, 22 Aug 2006 04:34:06 +0000 (04:34 +0000)]
r17695: added installcheck target
Andrew Bartlett [Tue, 22 Aug 2006 04:32:34 +0000 (04:32 +0000)]
r17694: Don't use printf() in a module...
Andrew Tridgell [Tue, 22 Aug 2006 04:27:13 +0000 (04:27 +0000)]
r17693: only install man pages if we have managed to generate them with
xsltproc
Andrew Tridgell [Tue, 22 Aug 2006 04:19:40 +0000 (04:19 +0000)]
r17692: - don't try and run ldap tests unless we have slapd
- fix manpages install
Andrew Bartlett [Tue, 22 Aug 2006 04:15:39 +0000 (04:15 +0000)]
r17691: Make the structure more public, so we have somewhere for calling
modules to put private data.
Andrew Bartlett
Andrew Bartlett [Tue, 22 Aug 2006 04:05:36 +0000 (04:05 +0000)]
r17690: Demonstrate how we can read the schema to find out details needed for
translation. I hope to have this reading a schema structure in the
future.
Andrew Bartlett
Andrew Tridgell [Tue, 22 Aug 2006 03:57:31 +0000 (03:57 +0000)]
r17689: build works, this should fix install ....
Andrew Tridgell [Tue, 22 Aug 2006 03:51:22 +0000 (03:51 +0000)]
r17688: the commit/test cycle for getting this to work in the build farm sure
is tedious! nearly there I hope .....
Andrew Tridgell [Tue, 22 Aug 2006 03:47:32 +0000 (03:47 +0000)]
r17687: remove circular dependency
Andrew Tridgell [Tue, 22 Aug 2006 03:34:08 +0000 (03:34 +0000)]
r17686: tdb.pc is in the build directory