1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

63 Commits

Author SHA1 Message Date
Andrew Tridgell
ea086c1cc8 r18109: move ldb to use the same build methods
(This used to be commit 28dcbb512fecd825428c5d5f343ec16e4a6906f9)
2007-10-10 14:17:18 -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 fe7ca4b1454e01a33ed0d53791ebffdd349298b4)
2007-10-10 14:17:05 -05:00
Stefan Metzmacher
071582898c r17960: try to use gmake if present on IRIX
metze
(This used to be commit 18b4ae591a3a137dd25edd16a574e489cd5552bf)
2007-10-10 14:16:57 -05:00
Stefan Metzmacher
7a76b20d4f r17747: ldb's make test should not try to install something
metze
(This used to be commit ccf9ad0d2ff8388dd76a36426657773a59e6c316)
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 15ec8c3741f89ac4d6f0cd794dc916ee37d883cc)
2007-10-10 14:16:36 -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 c2f6c217fb4a5c84499246480f00df40b0711074)
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 b85b1f5926789c0d6f7cad5f6b8dc4992cca5a13)
2007-10-10 14:16:34 -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 e9ab8d9f4820c03ee6023bc5dd586f4b5643aa2f)
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 1ad1d5f37e0915e5e477b99ef16fc82a01b82708)
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 16be09e0d6bd2c9c21f9cf0291dabf661a9a3797)
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 6a7182b599d43d2da636dfb68547f0f4aea4050e)
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 a40e8c210a27a88e01b023c8b6d298e271c147d7)
2007-10-10 14:16:31 -05:00
Andrew Tridgell
b2dd4b3e15 r17706: remove the dependence on gnu make in the standalone build
(This used to be commit 07fa357f3f7251859f8afb6f2b0488b3718b0474)
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 6495620d1819a50b79c77258ced9d0cadd25e129)
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 bd1bd1c5ce52e9399461041e11cc30c93ba356a9)
2007-10-10 14:16:27 -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 13e14e0f8decbb7f3bafed9d980950d825a985e6)
2007-10-10 14:16:26 -05:00
Andrew Tridgell
66758e092b r17695: added installcheck target
(This used to be commit 7cca1f83f40106707c00edf612796451536d73e5)
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 3e48177dd138d835766cba304d266fd30a87ebef)
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 9bc751d1f18be1b03e47412e94abe6390f752f98)
2007-10-10 14:16:25 -05:00
Andrew Tridgell
c2bc9bdda1 r17689: build works, this should fix install ....
(This used to be commit 9a7c1df956ad2e5abaa33b4c808cc1379c2d1c67)
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 d0412765bade27acdd5cc03d7d527fe7ddd1fb11)
2007-10-10 14:16:25 -05:00
Andrew Tridgell
c4e83e8efc r17687: remove circular dependency
(This used to be commit b12fd256ff827f45f24c56edbc6f44248ba9b9a3)
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 580ed6730d33bad62e9799a38377c40f2852ae89)
2007-10-10 14:16:22 -05:00
Andrew Bartlett
04b2dfd935 r17582: Fix dependenies for oLschema2ldif.
Andrew Bartlett
(This used to be commit 113ef0132037f3e3db61f259eee903a4584219f7)
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 ba1c652bae700a82acde166e70035d61c320e233)
2007-10-10 14:15:39 -05:00
Tim Potter
43e9053d95 r16089: Make doxygen target work if $DOXYGEN variable is empty.
(This used to be commit 8f44d0a2d66751ebc648550eec1ea051724b750c)
2007-10-10 14:08:58 -05:00
Jelmer Vernooij
72a1d08cfe r14590: Fix ldb standalone build...
(This used to be commit 3a6ed4e2df26936202cba8f7739ed39e0d119d1a)
2007-10-10 13:58:56 -05:00
Jelmer Vernooij
f48a8919a4 r13650: Install manpages when building standalone
(This used to be commit 65128577a9909872bebb576f548668600352a645)
2007-10-10 13:52:04 -05:00
Simo Sorce
f5ebc8e404 r13324: From now on check attribute names obey rfc2251
Also add a way to provide utf8 compliant functions
by registering them with ldb_set_utf8_fns()

