Andrew Tridgell
e313667983
s4-dsdb: added samdb_find_site_for_computer() and samdb_find_ntdsguid_for_computer()
...
these will be used by the new RODC dns update code
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-27 22:55:04 -07:00
Andrew Tridgell
c972790249
s4-auth: removed unused variable dom_sid
2010-09-27 22:55:04 -07:00
Volker Lendecke
94dc2c106b
s3: Lift smbd_messaging_context() from open_sockets_smbd()
2010-09-28 07:36:18 +02:00
Volker Lendecke
790ad3d1a4
s3: Remove two calls to procid_self()
2010-09-28 07:36:18 +02:00
Volker Lendecke
886b5b67ee
s3: Remove talloc_autofree_context() from myhostname()
...
No destructor needed, so we can as well use the NULL context
2010-09-28 07:36:18 +02:00
Volker Lendecke
49b4d2e652
s3: Remove some remaining files.c globals to sconn
2010-09-28 07:36:18 +02:00
Volker Lendecke
d26d79b640
s3: Remove talloc_autofree_context() from files.c
2010-09-28 07:36:18 +02:00
Volker Lendecke
eadc4b5b78
s3: Lift smbd_server_conn from file_find_fd
2010-09-28 07:36:18 +02:00
Volker Lendecke
54f7b70212
s3: Remove smbd_server_conn from file_fsp
2010-09-28 07:36:18 +02:00
Volker Lendecke
3009178ee5
s3: Slightly simplify file_fnum
...
req==NULL should never happen, see the comment
2010-09-28 07:36:18 +02:00
Volker Lendecke
e57811440a
s3: Remove smbd_server_conn from file_sync_all
2010-09-28 07:36:17 +02:00
Volker Lendecke
e2222fc19c
s3: Remove smbd_server_conn from file_find_subpath
2010-09-28 07:36:17 +02:00
Volker Lendecke
75c6e0e5c7
s3: Lift smbd_server_conn from file_find_di_first
2010-09-28 07:36:17 +02:00
Volker Lendecke
b448e42de4
s3: Lift smbd_server_conn from file_find_dif
2010-09-28 07:36:16 +02:00
Volker Lendecke
fb8686962a
s3: Remove smbd_server_conn from files_forall
2010-09-28 07:36:16 +02:00
Volker Lendecke
9fc9ff9bfa
s3: Remove smbd_server_conn from file_close_user
2010-09-28 07:36:16 +02:00
Volker Lendecke
25ca1cd1a8
s3: Remove smbd_server_conn from file_close_pid
2010-09-28 07:36:16 +02:00
Volker Lendecke
6a1c4bad13
s3: Remove smbd_server_conn from file_close_conn
2010-09-28 07:36:16 +02:00
Volker Lendecke
c5d2799543
s3: Remove smbd_server_conn from file_new and file_free
2010-09-28 07:36:15 +02:00
Volker Lendecke
5276608151
s3: Lift smbd_server_conn from file_fnum
2010-09-28 07:36:15 +02:00
Volker Lendecke
5e26e4d30f
s3: Move "Files" to smbd_server_connection
2010-09-28 07:36:15 +02:00
Volker Lendecke
f83e7d8f8c
s3: Remove "server_fd" global variable
2010-09-28 07:36:15 +02:00
Volker Lendecke
93adf70d1a
s3: Remove talloc_autofree_context() from receive_unexpected()
...
This is freed in this routine a few lines down
2010-09-28 07:36:15 +02:00
Stefan Metzmacher
491102c1ce
s4:gensec_tstream: remove plain socket handling
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Sep 28 04:54:24 UTC 2010 on sn-devel-104
2010-09-28 04:54:24 +00:00
Stefan Metzmacher
ca360fba10
s4:lib/tls: add gnutls backend for tstream
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Sep 28 02:29:42 UTC 2010 on sn-devel-104
2010-09-28 02:29:42 +00:00
Stefan Metzmacher
381f0fcd19
s4:gensec: add gensec_create_tstream()
...
Based on the initial patch from Andreas Schneider <asn@redhat.com>.
metze
2010-09-28 03:48:11 +02:00
Stefan Metzmacher
d6c48b4a5f
s4:wrepl_server: use SOCKET_FLAG_NOCLOSE instead of a dup()
...
The key thing is that we might have to turn the incomming
connection into a outgoing connection.
This change makes sense anyway, because we donate the fd to
tstream.
metze
2010-09-28 03:48:10 +02:00
Stefan Metzmacher
9d8b886b3e
s4:rpc_server: use SOCKET_FLAG_NOCLOSE to avoid calling close() on the socket fd twice.
...
metze
2010-09-28 03:48:10 +02:00
Jeremy Allison
d7c09f312e
Add torture test BAD-NBT-SESSION as regression fix for bug 7698 - Assert causes smbd to panic on invalid NetBIOS session request.
...
Jeremy.
2010-09-27 18:24:53 -07:00
Jeremy Allison
a738f5b846
Small tweak to bugfix for 7698 - Assert causes smbd to panic on invalid NetBIOS session request.
...
Don't just fail to reply on a bad NBT name, just don't do the
internal action.
Jeremy.
2010-09-27 18:24:53 -07:00
Stefan Metzmacher
38f505530b
tsocket: make sure we delete the fd event before calling close()
...
We got random double free errors, when getting events from
epoll_wait() and try to dereference the private talloc pointer
attached to it.
Before doing the close() in the tstream_disconnect_send() function
we need to delete the fd event.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Sep 28 01:02:55 UTC 2010 on sn-devel-104
2010-09-28 01:02:55 +00:00
Jeremy Allison
f98d217514
Change to using TDB_INCOMPATIBLE_HASH (the jenkins hash) on all
...
TDB_CLEAR_IF_FIRST tdb's. For tdb's like gencache where we open
without CLEAR_IF_FIRST and then with CLEAR_IF_FIRST if corrupt
this is still safe to use as if opening an existing tdb the new
hash will be ignored - it's only used on creating a new tdb not
opening an old one.
Jeremy.
2010-09-27 17:18:54 -07:00
Andrew Tridgell
6676142347
s4-ildap: two more places that need talloc_reparent()
...
these contexts can have references
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Sep 28 00:04:03 UTC 2010 on sn-devel-104
2010-09-28 00:04:03 +00:00
Andrew Tridgell
396cdd6343
s4-kcc: don't print "Testing kcctpl_create_intersite_connections"
...
log level 0 is excessive for this!
2010-09-27 23:18:23 +00:00
Andrew Tridgell
8e1a3c8cca
s4-drs: make getncchanges debug less verbose
...
quieten make test a little
2010-09-27 23:18:23 +00:00
Andrew Tridgell
8edf3d7131
s4-dns: avoid search domains expansion in DNS resolver
...
add a '.' if the name contains a '.' already, but not at the end
2010-09-27 23:18:23 +00:00
Andrew Tridgell
43d0c2e9ea
heimdal: avoid DNS search domain expansion
...
When you have a domain search list in resolv.conf, and one of the DNS
servers for a searched domain is uncontactable then we would timeout
resolving DNS names.
Avoid this by adding a '.' to the hostname if the hostname already has
a '.' in it, which we assume to mean it is fully qualified.
2010-09-27 23:18:23 +00:00
Günther Deschner
48adfb264f
samr: add three new ACB flags to IDL.
...
Guenther
2010-09-28 01:17:16 +02:00
Günther Deschner
77d4c28032
s3-spoolss: Fix _spoolss_EnumPrintProcDataTypes error handling
2010-09-28 01:17:16 +02:00
Günther Deschner
93d7230d25
s4-smbtorture: rework spoolss_EnumPrintProcDataTypes test.
...
Guenther
2010-09-28 01:17:13 +02:00
Günther Deschner
2921888a08
s3-spoolss: Fix _spoolss_EnumPrintProcessors error handling
2010-09-28 01:17:12 +02:00
Günther Deschner
a335848a88
s4-smbtorture: rework test_EnumPrintProcessors to let it test more combinations.
...
Guenther
2010-09-28 01:17:09 +02:00
Günther Deschner
0e1588aa98
s3-waf: add NDR_PERFCOUNT subsystem.
...
Guenther
2010-09-28 01:16:48 +02:00
Andrew Tridgell
7fbe700753
s4-ildap: fixed a talloc_steal with references error
...
We need talloc_reparent() instead
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Sep 27 20:38:00 UTC 2010 on sn-devel-104
2010-09-27 20:38:00 +00:00
Nadezhda Ivanova
aeedd29d39
s4-ldb: Added ldb_request_replace_control
...
It is the same as ldb_request_add_control, except it will replace
an existing control.
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Sep 27 19:00:38 UTC 2010 on sn-devel-104
2010-09-27 19:00:38 +00:00
Anatoliy Atanasov
2cf0525b23
s4/irpc: Add security token to the binding handle when doing irp call forwarding
2010-09-27 09:59:21 -07:00
Anatoliy Atanasov
ed7bbc993d
s4/irpc: Add function to add security token to the binding handle
2010-09-27 09:59:21 -07:00
Stefan Metzmacher
d9d4ded71a
s4:irpc: optionaly pass the security_token via IRPC requests.
...
metze
2010-09-27 09:59:21 -07:00
Volker Lendecke
3235f44ac4
s3: Make file_fnum static
2010-09-27 18:14:47 +02:00
Volker Lendecke
f1c1959f13
s3: Remove some unused code
2010-09-27 18:14:47 +02:00