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

67388 Commits

Author SHA1 Message Date
Jelmer Vernooij
554289c261 land: Only pass shell=True if necessary. 2010-10-02 13:14:53 +02:00
Jelmer Vernooij
d03ff1c9da land: Add --fail-slowly option. 2010-10-02 13:14:53 +02:00
Jelmer Vernooij
916904443d Several smaller cleanups, use python coding style. 2010-10-02 13:14:51 +02:00
Jelmer Vernooij
7f0167770c land: Avoid running things in a shell where not necessary. 2010-10-02 13:14:51 +02:00
Jelmer Vernooij
56ad550a92 land-remote: Checkout repository first. 2010-10-02 13:14:51 +02:00
Jelmer Vernooij
ff5fdb65f5 land-remote: Use --repository option. 2010-10-02 13:14:51 +02:00
Jelmer Vernooij
8ce24a9187 land: Add --repository option. 2010-10-02 13:14:51 +02:00
Jelmer Vernooij
3c85d031d3 land: Move more functionality onto builder. 2010-10-02 13:14:51 +02:00
Jelmer Vernooij
74be4a2abf land: Avoid more uses of chdir(). 2010-10-02 13:14:50 +02:00
Jelmer Vernooij
6f6bfb3f20 Split land.py back out of autobuild.py, so I can change it without
risking to break the autobuild system.
2010-10-02 13:14:50 +02:00
Volker Lendecke
13756d0e80 s3: Attempt to fix bug 7665
Quite a few of our internal routines put stuff on talloc_tos() these days.
In top-level netapi routines, properly allocate a stackframe and clean it
again. Also, don't leak memory in the rpccli_ callers onto the libnetapi
context.
2010-10-02 12:02:02 +02:00
Volker Lendecke
fc6e910e69 s3: Fix a 64-bit BUG
Quick explanation why this is a problem:

It is not safe to pass a pointer to a uint32_t into a routine that expects
a size_t *. The routine that this pointer is passed to has no chance to find
out that in reality it was passed a pointer to a uint32_t. On platforms where
sizeof(size_t)==8, we get a nice overwrite of a stack area that should not
be overwritten.

As this happens over an over again: Does someone know a means to make gcc
stop with an error in this case?

Volker
2010-10-02 11:17:49 +02:00
Andrew Tridgell
ed5e05a15d bisect: more bisection options
and fixes for the old ones

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Oct  2 06:14:46 UTC 2010 on sn-devel-104
2010-10-02 06:14:46 +00:00
Andrew Tridgell
018d23a293 script: added bisect-test.py git bisect script
this can be used to work out what commit broke a set of tests
2010-10-01 22:31:58 -07:00
Andrew Tridgell
06b27e5e3d autobuild: show top commit in emails 2010-10-01 22:31:58 -07:00
Andrew Tridgell
f9bc389f60 autobuild: include autobuild.log in logs.tar.gz 2010-10-01 22:31:58 -07:00
Andrew Tridgell
eadd28233d s4-repl: use the GC principal name for DRS replication connection
this is required when talking to RODCs (for notify calls), and is good
practice for all DCs

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-01 22:31:58 -07:00
Andrew Tridgell
9bae4cd3d9 s4-rpc: added target_principal binding handle option
this allows you to specify a target SPN for a connection

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-01 22:31:57 -07:00
Andrew Tridgell
ee15dc9692 s4-dsdb: added dsdb_search_by_dn_guid()
this is more efficient than first searching for the DN, then doing a
search. We should look at using this in lots of existing code

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-01 21:09:51 -07:00
Stefan Metzmacher
76232a40d8 s4:rpc_server/netlogon: don't use dcerpc_binding_handle_call_send/recv() directly
metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat Oct  2 03:11:38 UTC 2010 on sn-devel-104
2010-10-02 03:11:38 +00:00
Stefan Metzmacher
47b3d88a7d netlogon.idl: add missing flags to DSGETDC_VALID_FLAGS
metze
2010-10-02 02:31:05 +00:00
Andrew Bartlett
0ea3877935 s4-gensec Always honour the set server principal
The spengo code won't set this unless it is allowed to by this
same option, but other callers may need it.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Oct  2 02:27:39 UTC 2010 on sn-devel-104
2010-10-02 02:27:39 +00:00
Andrew Tridgell
23a8fad22b s4-drs: fixed comparison login in replicated renames
we need to ensure we only ever compare USNs from the same originating
invocation ID.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Oct  2 01:45:19 UTC 2010 on sn-devel-104
2010-10-02 01:45:19 +00:00
Andrew Tridgell
6e846ca1f3 s4-kcc: remove stale repsTo entries in the KCC
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-02 01:04:17 +00:00
Andrew Tridgell
faa993d95c autobuild: fixed tuple count for retry 2010-10-01 18:03:31 -07:00
Andrew Bartlett
87698dc2a1 s4-kerberos Don't regenerate key values for each alias in keytab
Instead, store the same key value under the multiple alias names.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sat Oct  2 00:16:52 UTC 2010 on sn-devel-104
2010-10-02 00:16:52 +00:00
Andrew Bartlett
7b9a6645b1 s4-kdc Rework 'allowed encryption types' handling in the KDC
All DCs and all krbtgt servers are forced to use AES, regardless
of the msDS-SecondaryKrbTgtNumber value.