Next comes code to register samba internal utf8 functions.

Simo.
(This used to be commit ac9b8a41ffca8e06c5e849d544d3203a665b8e0d)
2007-10-10 13:51:44 -05:00
Jelmer Vernooij
ffa41a1264 r13181: Fix standalone ldb build
(This used to be commit e9059ea0c56c1fd9886eb038df5455efe11962f8)
2007-10-10 13:51:32 -05:00
Jelmer Vernooij
4abecc0219 r13064: Add 'tags' target to LDB's makefile
(This used to be commit 8195e4f8566ecc71c801aec6638869c494e6bbb4)
2007-10-10 13:51:20 -05:00
Stefan Metzmacher
4a8656fd65 r12850: - add Doxygen comments to ldb
- 'make doxygen' generated the api documentation under apidocs/

Many thanks to Brad Hards <bradh@frogmouth.net> for the patches!

metze
(This used to be commit e98d483174c555366e62dd27600e6b242cab7a7f)
2007-10-10 13:50:53 -05:00
Stefan Metzmacher
61768feec6 r12847: add some ldb examples from Brad Hards (bradh@frogmouth.net)
metze
(This used to be commit 4d32d50ccd8bd0bfb3e2d6f5aee23bce38abbc03)
2007-10-10 13:50:06 -05:00
Stefan Metzmacher
4a1e289770 r12846: some fixes
metze
(This used to be commit bf6065b11fd84454f8bc881ff96fb1846a59405b)
2007-10-10 13:50:05 -05:00
Simo Sorce
c908d0b2aa r12733: Merge ldap/ldb controls into main tree
There's still lot of work to do but the patch is stable
enough to be pushed into the main samba4 tree.

Simo.
(This used to be commit 77125feaff252cab44d26593093a9c211c846ce8)
2007-10-10 13:49:47 -05:00
Simo Sorce
93a3e9e2b6 r12643: don't fail make test
thanks Brad
(This used to be commit 2f213b9580cb9e84f1c44393cac521e5c1af817b)
2007-10-10 13:49:33 -05:00
Andrew Bartlett
8d147a4dd3 r12632: Build fixes from Brad Hards <bradh@frogmouth.net>
Andrew Bartlett
(This used to be commit 44b107d3150135ee4381c1ba4eac23bfd9cb16b9)
2007-10-10 13:49:10 -05:00
Simo Sorce
0cf1feb114 r12604: fix make clean as Brad Hards <bradh@frogmouth.net> sugested
(This used to be commit 6198006ee466c6398f6a3da352d236034693ffb7)
2007-10-10 13:49:02 -05:00
Andrew Tridgell
c8978cb1f1 r10918: - fixed standalone ldb build
- added note about allowedAttributesEffective (will be needed for mmc)

- fixed some more ldb warnings
(This used to be commit e9e4d81b6976549db8a7668572a5da466fbec4a9)
2007-10-10 13:39:43 -05:00
Andrew Tridgell
ede8415d61 r10405: added transactions into tdb, and hook them into ldb. See my
samba-technical posting for more details on the transactions design.

This also adds a number of command line arguments to tdbtorture,
making it more flexible, and fixes some lock deadlock conditions in
the tdbtorture code.
(This used to be commit 06bd8abba942ec9f1e23f5c5d546cbb71ca3a701)
2007-10-10 13:38:41 -05:00
Simo Sorce
cba1859fe1 r10301: fix standalone compiple after tdb changes
(This used to be commit acfb4b928363b00346cd8991347d992c76c981d6)
2007-10-10 13:38:15 -05:00
Jelmer Vernooij
84bfcd3c78 r9835: Make ldb_map compile in the stand-alone LDB build
(This used to be commit 2283a336e0e31e6857621d9806bba54c400bd986)
2007-10-10 13:36:17 -05:00
Simo Sorce
5c16371daa r9447: Add a new tool to convert openLdap schema files into an ldif
My first test with nis.schema seem to confirm it works properly

