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

12693 Commits

Author SHA1 Message Date
Rafal Szczesniak
945cb016a4 r22809: use buffer size specified in libnet context.
rafal
(This used to be commit c78dfd356777f133427fb8d9013f38f19d43ecbd)
2007-10-10 14:52:19 -05:00
Rafal Szczesniak
7c636fd2fe r22808: store default buffer size for samr operations in libnet context.
This allows not requiring it as an argument in some function calls
and still enables specifying any size if it's necessary via libnet
context.

rafal
(This used to be commit 3e4b0c5b3b6d6bd155c8ce11b2342f4af08342f6)
2007-10-10 14:52:19 -05:00
Rafal Szczesniak
6bf83794e5 r22804: convert libnet_rpc_userinfo function to use "continue" functions
instead of a single handler.

rafal
(This used to be commit c27c0523ac695ef71df9b3176a69c6fb25b02ac0)
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
06dae806f9 r22793: use a state struct for r_do_release_demand to avoid a memleak on errors
metze
(This used to be commit a4111527315c2b193a5235c6d32e9f392066506f)
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
bb691629f5 r22792: only don't free on success
metze
(This used to be commit 2259bc2cad3333d41a6972ad9659820f85906bba)
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
4ef7bab6d0 r22791: make it possible to use smb2_create_blob_add() in the server code too
metze
(This used to be commit c08eeb62ca001cebcb7af2b655269e4b388e69c1)
2007-10-10 14:52:18 -05:00
Stefan Metzmacher
e1635caaf3 r22790: fix initialization for chained requests
metze
(This used to be commit e1cc933c009f98264c0e8c65bfd93a0d1219a0e2)
2007-10-10 14:52:17 -05:00
Stefan Metzmacher
2dacfdf099 r22789: fix loading of internal samba4 modules
metze
(This used to be commit f6740c8b7abdaa65c8467220bf2d14e21fe71053)
2007-10-10 14:52:17 -05:00
Stefan Metzmacher
7e330c7c0c r22788: fix typo
metze
(This used to be commit 635a636e89e462825efaacd5563c40fec2ceefb1)
2007-10-10 14:52:17 -05:00
Stefan Metzmacher
6bf99b9e85 r22774: correctly initialize the smbsrv_connection when switching to SMB2
metze
(This used to be commit 0fa4eb7323d95b6b8fb0c98225aebfa0b05e685a)
2007-10-10 14:52:17 -05:00
Jelmer Vernooij
cf4d161f15 r22769: Fix include location.
(This used to be commit 74d51579aff73913cae31734bddc3b5a48cd32fa)
2007-10-10 14:52:16 -05:00
Rafal Szczesniak
665065a1df r22764: - replace talloc_zero with composite_create
- use event context provided with libnet context instead of creating
  a new one

rafal
(This used to be commit ce8414b3daad335eac356a393f1653e2e10e2640)
2007-10-10 14:52:16 -05:00
Rafal Szczesniak
da7f449a07 r22763: replace talloc_zero calls with composite_create and add more
allocation checks.

rafal
(This used to be commit 621f3e567478fc8067f08f3589b54bf58ca9e1f1)
2007-10-10 14:52:16 -05:00
Jelmer Vernooij
cc26fe9b74 r22762: Some ldb_map changes:
* Change license to LGPL, so it can be used by non-Samba users of
LDB (cleared with Martin as well).

* Include ldb_map in standalone build.

* Move ldb_map to its own directory
(This used to be commit a90202abca26c0da5425a2f3dd8494077c3290fd)
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
7ef755d150 r22758: - add missing _talloc_set_name_const(ret, ret); to talloc_append_string()
- update manpage and add comments about _talloc_set_name_const(ret, ret);
  in all places which use them

metze
(This used to be commit 5cd100de829b75b83e49bd572a33a267cf86f215)
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
aa4ab6d3c1 r22757: test if calling talloc_free() works on parent elements from within a destrutor
metze
(This used to be commit 305117fae0b4692b27b9cc7204fc59fb1312eabb)
2007-10-10 14:52:15 -05:00
Andrew Bartlett
112728c651 r22756: Make it easier to setup an LDAP replica. Provision with
--partitions-only (suggestions for a better name welcome) will setup
the partitions records, but no any data in those partitions.  This can
then point at the already configured remote LDAP server.

Andrew Bartlett
(This used to be commit ee7b06fc832ca7c572205c7c268c3c7c552effa0)
2007-10-10 14:52:15 -05:00
Stefan Metzmacher
19d56c775a r22752: bail out on talloc failure
metze
(This used to be commit da92bf88e55739daefd2a0c595e0fa61819fa348)
2007-10-10 14:52:10 -05:00
Jelmer Vernooij
31b47acf52 r22750: dlopen() is always available now (and returns a correct error if not supported by the system), thanks to libreplace.
(This used to be commit 1152a4f56d7402bf3aa00b5b108c5c6c668cec6b)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
7fe9a3255a r22749: fix memory leak of nbt_name_request structure which are used to send replies
and never have an async callback that could free it.