Andrew Bartlett
2010-10-02 09:11:37 +10:00
Andrew Bartlett
a82e3abc70 s4-auth Add make_server_info_pac() to include 'resource domain' groups
Previously, our PAC code didn't include these groups into the
server_info from which we would eventually calculate the full
list of tokenGroups.

Andrew Bartlett
2010-10-02 09:11:37 +10:00
Andrew Bartlett
6488d5bc0b s4-auth Allocate domain SIDs under the sids array, not server_info
Andrew Bartlett
2010-10-02 09:11:37 +10:00
Andrew Bartlett
a68f4476f7 heimdal use returned server entry from HDB to compare realms
Some hdb modules (samba4) may change the case of the realm in
a returned result.  Use that to determine if it matches the krbtgt
realm also returned from the DB (the DB will return it in the 'right' case)

Andrew Bartlett
2010-10-02 09:11:37 +10:00
Günther Deschner
d17a6f0493 s3-spoolss: Strip off ", DrvConvert" and ",LocalOnly" in OpenPrinterEx as seen from Win7 clients.
These suffixes and their meaning are not documented (yet).

Guenther
2010-10-02 00:42:52 +02:00
Andreas Schneider
455bbd5e1e s3-spoolss: Fixed print job access. 2010-10-02 00:04:45 +02:00
Andreas Schneider
b3fd5e11e5 s3-spoolss: Fixed print_access_check server_info. 2010-10-02 00:04:45 +02:00
Steven Danneman
100843ac23 s3:smbd: Increase unsupported IOCTL debug message to 2
Even printing once per connection, level 0 was too spammy with
Windows clients frequently sending FSCTL_GET_OBJECT_ID which
is unsupported.
2010-10-01 13:31:33 -07:00
Steven Danneman
455fccf86b s3:events: Call all ready fd event handlers on each iteration of the main loop
Previously, only one fd handler was being called per main message loop
in all smbd child processes.

In the case where multiple fds are available for reading the fd
corresponding to the event closest to the beginning of the event list
would be run.  Obviously this is arbitrary and could cause unfairness.

Usually, the first event fd is the network socket, meaning heavy load
of client requests can starve out other fd events such as oplock
or notify upcalls from the kernel.

In this patch, I have changed the behavior of run_events() to unset
any fd that it has already called a handler function, as well
as decrement the number of fds that were returned from select().
This allows the caller of run_events() to iterate it, until all
available fds have been handled.

I then changed the main loop in smbd child processes to iterate
run_events().  This way, all available fds are handled on each wake
of select, while still checking for timed or signalled events between
each handler function call.  I also added an explicit check for
EINTR from select(), which previously was masked by the fact that
run_events() would handle any signal event before the return code
was checked.

This required a signature change to run_events() but all other callers
should have no change in their behavior.  I also fixed a bug in
run_events() where it could be called with a selrtn value of -1,
doing unecessary looping through the fd_event list when no fds were
available.

Also, remove the temporary echo handler hack, as all fds should be
treated fairly now.
2010-10-01 13:31:33 -07:00
Günther Deschner
229f5443b7 testprogs: print architecture used in win32 spoolss testsuite.
Guenther
2010-10-01 22:30:22 +02:00
Günther Deschner
a88a7c76de s3-dcerpc: no point for printing NDR twice for internal pipes in log level 10.
Guenther
2010-10-01 22:30:22 +02:00
Günther Deschner
0ff7e0c998 samba: share readline wrappers among all buildsystems.
Guenther
2010-10-01 22:30:22 +02:00
Günther Deschner
405b7d843f s3-readline: move cmd_history to smbclient, the only user.
Guenther
2010-10-01 22:30:22 +02:00
Günther Deschner
b38d0542e1 samba: share select wrappers.
Guenther
2010-10-01 22:30:22 +02:00
Andrew Tridgell
0adc1645e2 s4-auth: fixed a vagrind error when creating keytabs
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-01 13:08:23 -07:00
Andrew Tridgell
0111e80ea9 autobuild: revert a bit more of the subunit changes
still not quite right - we can enable this again once its fully tested
2010-10-01 13:08:22 -07:00
Andrew Tridgell
b75c1f57c2 autobuild: disable the subuit changes for now - they break error checking 2010-10-01 13:08:22 -07:00
Andrew Tridgell
afe78c23ad autobuild: fixed the tuples in the retry_task
Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Oct  1 18:22:22 UTC 2010 on sn-devel-104
2010-10-01 18:22:22 +00:00
Andrew Tridgell
2d66bb51ca autobuild: cwd is needed on all command types 2010-10-01 11:12:24 -07:00
Andrew Tridgell
f6bc4c08b1 s4-rpmd: fixed a use after realloc bug
we could use old_el after the base message had been re allocated, due
to adding timestamps. We need to re-find the element before using it

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-01 10:44:24 -07:00
Andrew Tridgell
4beff4d7ba s4-dsdb: fail the transaction instead of asserting on error
It is more useful to fail the transaction and give the user an error
message than to assert when we have an error in the repl_meta_data
module

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-01 10:44:24 -07:00
Jelmer Vernooij
9cdebd0ebc autobuild: Avoid unnecessary chdir() calls. 2010-10-01 18:49:42 +02:00
Jelmer Vernooij
c4ab2b38af autobuild: Output test results in subunit. 2010-10-01 18:49:40 +02:00
Jelmer Vernooij
21475df35d s3-selftest: fix prefix in subunit output. 2010-10-01 18:49:40 +02:00