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

26739 Commits

Author SHA1 Message Date
Günther Deschner
99d3590455 Fix NETLOGON credential chain with Windows 2008 all over the place.
In order to avoid receiving NT_STATUS_DOWNGRADE_DETECTED from a w2k8
netr_ServerAuthenticate2 reply, we need to start with the AD netlogon negotiate
flags everywhere (not only when running in security=ads). Only for NT4 we need
to do a downgrade to the returned negotiate flags.

Tested with w2k8, w2ksp4, w2k3r2 and nt4sp6.

Guenther
(This used to be commit 0970369ca0)
2008-04-02 11:12:47 +02:00
Stefan Metzmacher
5b07337cc5 smbd: always close the base_fsp even if the real close returned an error
Otherwise we may end up with share mode entry without an open file.

Volker, Jeremy: please check...

metze
(This used to be commit 547eacf605)
2008-04-01 18:47:42 +02:00
Stefan Metzmacher
175622fa58 wbinfo: use wbcInterfaceDetails()
metze
(This used to be commit ff87260f12)
2008-04-01 18:30:10 +02:00
Stefan Metzmacher
949a3823f2 libwbclient: add wbcInterfaceDetails()
metze
(This used to be commit fee3806326)
2008-04-01 18:30:10 +02:00
Stefan Metzmacher
b6737afbc7 libwbclient: use WBC_ERROR_IS_OK() in BAIL_ON_WBC_ERROR() macro
metze
(This used to be commit de2e8d5db9)
2008-04-01 18:30:10 +02:00
Michael Adam
8d7257453c test: add diagnostic message to net_registry test.
Michael
(This used to be commit c04a234f8f)
2008-04-01 16:16:55 +02:00
Michael Adam
048dcbb75f test: fix net_registry test "set value to different type" to track error count
missing backslash in call... :-}

Michael
(This used to be commit 8f0c25f01f)
2008-04-01 16:16:55 +02:00
Michael Adam
fd64e6de8c test: some cosmetics to net_registry tests.
Michael
(This used to be commit dba9db5ae6)
2008-04-01 16:16:55 +02:00
Michael Adam
4a99bce736 test: fix net_registry tests to correctly capture output of commands inside one test
so that failure output is not clobbered by  output of previous
successful commands.

Michael
(This used to be commit cb3dafe5fd)
2008-04-01 16:16:55 +02:00
Michael Adam
a63c396679 test: fix use of printf in net_registry tests.
actually 'printf "%s\n"' is the proper replacement of 'echo -e'

Michael
(This used to be commit 388a40931f)
2008-04-01 16:16:55 +02:00
Michael Adam
dffcb461fb po/genmsg: be more portable, use 'printf "%s"' instead of 'echo -n'
Michael
(This used to be commit 0bd50e450b)
2008-04-01 16:16:55 +02:00
Michael Adam
36ade6136d mkversion: be more portable, use 'print "%s"' instead of 'echo -n'
Michael
(This used to be commit 7a23dab1ea)
2008-04-01 16:16:55 +02:00
Michael Adam
808378cda2 installswat: be more portable, use 'printf "%s"' instead of 'echo -n'
Michael
(This used to be commit 8b015c91c9)
2008-04-01 16:16:55 +02:00
Michael Adam
1cd7e36ace configure: be more portable, use 'printf "%s"' instead of "echo -n"
Michael
(This used to be commit 06dfb0cf7c)
2008-04-01 16:16:55 +02:00
Michael Adam
52b463917e test: be more portable. replace 'echo -n' by 'printf "%s"' in test_functions.sh
Michael
(This used to be commit c0c4118427)
2008-04-01 16:16:55 +02:00
Michael Adam
e61e4eb4e5 test: be more portable: replace 'echo -n' by 'printf "%s"' in selftest.sh
Michael
(This used to be commit b6122406fe)
2008-04-01 16:16:54 +02:00
Stefan Metzmacher
dc83b956b9 smbd: ignore nttrans renames as w2k3 does
This lets us pass the RAW-RENAME test.

metze

Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be commit 2d50a1fef0)
2008-04-01 15:25:47 +02:00
Stefan Metzmacher
7704d4fb58 account_pol: use db_open_trans()
metze
(This used to be commit 888c2802b7)
2008-04-01 14:04:23 +02:00
Stefan Metzmacher
0d234bd3c2 account_pol: use dbwrap_trans_store_uint32()
metze
(This used to be commit b1d63c8c11)
2008-04-01 14:04:23 +02:00
Volker Lendecke
9aa8d0c627 Convert account_pol.tdb to dbwrap
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 0b36871a0d)
2008-04-01 14:04:23 +02:00
Stefan Metzmacher
20dc21f474 dbwrap: fix a confusing "tdb_chainunlock failed" message
Unlock before we cancel the transaction...

