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

246 Commits

Author SHA1 Message Date
Simo Sorce
0b715b6ce2 r3755: add missing files 2007-10-10 13:05:51 -05:00
Simo Sorce
71323f424b r3754: merge in ldb modules support from the tmp branch ldbPlugins 2007-10-10 13:05:51 -05:00
Jelmer Vernooij
8e7e98ae5f r3753: Have some modules default to "NOT" and enable them again when
their dependencies are found
2007-10-10 13:05:51 -05:00
Andrew Tridgell
4fc794d0b4 r3743: auto-support the RH schema location as well 2007-10-10 13:05:49 -05:00
Andrew Tridgell
88b03ffc85 r3742: make test-ldap give a sane error message when the openldap schema files are missing
and auto-link the files if they are found in /etc/ldap/schema/
2007-10-10 13:05:49 -05:00
Jelmer Vernooij
64826da834 r3733: More build system fixes/features:
- Use .mk files directly (no need for a SMB_*_MK() macro when adding a new SUBSYSTEM, MODULE or BINARY). This allows addition of new modules and subsystems without running configure
 - Add support for generating .dot files with the Samba4 dependency tree (as used by the graphviz and springgraph utilities)
2007-10-10 13:05:47 -05:00
Jelmer Vernooij
cbe819a755 r3730: More build system fixes and simplifications
the hierarchy in the init functions is correct now
will also make it easier to implement some other features
2007-10-10 13:05:47 -05:00
Jelmer Vernooij
7a8244761b r3586: Fix some of the issues with the module init functions.
Both subsystems and modules can now have init functions, which can be
specified in .mk files (INIT_FUNCTION = ...)

The build system will define :
 - SUBSYSTEM_init_static_modules that calls the init functions of all statically compiled modules. Failing to load will generate an error which is not fatal
 - BINARY_init_subsystems that calls the init functions (if defined) for the subsystems the binary depends on

This removes the hack with the "static bool Initialised = " and the
"lazy_init" functions
2007-10-10 13:05:36 -05:00
Andrew Tridgell
6b1f86aea8 r3449: more include file reduction
the ldb part isn't ideal, I will have to think of a better solution
2007-10-10 13:05:13 -05:00
Andrew Tridgell
5921587ec2 r3323: more warning reductions 2007-10-10 13:04:55 -05:00
Andrew Tridgell
e6ddb9d8f3 r3210: split lib/replace.o into a separate build subsystem LIBREPLACE, and
make the ldb tools depend on it. This should help the build of the ldb
tools on platforms without strnlen() or strndup()
2007-10-10 13:04:41 -05:00
Stefan Metzmacher
1e7e94fdb1 r3095: - fix a free'ing of msg.dn
- reenable index tests

metze
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
18552f4786 r3093: - implment ldb_rename() and ldbrename
- add tests for ldbrename

- disable all tests which regenerate the index
  (this is broken for me...the process hangs,
   tridge we need to discuss that)

- link only the needed stuff to the ldb tools

- build ldbtest inside samba

metze
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
f7564bf4d2 r3092: prepare for build inside samba
metze
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
52eab8dc17 r3089: fix memleak
metze
2007-10-10 13:01:58 -05:00
Andrew Tridgell
1246f80d80 r2792: got rid of talloc_ldb_alloc() and instead created talloc_realloc_fn(),
so talloc now doesn't contain any ldb specific functions.

allow NULL to be passed to a couple more talloc() functions
2007-10-10 12:59:34 -05:00
Andrew Tridgell
476674af55 r2726: added a -r option to ldbdel to allow easy delete of a whole
subtree. Useful when cleaning up a mess after testing.
2007-10-10 12:59:27 -05:00
Andrew Tridgell
19925f5bd8 r2725: fixed ldbtest to give the basedn to ldb_search() 2007-10-10 12:59:27 -05:00
Andrew Tridgell
fd2725f5c0 r2721: added a -b option to ldbtest so it can be used with the new smbd ldap server
without changing realms
2007-10-10 12:59:26 -05:00
Andrew Tridgell
b0c92616fb r2713: better handling of binary values in index key creation 2007-10-10 12:59:25 -05:00
Andrew Tridgell
3f776a9b5c r2712: fixed a bug in ldbtest to make it cope with an existing index 2007-10-10 12:59:25 -05:00
Jelmer Vernooij
8768168aad r2667: Remove forward declaration of static function from function. GCC 3.5 and 4.0 don't accept declarations of static functions inside other
functions, see http://gcc.gnu.org/ml/gcc-patches/2004-08/msg02514.html
2007-10-10 12:59:19 -05:00
Andrew Tridgell
03c38477ad r2556: fixed the -s one bug that jelmer pointed out 2007-10-10 12:59:06 -05:00
Andrew Tridgell
74d7bc1948 r2554: added a test for a bug that jelmer pointed out (handling of -s one) 2007-10-10 12:59:05 -05:00
Andrew Tridgell
9f230425a0 r2553: fixed ldbtest so it passes the ldap schema restrictions and thus can be used on the ldap backend 2007-10-10 12:59:05 -05:00
Andrew Tridgell
856cdf82f2 r2485: - add a test case in ldbtest for a bug pointed out by Jon Haswell.
- fixed the bug shown with the above test, by initialising the
  sequence number to something different from the value used in
  ltdb_cache_free()
