1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

710 Commits

Author SHA1 Message Date
Jelmer Vernooij
97416e6b01 r21297: Remove the GTK+ tools and library from the main repository. They are now maintained separately in bzr at http://people.samba.org/bzr/jelmer/samba-gtk
This also adds some more headers to the list that is installed and a couple of extra #include lines so these
headers can be used externally without problems.
(This used to be commit 07652f65ce7a5b19130f1a27cbf0e1e5fae13454)
2007-10-10 14:48:04 -05:00
Simo Sorce
a9e31b33b5 r19832: better prototypes for the linearization functions:
- ldb_dn_get_linearized
  returns a const string

- ldb_dn_alloc_linearized
  allocs astring with the linearized dn
(This used to be commit 3929c086d5d0b3f08b1c4f2f3f9602c3f4a9a4bd)
2007-10-10 14:28:22 -05:00
Simo Sorce
4889eb9f7a r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
(This used to be commit a580c871d3784602a9cce32d33419e63c8236e63)
2007-10-10 14:28:22 -05:00
Andrew Bartlett
13dbee3ffe r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
(This used to be commit 2b569c42e0fbb596ea82484d0e1cb22e193037b9)
2007-10-10 14:25:00 -05:00
Simo Sorce
7f833458ca r19489: Change ldb_msg_add_value and ldb_msg_add_empty to take a foruth argument.
This is a pointer to an element pointer. If it is not null it will be
filled with the pointer of the manipulated element.
Will avoid double searches on the elements list in some cases.
(This used to be commit 0fa5d4bc225b83e9f63ac6d75bffc4c08eb6b620)
2007-10-10 14:24:38 -05:00
Andrew Tridgell
403f0c92a7 r19400: fixed a valgrind error in the directory registry backend (name was
used after closedir(), which invalidates the name)
(This used to be commit d8af519c2d2fcab3baa822c5fd4c1079dcbd1de3)
2007-10-10 14:21:25 -05:00
Simo Sorce
59b66744f7 r19299: Fix possible memleaks
(This used to be commit 6fad80bb09113a60689061a2de67711c9924708b)
2007-10-10 14:21:04 -05:00
Andrew Tridgell
318682b003 r18971: avoid strndup is a few places. Fixes a minor memory leak, and should
fix RPC-LSA on AIX.
(This used to be commit 6cce709d08579f4e00b44b692332a557b0ea3b86)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
655b710204 r18584: found one of the fd leaks. The registry backend was using a
talloc(NULL, xxx) to allocate the registry context. That had two
consequences

1) it was a massive memory leak, as all winreg operations leaked their
   entire context (including an open ldb database) every time

2) event_context_find() never found the exsting event context, so we
   used a new event context each time, which called epoll_create()
   each time, which caused a fd to be allocated