we only had the memory leak in the error path the
standard path was ok.

metze
(This used to be commit d2a2fe662db5b773f4bd54498d6b31b773633903)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
68b531e817 r22748: fix memleaks by passing an mem_ctx to
irpc_servers_byname()

metze
(This used to be commit b54584dfabee77ec7743cab431bda9765057a295)
2007-10-10 14:52:09 -05:00
Stefan Metzmacher
56ab0cd77c r22746: fix the build of the sqlite module
metze
(This used to be commit cd958034df67a606492b69e55f1f4bc5fa95383b)
2007-10-10 14:52:08 -05:00
Stefan Metzmacher
7a919bede7 r22743: set the talloc name to the string...
metze
(This used to be commit d907fb26a7b0a6543a4bf0b848327a0b7d0da9fa)
2007-10-10 14:52:08 -05:00
Jelmer Vernooij
b157580538 r22742: Fix tests.
(This used to be commit 7240c2d7e30968b751d944f8a9a50573fcbe6671)
2007-10-10 14:52:08 -05:00
Jelmer Vernooij
ac0e2b606f r22741: Add MSVC-specific pragma's for Wireshark. Patch from Ronnie.
(This used to be commit 40d6235b2491462bae480415e2ae075c041b3b7e)
2007-10-10 14:52:08 -05:00
Rafal Szczesniak
0ad4c05508 r22735: correct some comments
rafal
(This used to be commit 6d4268bcd3c28ed2928e68aea567517a671e314a)
2007-10-10 14:52:07 -05:00
Rafal Szczesniak
fbe82f1375 r22734: - use samr pipe if it is already opened
- close connection handle after domains enumeration
- collect domain names in subsequent rounds of enumeration
  (if there are more than one)

rafal
(This used to be commit 5ab76ce515c9b0524529e8e3607e991aff0fd7be)
2007-10-10 14:52:07 -05:00
Stefan Metzmacher
84ea1aa3fc r22723: fix compiler warnings
metze
(This used to be commit d8440f0579a87e7edff466269bc1dfab8796af34)
2007-10-10 14:52:07 -05:00
Stefan Metzmacher
9dba7d7613 r22722: fix dependencies
metze
(This used to be commit 0397eca102e17d2da726d1669e3ff6d925e50e89)
2007-10-10 14:52:07 -05:00
Stefan Metzmacher
c722b7ad60 r22721: use only included talloc and tdb untill jelmer
fixes the code to support both...

the problem is that we always add EXT::TALLOC in config.mk
before 'include lib/talloc/config.mk'

metze
(This used to be commit fa5b22e0c63f8fb06bfee1cfd7ca20cf5c34f1d4)
2007-10-10 14:52:06 -05:00
Stefan Metzmacher
aed8091df0 r22718: remove autoconf warnings, we should only include
.m4 files only once

metze
(This used to be commit 81f906537dc6db6357b1eca1f506bb1b1153c56f)
2007-10-10 14:52:03 -05:00
Jelmer Vernooij
ca72dbec9a r22699: Reduce amount of magic required for popt detection.
(This used to be commit 05ca6ecef70b0e66348b479badcb77d0a0bef9f2)
2007-10-10 14:52:03 -05:00
Jelmer Vernooij
b3a4fd11e9 r22698: Support using system tdb, when available.
(This used to be commit 4d3f02e845577be4a995398dbc5322da8d470009)
2007-10-10 14:52:03 -05:00
Jelmer Vernooij
30baa7f39e r22697: Support building with external talloc.
(This used to be commit 3a2f9e0977bc311daa8171ea709a9cbcdd0a0c85)
2007-10-10 14:52:02 -05:00
Simo Sorce
31d28c5b8c r22696: Make sure this is an ascii char
spotted by Volker
(This used to be commit e24812016f60f506f0df2cb5ba8c2c6987f7da40)
2007-10-10 14:52:02 -05:00
Volker Lendecke
d6121458b0 r22694: It seems that AIX 5.3 with XLC has difficulties with <ctype.h>. This is
an attempt to work around this: Maybe it helps if we include other stuff
first.

This raises a question however: Do we want the DN handling to be locale
dependent? isalpha() can return different things depending on the
current locale.
(This used to be commit 75ba82dee052fa5f4141e66e1cb748101aa95d71)
2007-10-10 14:52:02 -05:00
Jelmer Vernooij
bb71fc3856 r22687: use DESTDIR.
(This used to be commit 0b34da929f2a482c6470a18a6b365634cb1f5b22)
2007-10-10 14:52:02 -05:00
Jelmer Vernooij
9b03417172 r22684: Fix native Samba build.
(This used to be commit 582e743e68a1dbfafe06e7e283ff998140149ae7)
2007-10-10 14:52:01 -05:00
Stefan Metzmacher
9644ced731 r22683: fix the logic for skipping the pipe_dead()
code on the 2nd run.