Use a command line like:
oLschema2ldif -I tests/schema/nis.schema -O nis_schema.ldif -b "dc=sambadom,dc=samba,dc=org"
to see how it works.

SSS
(This used to be commit fc373fd4631420c9d8d4087a2c698b08e18372d7)
2007-10-10 13:34:16 -05:00
Simo Sorce
768585b1dd r8779: Add rdn module to makefile and headers
Search by distinguishedName as if searching by dn
(This used to be commit 1d4046136255aead319ab08da229146dbd285b38)
2007-10-10 13:30:04 -05:00
Andrew Tridgell
338c3f8523 r8625: move the ldb_wrap logic into the ldb code. This logic is meant to
avoid the horrors of posix locking, but it was preventing us having an
ldb open twice with different options. Now each ldb open of the same
file shares the same underlying tdb, but uses a different ldb
structure
(This used to be commit 4e090c66dfa1d2764e4693578d3845be3b8893f6)
2007-10-10 13:29:45 -05:00
Andrew Tridgell
a06d66a3a6 r8037: a fairly major update to the internals of ldb. Changes are:
- moved the knowledge of attribute types out of ldb_tdb and into the
   generic ldb code. This allows the ldb_match() message match logic
   to be generic, so it can be used by other backend

 - added the generic ability to load attribute handlers, for
   canonicalisation, compare, ldif read and ldif write. In the future
   this will be used by the schema module to allow us to correctly
   obey the attributetype schema elements

 - added attribute handlers for some of the core ldap attribute types,
   Integer, DirectoryString, DN, ObjectClass etc

 - added automatic registration of attribute handlers for well-known
   attribute names 'cn', 'dc', 'dn', 'ou' and 'objectClass'

 - converted the objectSid special handlers for Samba to the new system

 - added more correct handling of indexing in tdb backend based on the
   attribute canonicalisation function

 - added generic support for subclasses, moving it out of the tdb
   backend. This will be used in future by the schema module

 - fixed several bugs in the dn_explode code. It still needs more
   work, but doesn't corrupt ldb dbs any more.
(This used to be commit 944c5844ab441b96d8e5d7b2d151982139d1fab9)
2007-10-10 13:19:01 -05:00
Jelmer Vernooij
65cc3f5d5c r7958: More debian packaging updates; packages build now with
a few minor issues.

Move ldb manpages one level higher - there is no longer a need to have
subdirectories.
(This used to be commit e8e3524b2394f4107230715ea38fb619332e0251)
2007-10-10 13:18:54 -05:00
Simo Sorce
1702f52498 r7936: new ldb_dn_explode and ldb_dn_casefold functions and co
(This used to be commit 7ccf21ab4eeb9821e457308a239f2103a106fb12)
2007-10-10 13:18:52 -05:00
Andrew Tridgell
ed3d8091ce r7709: - convert ldb to use popt, so that it can interact with the samba
cmdline credentials code (which will be done soon)

- added a ldb_init() call, and changed ldb_connect() to take a ldb
  context. This allows for much better error handling in
  ldb_connect(), and also made the popt conversion easier

- fixed up all the existing backends with the new syntax

- improved error handling in *_connect()

- fixed a crash bug in the new case_fold_required() code

- ensured that ltdb_rename() and all ltdb_search() paths get the read lock

- added a ldb_oom() macro to make it easier to report out of memory
  situations in ldb code
(This used to be commit f648fdf187669d6d87d01dd4e786b03cd420f220)
2007-10-10 13:18:24 -05:00
Simo Sorce
9189833a87 r7582: Better way to have a fast path searching for a specific DN.
Old way was ugly and had a bug, you couldn't add an attribute named
dn or distinguishedName and search for it, tdb would change that search in a dn search.
This makes it also possible to search by dn against an ldap server as the old method was
not supported by ldap syntaxes.

sss
(This used to be commit a614466dec2484a0d39bdfae53da822cfcf80926)
2007-10-10 13:18:11 -05:00