(This used to be commit 1c0a3de39828b43149d8981fc7f10e7c8b59a392)
2007-10-10 14:18:52 -05:00
Gerald Carter
dce0c9e4fd r18561: Fix [out] pointers in winreg IDL
(This used to be commit 694677dafefdd94fa0a9bed93efab70c528dcb26)
2007-10-10 14:18:46 -05:00
Andrew Tridgell
2696cc3120 r18328: when we bail out early, set *offset to 0
(This used to be commit 81230464600bd3a2bb283303b2b9c71f6409675b)
2007-10-10 14:18:10 -05:00
Andrew Tridgell
cac69cdd74 r18324: fixed a uninitialised variable
(This used to be commit 08562d6ebe6b2c48026f0d1e97ec4dd8ea215b2c)
2007-10-10 14:18:09 -05:00
Andrew Tridgell
d6c4147a41 r18298: fixed mmap failure test
(This used to be commit dee6551dc36789506a59bcd3242f208d5bfd5d6f)
2007-10-10 14:18:04 -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 135d096776b53ae09ffc2b4f767dfbd18139570f)
2007-10-10 14:17:50 -05:00
Andrew Tridgell
78eaffd5a0 r18176: reg_util.c needs LIBREPLACE for strndup
(This used to be commit dc1369b2ad1f55e1acfcc2ddd99ec6ac8b115da9)
2007-10-10 14:17:46 -05:00
Jelmer Vernooij
873749f218 r18168: Use {NULL} rather than POPT_TABLEEND, which is not always available.
(This used to be commit 8b622c5ded0732df0eaf9f6226f52a27b6eacd73)
2007-10-10 14:17:45 -05:00
Andrew Tridgell
014f70008f r18130: the move to system/ in libreplace broke some things ... should be
happier now
(This used to be commit 18542f184f75074e56a9793a9e3b6c6d747bb9e6)
2007-10-10 14:17:37 -05:00
Jelmer Vernooij
a59706f721 r18121: Simplify m4 code, hopefully fix Samba4 build problems.
(This used to be commit 1adf65b4d7c5d2d4f65d4b28575bdf2368a42139)
2007-10-10 14:17:35 -05:00
Andrew Tridgell
b7477fb388 r18117: first steps in making samba4 use libreplace
(This used to be commit c079cedb084d621c5a0aac59310b237ba375df20)
2007-10-10 14:17:34 -05:00
Jelmer Vernooij
0329d755a7 r17930: Merge noinclude branch:
* Move dlinklist.h, smb.h to subsystem-specific directories
 * Clean up ads.h and move what is left of it to dsdb/
   (only place where it's used)
(This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10 14:16:54 -05:00
Stefan Metzmacher
b49f18f0e5 r17773: this macros are unsed, with compiler warnings
metze
(This used to be commit 3953d3566e41d0a189be38aee3d99805dd71961a)
2007-10-10 14:16:39 -05:00
Stefan Metzmacher
1cecad2522 r17713: fix compiler warnings
metze
(This used to be commit 21142ad7a2d37489e295d725c8700be0bb921091)
2007-10-10 14:16:30 -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 ad75cf869550af66119d0293503024d41d834e02)
2007-10-10 14:15:31 -05:00
Gerald Carter
e3a6c6be79 r16100: Patch from Michael Wood <mwood@icts.uct.ac.za>: s/then/than/ for correct grammar
(This used to be commit 26a2fa97e4c819e630bc9b50e11c8d5328c7b8c8)
2007-10-10 14:08:59 -05:00
Jelmer Vernooij
26875d59ba r15878: Add explicit initialization to make the IBM checker happy.
(This used to be commit 3a5d3eb62c61d264fb583d2c94e3b3446988051b)
2007-10-10 14:08:36 -05:00
Jelmer Vernooij
1bd7f6ae63 r15877: Fix error message - caught by the IBM checker
(This used to be commit dd0b912fdd107817273391cab223304f0399c3b5)
2007-10-10 14:08:36 -05:00
Andrew Tridgell
971d30bb20 r15854: more talloc_set_destructor() typesafe fixes
(This used to be commit 61c6100617589ac6df4f527877241464cacbf8b3)
2007-10-10 14:08:32 -05:00
Jelmer Vernooij
ab5cbd8813 r15810: Fix uninitialized variable error, caught by the IBM checker.
(This used to be commit 1354333fd192e83242e6618458704c1820efac49)
2007-10-10 14:08:26 -05:00
Jelmer Vernooij
029cf10ff8 r15807: Fix incorrect initialization. Very nice catch by the IBM Checker.
(This used to be commit 2b65c490e40241fb4d4f938a867e33780295ad05)
2007-10-10 14:08:25 -05:00
Jelmer Vernooij
73da6bf6da r15806: Remove some unnecessary nesting making the function harder to read.
(This used to be commit 2e1ce0189961335f654202074101819d8d933748)
2007-10-10 14:08:25 -05:00
Jelmer Vernooij
9727b061f3 r15776: Don't generate ref pointers in Samba4-generated code. There is no point
in having pointers for outgoing data when you can already modify the top-level
element.

This can be overridden (temporarily) by specifying the new "keepref"
attribute. Once we've removed keepref from all IDL files, I'll remove this
attribute as well.
(This used to be commit bdc6dd37503ced8322a671d225122ccffbb8bfec)
2007-10-10 14:08:18 -05:00
Jelmer Vernooij
4049bbbea1 r15659: Implement opening a key by name (significant better performance
in some situations). Patch by Wilco Baan Hofman.
(This used to be commit dece573d4746bb2df2d129ae6a557a0417e56cda)
2007-10-10 14:08:04 -05:00
Jelmer Vernooij
bd90da5b60 r15458: Fix support for Windows XP-style registry files and support for large numbers of subkeys.
Patch by Wilco Baan Hofman <wilco@baanhofman.nl>
(This used to be commit 02859870d62b875eca5feff175c489a93fa7ad84)
2007-10-10 14:05:38 -05:00
Jelmer Vernooij
72a5cbadc1 r15406: Move 'smbreadline' out of libreplace as it doesn't replace functionality
not available on some platforms but is a Samba-specific library.
(This used to be commit e9d3660fa6678424e5159708a1aa572824926c8e)
2007-10-10 14:05:33 -05:00
Jelmer Vernooij
e595ede02f r15375: Rename readline.h to smbreadline.h avoid clashes with system header.
(This used to be commit ccc3d8a95441e7a7015f0cf0e622ec9e38347d33)
2007-10-10 14:05:29 -05:00
Jelmer Vernooij
47bf79eac5 r15370: Fix more dependencies for shared libs
(This used to be commit 9a518661fbb76bf1c153afc6f581e888186dc165)
2007-10-10 14:05:27 -05:00
Jelmer Vernooij
ad53de9d59 r15364: Use global list of predefined keys
(This used to be commit eee9e33442f846d278f0fc545480cc2ec8ea295b)
2007-10-10 14:05:26 -05:00
Jelmer Vernooij
e0e8743baf r15363: Fix dependencies for shared library
(This used to be commit f2ca71f1229f4c20296895116c09bacbd6a53b55)
2007-10-10 14:05:26 -05:00
Jelmer Vernooij
ad1cbc52cc r15361: Export table of predefined registry keys
(This used to be commit 684ef2dae1145388308502942da15e59a8beb425)
2007-10-10 14:05:26 -05:00
Jelmer Vernooij
5afe44c62c r15351: Fix tcc compile error
(This used to be commit 0ba3390a9c1f4f0601a13bf2078817d85ed77de5)
2007-10-10 14:05:24 -05:00
Jelmer Vernooij
620d759f49 r15298: Fix the build using a few hacks in the build system.
Recursive dependencies are now forbidden (the build system
will bail out if there are any).

I've split up auth_sam.c into auth_sam.c and sam.c. Andrew,
please rename sam.c / move its contents to whatever/wherever you think suits
best.
(This used to be commit 6646384aaf3e7fa2aa798c3e564b94b0617ec4d0)
2007-10-10 14:05:04 -05:00
Jelmer Vernooij
8d137d9785 r15295: Fix some dependencies
Move unistr-specific code to lib/charset/. Remove _m from some places where it's not needed.
(This used to be commit 03224e112424968fc3f547c6159c7ccae2d1aa5b)
2007-10-10 14:05:03 -05:00
Jelmer Vernooij
0d5587b5d1 r15274: Drop default EXT_LIB_ prefix for external libraries. Fixes issues with local
(empty) libpopt.a overriding global one
(This used to be commit 2f06305e53478e5030c24550954f221a9a97c83f)
2007-10-10 14:05:00 -05:00
Jelmer Vernooij
882bc0a19e r15253: Fix dependency on tdr_regf.h
(This used to be commit 31819f5411e30199198c334701176ba3bdf258d5)
2007-10-10 14:04:25 -05:00
Jelmer Vernooij
1cc7c693ad r15248: Fix automatic dependencies build
(This used to be commit 3e5aa5e7940ebbb961c53418d170495860f514a0)
2007-10-10 14:04:25 -05:00
Jelmer Vernooij
62bdececc6 r15214: Introduce subsystem-specific CFLAGS to keep the global CFLAGS short.
(This used to be commit a495bc60ab1b233fe507b2b1aa0ad7378cf52677)
2007-10-10 14:04:19 -05:00
Jelmer Vernooij
69b51f702a r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6da256f104abed1b82bfde6998a2ac9)
2007-10-10 14:04:18 -05:00
Jelmer Vernooij
0eddf14b30 r15191: Avoid uint_t as it's not standard.
(This used to be commit 7af59357b94e3819415b3a9257be0ced745ce130)
2007-10-10 14:04:15 -05:00
James Peach
6ab33938d5 r15186: Introduce ISDOT and ISDOTDOT macros for testing whether a filename is
"." for "..". These express the intention better that strcmp or strequal
and improve searchability via cscope/ctags.
(This used to be commit 7e4ad7e8e5ec266b969e3075c4ad7f021571f24e)
2007-10-10 14:04:14 -05:00
Alexander Bokovoy
573b2f75fb r15099: An attempt to fix BSD make portability issues. With these changes Samba 4 builds successfully on NetBSD 3.0
(This used to be commit 71ea07e72d71b06166e0384950df83061a4677b8)
2007-10-10 14:04:08 -05:00