thanks volker for finding this!

metze
(This used to be commit 00ccc217da62a7f4125f28e77030ae526d573f3a)
2007-10-10 14:52:01 -05:00
Jelmer Vernooij
e0e8fc3db4 r22682: Fix standalone ldb build when parent directory name != ldb.
(This used to be commit 532f28724dcc9e0fe7051e27d145469398041101)
2007-10-10 14:52:01 -05:00
Jelmer Vernooij
52fb06edc2 r22681: Fix standalone ldb build when parent directory name != ldb.
(This used to be commit 1093875d59f1ea9b8bd82277d4f9d8366e584952)
2007-10-10 14:52:00 -05:00
Volker Lendecke
be7eb080fe r22680: Fix a talloc ctx name
(This used to be commit 3c46831f66136896b6b15c351442684ed20730d6)
2007-10-10 14:52:00 -05:00
Rafal Szczesniak
d02dc1b674 r22672: use composite_create calls instead of talloc_zero.
rafal
(This used to be commit 969b175c739ca29b04c15a26a05f317703eed656)
2007-10-10 14:52:00 -05:00
Andrew Tridgell
5f475b80ee r22670: changed the RAW-NOTIFY test to support clustered testing (two nodes)
(This used to be commit 12ce85aea16379b9946851806c1782272ee1c48f)
2007-10-10 14:52:00 -05:00
Stefan Metzmacher
aa95279b81 r22669: fix uninitialized element which was causing a crash with 'net password set'
metze
(This used to be commit 9bbe4733562a8fc6fe49377a47e482a14a6efc61)
2007-10-10 14:51:59 -05:00
Jelmer Vernooij
9fc5647043 r22668: Fix ldb build
(This used to be commit 331a0f608f3ae2199a8e3290d79d3a0623fb8a35)
2007-10-10 14:51:59 -05:00
Stefan Metzmacher
c83c6740ab r22667: revert revision 22640 as it breaks nested structs in idl
metze
(This used to be commit b5c84460fc8599fbd894bcf8c4f7b440e2424af1)
2007-10-10 14:51:59 -05:00
Jelmer Vernooij
1477b7a24f r22665: Change version back to 0.9.
(This used to be commit 5037373c4c788ed5a74fbc90a190dd8245fe2029)
2007-10-10 14:51:59 -05:00
Stefan Metzmacher
91ec102fb9 r22662: disable shared library support on Tru64
metze
(This used to be commit 75d5155cd33096aea0dc31dfa596769eb923299d)
2007-10-10 14:51:58 -05:00
Stefan Metzmacher
6c6c5927a1 r22661: optimize the handling of directly triggered timed events:
- if someone adds a timed_event with a zero timeval
  we now avoid serval gettimeofday() calls and the
  event handler doesn't get the current time when it's
  called, instead we also pass a zero timeval

- this also makes sure multiple timed events with a zero timeval
  are processed in the order there're added.

the little benchmark shows that processing 2000000 directly timed events
is now much faster, while avoiding syscalls at all!

> time ./evtest (with the old code)

real    0m6.388s
user    0m1.740s
sys     0m4.632s
> time ./evtest (with the new code)

real    0m1.498s
user    0m1.496s
sys     0m0.004s
metze@SERNOX:~/devel/samba/4.0/samba4-ci/source> cat evtest.c
#include <stdio.h>
#include <stdint.h>
#include <sys/time.h>
#include <talloc.h>
#include <events.h>

static void dummy_fde_handler(struct event_context *ev_ctx, struct fd_event *fde,
                              uint16_t flags, void *private_data)
{
}

static void timeout_handler(struct event_context *ev, struct timed_event *te,
                            struct timeval tval, void *private_data)
{
        uint32_t *countp = (uint32_t *)private_data;
        (*countp)++;
        if (*countp > 2000000) exit(0);
        event_add_timed(ev, ev, tval, timeout_handler, countp);
}

int main(void)
{
        struct event_context *ev;
        struct timeval tval =  { 0, 0 };
        uint32_t count = 0;
        ev = event_context_init(NULL);
        event_add_fd(ev, ev, 0, 0, dummy_fde_handler, NULL);
        event_add_timed(ev, ev, tval, timeout_handler, &count);
        return event_loop_wait(ev);
}
(This used to be commit 4db64b4ce2320b88d648078cbf86385f6fb44f1f)
2007-10-10 14:51:58 -05:00