1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

581 Commits

Author SHA1 Message Date
Volker Lendecke
74330085ec Only err on readability if writev_send was explicitly asked to do so
A socket might be readable for other reasons
2009-06-04 12:05:00 +02:00
Günther Deschner
8def5cb352 nss_wrapper: more coherence tests for group membership.
Guenther
2009-06-04 10:30:58 +02:00
Günther Deschner
dc9b705667 nss_wrapper: add coherency tests for get{gr,pw}{nam,id}.
Guenther
2009-06-04 10:30:51 +02:00
Günther Deschner
c49f6b7bc6 nss_wrapper: refactor test_nwrap_membership_user() in testsuite.
Guenther
2009-06-04 10:30:44 +02:00
Günther Deschner
911624567a nss_wrapper: make full talloced copies of struct passwd and group in testsuite.
Guenther
2009-06-04 10:30:36 +02:00
Andrew Bartlett
4c70a5b405 socket_wrapper Cope with SOCK_CLOEXEC and SOCK_NONBLOCK flags
Heimdal will, on supporting systems, set these flags in the type
argument of socket(), causing breakage when combined with
socket_wrapper.

For background on these flags, see http://lwn.net/Articles/281965/

Andrew Bartlett
2009-06-04 14:19:17 +10:00
Andrew Tridgell
8ca8dabe46 add gendb_search_single_extended_dn()
This function searches for a single record using a given filter,
adding the extended-dn control so that any returned DNs will have the
GUID and SID fields returned. This will be used in the sam auth code
to prevent us doing a member= search for the groups, which invokes an
unindexed search.
2009-06-04 14:10:11 +10:00
Jelmer Vernooij
87bbae7b07 Rename harness2subunit.pl -> tap2subunit to be consistent with the
subunit tools.
2009-06-03 16:26:29 +02:00
Jelmer Vernooij
4602cc0ac1 Build libsamba-util as a shared library. 2009-06-02 18:05:40 +02:00
Günther Deschner
011a505800 nss_wrapper: prefix function pointer names in struct nwrap_ops.
Guenther
2009-06-02 14:52:53 +02:00
Günther Deschner
68bb2d2e80 torture: minor fixes to torture macro text output.
Guenther
2009-06-02 13:12:09 +02:00
Günther Deschner
8684911bda nss_wrapper: resort calls to move public calls to the end.
Guenther
2009-06-02 13:11:57 +02:00
Günther Deschner
81e820c1aa nss_wrapper: add nwrap_ops function pointer table.
Guenther
2009-06-02 13:11:49 +02:00
Günther Deschner
9a7a97856a nss_wrapper: make sure to return after calling real_{set,end}{gr,pw}ent.
Guenther
2009-06-02 13:11:42 +02:00
Günther Deschner
94f2ef4f72 nss_wrapper: fix typo while checking for getgrid_r support.
Metze, this has been in here for a long time, please check.