metze
(This used to be commit d70a8e9c41)
2008-04-01 14:04:23 +02:00
Stefan Metzmacher
3f076ab773 dbwrap: add dbwrap_trans_store_uint32()
metze
(This used to be commit 9e739b4c99)
2008-04-01 14:04:23 +02:00
Volker Lendecke
92e6d07ad9 Add dbwrap_trans_*_bystring
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 2cf2684a11)
2008-04-01 14:04:22 +02:00
Volker Lendecke
16198dc51e Convert dbwrap_trans_delete to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit dead193f46)
2008-04-01 14:04:22 +02:00
Volker Lendecke
fcdfff1cc8 Convert dbwrap_trans_store to NTSTATUS
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 5f4de856af)
2008-04-01 14:04:22 +02:00
Volker Lendecke
d20f88c603 Add dbwrap_[fetch|store]_uint32
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit f1dd915ce8)
2008-04-01 14:04:22 +02:00
Stefan Metzmacher
2fe572d043 sharesec: use db_open_trans()
metze
(This used to be commit 1c59142ccc)
2008-04-01 14:04:21 +02:00
Volker Lendecke
f8c569e066 Convert share_info.tdb to dbwrap
(This used to be commit bc9b4c43b8)
2008-04-01 14:04:21 +02:00
Stefan Metzmacher
e144a8b15f mapping_tdb: use the correct sid for the key creation
metze
(This used to be commit 0d221a3f0a)
2008-04-01 14:04:21 +02:00
Stefan Metzmacher
a114125f89 mapping_tdb: use db_open_trans()
metze
(This used to be commit 16d18df0d0)
2008-04-01 14:04:21 +02:00
Volker Lendecke
04ab839170 Protect group_mapping.tdb ops with transactions
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit d702ed73c1)
2008-04-01 14:04:21 +02:00
Stefan Metzmacher
8957f6b0cf pdb_tdb: use != 0 instead off == -1 for dbwrap functions
metze
(This used to be commit d4826a0136)
2008-04-01 14:04:20 +02:00
Stefan Metzmacher
663eb087e6 passdb: guard pdb_generate_sam_sid() with a transaction
This prevents possible races with some dbwrap backends

metze
(This used to be commit 9322442510)
2008-04-01 14:04:20 +02:00
Stefan Metzmacher
a5f3911d70 passdb/secrets: add secrets_db_ctx() to get the db_context
metze
(This used to be commit 986bc7e8b2)
2008-04-01 14:04:20 +02:00
Stefan Metzmacher
b8dcade819 regdb: let regdb_fetch_keys() handle NULL and failure cases in the same way and return -1
metze
(This used to be commit 983fd58805)
2008-04-01 14:04:20 +02:00
Stefan Metzmacher
b55942a763 regdb: get the seqnum before the record, to not miss something
metze
(This used to be commit c214107bd9)
2008-04-01 14:04:20 +02:00
Stefan Metzmacher
2b21b02c6a regdb: use dbwrap->fetch() instead of fetch_locked() for readonly access"
This is the fixed version of commit 5c28c74aa0.

metze
(This used to be commit 924acd7f69)
2008-04-01 14:04:20 +02:00
Michael Adam
41281d3525 test: make registry tests more portable: protect some grep patterns in ' '.
Michael
(This used to be commit 1cb3b2f065)
2008-04-01 13:43:30 +02:00
Michael Adam
ff08b55b45 test: make registry tests more portable: use 'printf "%s"' instead of 'echo -e'
Michael
(This used to be commit 5c1b7ee5c1)
2008-04-01 13:43:30 +02:00
Jeremy Allison
8b04a33500 Ok, final move of this code :-). I think I've found the correct
place for it now where it will cause minimal disruption (only
call the extra message_dispatch just before reading the next
smb off the wire).
Jeremy.
(This used to be commit da2c19c481)
2008-03-31 17:01:27 -07:00
Jeremy Allison
6913f10134 Move the message_dispatch() call after the check for errno on
the select return. We don't want the call to message_dispatch
to mess up the errno value.
Jeremy.
(This used to be commit 26a74d01bb)
2008-03-31 16:56:21 -07:00
Jeremy Allison
e11cd466e1 Reduce the race condition in Samba4 in RAW-RENAME test. We rename a file
using trans2 setfileinfo on one connection, and then check the
file name has changed on the other. In Samba we achieve this by
sending a local message to the other process. This change causes
us to re-scan for incoming messages after we've woken up from the
select (which is cheap if there are no pending messages). This reduces
the race significantly. Volker please review.
Jeremy.
(This used to be commit a7499e994a)
2008-03-31 16:46:20 -07:00
Günther Deschner
c523c2c3e6 Fix build of rpcclient.
Guenther
(This used to be commit 3cb1cdee93)
2008-04-01 00:32:23 +02:00
Günther Deschner
edcbb657de Fix build warning.
Guenther
(This used to be commit c40522cfe9)
2008-04-01 00:26:33 +02:00
Günther Deschner
003472ae23 Fix SRVSVC NetShareInfo level 502 client-side.
Guenther
(This used to be commit 8b4eac0ab1)
2008-04-01 00:26:32 +02:00
Günther Deschner
a3991c9ef4 Fix SRVSVC ShareInfo level 502 server side handling.
Guenther
(This used to be commit 776facabf6)
2008-04-01 00:26:32 +02:00
Günther Deschner
493d61a1b3 Re-run make idl.
Guenther
(This used to be commit 3adf82554a)
2008-04-01 00:26:32 +02:00
Günther Deschner
f3fcf54c58 Fix IDL for srvsvc_NetShareInfo502. It does indeed contain a sec_desc_buf.
Guenther
(This used to be commit da7f006539)
2008-04-01 00:26:32 +02:00
Günther Deschner
9afc225b37 Fix SRVSVC ShareInfo max_users handling server side.
Guenther
(This used to be commit b4d944e724)
2008-04-01 00:26:32 +02:00
Günther Deschner
d6426f1f9a Re-run make idl.
Guenther
(This used to be commit 1b6083449f)
2008-04-01 00:26:32 +02:00