2007-10-10 12:58:56 -05:00
Andrew Tridgell
05601a4c6f r2484: allow ldb to build standalone again 2007-10-10 12:58:56 -05:00
Andrew Tridgell
03d4a7832c r2381: added a -v debugging option to ldbedit 2007-10-10 12:58:46 -05:00
Andrew Tridgell
c80d686f59 r2192: removed an erroneous free() call on an error path 2007-10-10 12:58:30 -05:00
Stefan Metzmacher
b9152c9ba2 r2089: fix standalone build with LDAP, this needs -llber too
metze
2007-10-10 12:58:24 -05:00
Stefan Metzmacher
037a6d95b4 r2087: the ldb tools really don't need LIBSMB!
that reduces the size of thet binaries with '-g' and gcc 3.4
from 5.3 MB to 745 KB:-)

metze
2007-10-10 12:58:24 -05:00
Andrew Bartlett
8115e44d47 r2055: Add PRINTF_ATTRIBUTE to many more parts of the code, and a new
--enable-developer warning for when they are missing.

Andrew Bartlett
2007-10-10 12:58:21 -05:00
Stefan Metzmacher
5e5681e283 r1901: add missing include of <fnmatch.h>
metze
2007-10-10 12:58:09 -05:00
Andrew Tridgell
d547479290 r1749: added some random stuff that captures some discussions volker and I
just had on emulating % macros from smb.conf in a possible ldb based
config system
2007-10-10 12:57:53 -05:00
Andrew Tridgell
31d55dfb44 r1511: fixed a free() that should be ldb_free()
this might explain the tdb corruption that metze found - it caused heap corruption that affected tdb
2007-10-10 12:57:37 -05:00
Tim Potter
45b4016530 r1374: Fix signed/unsigned warnings (actually found by g++) after unsigned int
changes in r1018.
2007-10-10 12:56:54 -05:00
Tim Potter
de5984c956 r1268: varient -> variant 2007-10-10 12:56:46 -05:00
Tim Potter
52e4fe8ce9 r1055: Standalone build fixes for ldb:
- Various Makefile fixes

  - #include <stdint.h>

ldb still needs a proper build system though.  (-:
2007-10-10 12:56:35 -05:00
Tim Potter
108efcc002 r1052: Remove autogenerated file. 2007-10-10 12:56:34 -05:00
Andrew Tridgell
3d52ca9373 r1018: fix a const and unsigned int problem in ldb 2007-10-10 12:56:28 -05:00
Stefan Metzmacher
b5378803fd r943: change samba4 to use 'uint8_t' instead of 'unsigned char'
metze
2007-10-10 12:56:21 -05:00
Andrew Tridgell
9a9244a1c6 r873: converted samba4 to use real 64 bit integers instead of
structures. This was suggested by metze recently.

I checked on the build farm and all the machines we have support 64
bit ints, and support the LL suffix for 64 bit constants. I suspect
some won't support strtoll() and related functions, so we will
probably need replacements for those.
2007-10-10 12:56:14 -05:00
Andrew Tridgell
1418b667d9 r811: make the ldb_modify REPLACE semantics better match LDAP (ie. no error
on the attribute not existing and allow an empty replace)
2007-10-10 12:53:51 -05:00
Andrew Tridgell
3657539623 r792: - changed the ldb ldif_* functions to be in the ldb_ namespace
- added better error reporting in ldbdel

 - fixed a bug in handling packing of records which contain elements
   with no values (it caused db corruption)

 - allow search with "dn" as target attribute
2007-10-10 12:53:50 -05:00
Andrew Tridgell
ec38392888 r791: added ldb man page build to ldb makefile 2007-10-10 12:53:50 -05:00
Andrew Tridgell
dcb9d1a897 r790: started working on some documentation (manual pages) for ldb 2007-10-10 12:53:50 -05:00
Stefan Metzmacher
520b976216 r728: - let libldb_tdb depend on new subsystem LIBTDB
- remove tdb logging helper functions out of LIBTDB subsystem

- build libtdb shared lib with 'make library_libtdb'

the libs are not usable for now,

tridge: please remove the dependecy of CatchSignal() and smb_panic()
        from libtdb
	maybe use function pointers in the TDB_CONTEXT

	then run make library_libtdb
	and then make build/tests/trivial.o
	and then gcc -o trivial -L./bin -ltdb
	and then gcc -o trivial -L./bin -lldb

metze
2007-10-10 12:53:45 -05:00
Andrew Tridgell
166a664a00 r714: make sure ldb formats are portable between big/little endian machines 2007-10-10 12:53:44 -05:00
Andrew Tridgell
b42d1f3984 r711: don't hide attributes inside the special ldb_tdb records (so the fact
that a attribute is hidden is not itself hidden!)
2007-10-10 12:53:44 -05:00
Stefan Metzmacher
b054f7d490 r697: make use of SMB_EXT_LIB for LDAP and KRB5
metze
2007-10-10 12:53:43 -05:00