Guenther
2009-06-02 13:11:33 +02:00
Andrew Tridgell
a6cc04a200 overallocate all records by 25%
This greatly reduces the fragmentation of databases where records
tend to grow slowly by a small amount each time. The case where this
is most seen is the ldb index records. Adding this overallocation
reduced the size of the resulting database by more than 20x when
running a test that adds 10k users.
2009-06-01 13:13:07 +10:00
Andrew Tridgell
a386173fa1 auto-repack in transactions that expand the tdb
The idea behind this is to recover from badly fragmented free
lists. Choosing the point where the file expands is fairly arbitrary,
but seems to work well.
2009-06-01 13:11:39 +10:00
Andrew Tridgell
ba95882155 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-06-01 10:39:30 +10:00
Volker Lendecke
3984b76498 Fix a C++ warning 2009-05-31 12:16:34 +02:00
Günther Deschner
241db90c31 nss_wrapper: try to fix the build of nss_wrapper on solaris.
Guenther
2009-05-30 23:08:12 +02:00
Volker Lendecke
625851a50f Handle EINTR in async_sock.c 2009-05-30 09:51:02 +02:00
Kai Blin
57ea909b32 libwbclient: Add async call framework. 2009-05-30 09:17:37 +02:00
Günther Deschner
2be289c68d nss_wrapper: add test_nwrap_membership to testsuite.
Guenther
2009-05-30 01:46:22 +02:00
Günther Deschner
62d1cd6375 nss_wrapper: restructure parts of the testsuite.
Guenther
2009-05-30 01:45:58 +02:00
Günther Deschner
8db4917290 nss_wrapper: add support for getgrouplist.
Guenther
2009-05-30 00:06:00 +02:00
Volker Lendecke
3d9e1f605c util: Change license on tevent_unix to LGPLv3+ 2009-05-29 18:31:30 +02:00
Volker Lendecke
9d8766e176 async_sock: Change license to LGPLv3+ 2009-05-29 18:17:38 +02:00
Günther Deschner
36fc0b961f s4-smbtorture: add a very basic NSS-WRAPPER testsuite.
Guenther
2009-05-29 13:50:09 +02:00
Günther Deschner
bff54b90c3 util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.
Guenther
2009-05-29 13:49:58 +02:00
Andrew Tridgell
67b83d2489 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-05-28 22:12:00 +10:00
Günther Deschner
136b2a3eb2 nss_wrapper: fix nss_wrapper build for solaris.
Guenther
2009-05-28 11:53:51 +02:00
Günther Deschner
37e4c92b38 nss_wrapper: remove re-structuring leftovers (unused variables).
Guenther
2009-05-28 11:53:51 +02:00
Günther Deschner
ebf8df35c9 nss_wrapper: support member add and delete for groups in nss_wrapper.pl.
Guenther
2009-05-28 10:39:37 +02:00
Günther Deschner
7bb9e08d7e nss_wrapper: split out passwd and group paths in nss_wrapper.pl.
Guenther
2009-05-28 10:32:21 +02:00
Günther Deschner
ec9a091705 nss_wrapper: restructure nwrap calls.
Guenther
2009-05-28 10:32:21 +02:00
Andrew Tridgell
08be1420ba fixed tdbbackup to give tdb error messages 2009-05-28 17:35:12 +10:00
Andrew Tridgell
5ab03dbecc Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-05-28 16:12:34 +10:00
Andrew Tridgell
4b4fec65db make TDB_NOSYNC affect all the fsync/msync calls in transactions
During a transaction commit tdb normally uses fsync/msync calls to
make it crash safe. This can be disabled using the TDB_NOSYNC flag,
but it wasn't disabling all the code paths that caused a fsync/msync.
2009-05-28 16:08:28 +10:00
Tim Prouty
c299833bf8 tdb: Fix some recently introduced warnings in tdbtool 2009-05-27 13:18:12 -07:00
Andrew Tridgell
0299609308 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-05-26 14:18:16 +10:00
Andrew Bartlett
8603985575 Add support for sendmsg() in socket_wrapper
This is required because the deferred connect code skips the connect()
until sending the packet, but unless we catch this call, the connect()
never happens.

Andrew Bartlett
2009-05-26 12:37:09 +10:00
Andrew Tridgell
e15027155d added some more speed tests to tdbtool
This adds 3 simple speed tests to tdbtool, for transaction store,
store and fetch.

On my laptop this shows transactions costing about 10ms
2009-05-26 09:24:37 +10:00
Volker Lendecke
9de2efaa5b Change async_connect to use connect instead of getsockopt to get the error
On my Linux box, this is definitely the more reliable strategy with unix domain
sockets, and according to my tests it also works correctly with TCP sockets.
2009-05-24 13:50:54 +02:00
Volker Lendecke
a8e02b591b Add "err_on_readability" to writev_send
A socket where the other side has closed only becomes readable. To catch
errors early when sitting in a pure writev, we need to also test for
readability.
2009-05-24 13:47:29 +02:00
Volker Lendecke
1a69ba8945 Allow NULL queue to writev_send 2009-05-24 13:45:35 +02:00
Stefan Metzmacher
edd9bd9b16 tsocket: allow empty vectors at the end for tstream_writev()/readv()
metze
2009-05-22 14:01:22 +02:00
Jim McDonough
a91bcbccf8 Detect tight loop in tdb_find() 2009-05-21 16:29:48 -04:00
Günther Deschner
3bd360c73d nsswrapper: implement group_del() in nss_wrapper.pl.
Guenther
2009-05-20 12:37:37 +02:00
Günther Deschner
b3cc01fd68 nsswrapper: implement group_add() in nss_wrapper.pl.
Guenther
2009-05-20 12:37:31 +02:00
Volker Lendecke
ac65ae9b1d Set errno=ENOMEM if tevent_add_fd fails
tevent_add_fd does not properly set that. At least in epoll and select this is
the only error condition.

Metze, please check!
2009-05-19 23:51:22 +02:00