1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

3965 Commits

Author SHA1 Message Date
Günther Deschner
202e8cc57e doserr: Add WERR_INVALID_DOMAIN_STATE and WERR_INVALID_DOMAIN_ROLE.
Guenther
(This used to be commit 91a55fc27dc100cf193cfa2613771312f018449e)
2008-04-14 15:48:23 +02:00
Volker Lendecke
13a60a4005 Remove namedpipe_transact fn pointer from smb_np_struct
(This used to be commit d1f82b7e67a791e19d08c682b607d82ae649feb4)
2008-04-14 14:16:58 +02:00
Michael Adam
01f4bd4f4d adt_tree: change pathtree_add to return WERR instead of bool.
Michael
(This used to be commit da45fb92f69221758f36db4cbb7d871e3ce60718)
2008-04-13 15:33:47 +02:00
Michael Adam
413c2e9b0a registry: remove the REGISTRY_HOOKS layer from the reghook cache.
There is no need to save the keyname again, we only need to
get the REGISTRY_OPS out of the pathtree.

Furthermore, this makes life easier, since we can now pass
in keynames as temporarily allocated strings.

Michael
(This used to be commit 2f9ee2f782c77ed99669af5ac2ba40cb0978f0da)
2008-04-13 01:43:42 +02:00
Günther Deschner
98abf71ff5 Add WERR_USER_ALREADY_EXISTS and WERR_PASSWORD_RESTRICTION.
Guenther
(This used to be commit eefd03d39b107598e9b0d1f35def7b17073d8ebc)
2008-04-12 18:30:14 +02:00
Günther Deschner
2938315633 Move some WERRORs down to the NERR_BASE block.
Guenther
(This used to be commit 2453375ee04f466800f53a0f2991d8d5dee0bd8e)
2008-04-12 18:29:13 +02:00
Stefan Metzmacher
dfb181ab73 dbwrap: add dbwrap_tdb2 backend
This backend can be used untill ctdb knows about real
transactions.

It stores a master tdb in a shared location and a readonly copy
on the local harddisk. Reads are always on the local tdb
and writes always on both. Change notify messages are send
to all message context, which ask for them. With the notifies
it's possible to just update the changed records, instead of
copying all records (which is the fallback).

You need to configure:

dbwrap:use_tdb2=yes
dbwrap_tdb2:master directory=/some/shared/path
dbwrap_tdb2:local directory=/var/lib/samba

metze
(This used to be commit aa6230de0d5f1875aa8c12c4fc017d3a40f90890)
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
3ae463ca69 messaging: add MSG_DBWRAP_TDB2_CHANGES flag
metze
(This used to be commit 7418c3ab1d8f18403f5a43817b2cc14e15090fca)
2008-04-12 09:14:08 +02:00
Stefan Metzmacher
c316c7ab73 messaging: add FLAG_MSG_DBWRAP message class flag
metze
(This used to be commit ee6325495f48bab43a37d740a6eca57192004d57)
2008-04-12 09:14:08 +02:00
Volker Lendecke
c751386bb8 Remove some write-only fstrings
(This used to be commit aacb07b1b0f674b8cb92347ef4b4dd1e7808dde8)
2008-04-11 22:21:04 +02:00
Günther Deschner
0f50f207b7 Add MAX_NERR define.
Guenther
(This used to be commit 729eda95401e63feabb3ed329c6d2888dabe1d68)
2008-04-10 21:19:30 +02:00
Günther Deschner
e49200c1a2 Add CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS define.
This allows to switch on the cli->fallback_after_kerberos switch.

Guenther
(This used to be commit 15ba45e567d910c1b2336dcc0c475e12b082f30f)
2008-04-08 14:25:13 +02:00
Stefan Metzmacher
206e7eeb6f smbd: make it possible to change the write time delay for testing
metze
(This used to be commit df8c100c2b53575a0d425a2daf52e2d59904746a)
2008-04-07 12:29:31 +02:00
Stefan Metzmacher
d03453864a smbd: implement the strange write time update logic
We now never call file_ntimes() directly, every update
is done via smb_set_file_time().

This let samba3 pass the BASE-DELAYWRITE test.

The write time is only updated 2 seconds after the
first write() on any open handle to the current time
(not the time of the first write).

Each handle which had write requests updates the write
time to the current time on close().

If the write time is set explicit via setfileinfo or setpathinfo
the write time is visible directly and a following close
on the same handle doesn't update the write time.

metze
(This used to be commit 2eab212ea2e1bfd8fa716c2c89b2c042f7ba12ea)
2008-04-07 12:29:26 +02:00
Stefan Metzmacher
2ccf50256e locking: store the write time in the locking.tdb
This is needed to implement the strange write time update
logic later. We need to store 2 time timestamps to
distinguish between the time the file system had before
the first client opened the file and a forced timestamp update.

metze
(This used to be commit 6aaa2ce0eeb46f6735ec984a2e7aadde7a7f456d)
2008-04-07 12:29:25 +02:00
Günther Deschner
b028fd3f8c Add NT_STATUS_RPC_CANNOT_SUPPORT.
Guenther
(This used to be commit 9e15ce03ca66a0b5ffdb39dd2faaad6e0f967e31)
2008-04-03 00:26:55 +02:00
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 0970369ca0cb9ae465cff40e5c75739824daf1d0)
2008-04-02 11:12:47 +02:00
Gerald W. Carter
8940fd09a6 Patch from Nicholas Brealey <nick@brealey.org> to distinguish between WinXP and WinXP64.
Defines a new value for the %a variable when detecting a Windows XP 64-bit client.
(This used to be commit 0c94918fb52c5345ce30490046b79f81712c30bf)
2008-03-31 14:34:43 -05:00
Volker Lendecke
2aa7dc8bc6 Fix a confusing variable name
(This used to be commit 32c992e9573c9af34cd142393287e2f3538d2dd9)
2008-03-28 13:44:30 +01:00
Günther Deschner
48e238de9b Remove last reference to rpc_netlogon.h.
Guenther
(This used to be commit 085887eed71ed1ffdb30100d83763e671ea10eee)
2008-03-27 22:18:04 +01:00
Günther Deschner
de34a7d303 Remove unused marshalling for Netlogon Lockout String.
Guenther
(This used to be commit d87133d0516294e7d5f123e3bb2e93c179c72677)
2008-03-27 21:58:11 +01:00
Stefan Metzmacher
474916b70c dbwrap: add db_open_trans()
This should be used when transactions are wanted.
For now it's just a wrapper of db_open(), but this
will change.

metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 74a070b8a24fea1009e557f711b76fc14e8961dc)
2008-03-27 18:14:56 +01:00
Günther Deschner
9d9a9e2353 Remove unused DS_DOMAIN_CONTROLLER_INFO struct.
Guenther
(This used to be commit 7eb4f6f6f9f27cda3d512f4042e36d70d0b26b6b)
2008-03-27 13:06:43 +01:00
Günther Deschner
ad19eb4ab0 Move netr_LogonLevel flags to IDL, rename old one to netr_LogonInfo.
Guenther
(This used to be commit 1fc98ee431d3ebe0c5d8bed55dcb788c16228ddd)
2008-03-27 13:06:43 +01:00
Günther Deschner
d470243c74 Move DSGETDC_VALID_FLAGS to IDL.
Guenther
(This used to be commit a14b00ee19c6dc23ff687e57e8e6340702056317)
2008-03-27 13:06:43 +01:00
Günther Deschner
cba8dcf759 Move LOGON_KRB5_FAIL_CLOCK_SKEW to winbindd_pam.
Guenther
(This used to be commit fa64c76ac8e54f385f277b5b39be70075b2eeee0)
2008-03-27 13:06:43 +01:00
Günther Deschner
56e5187d84 Move the known NETLOGON_CONTROL reply flags to IDL.
Guenther
(This used to be commit 4bf2a17c2b9abff45afd50ea93b96b2a080d9168)
2008-03-27 13:06:43 +01:00
Günther Deschner
6f7875abee Move inline comment about MSV1_0 flags to IDL.
Guenther
(This used to be commit b22167fb608d3948f1473a5f3dee9e8d18e282e3)
2008-03-27 13:06:43 +01:00
Günther Deschner
82ab936f6a Fill in IDL for PNP_GetDeviceRegProp.
Guenther
(This used to be commit b1b6e93aa1f1b6d80969b6e5dd8f723e21ae8ce8)
2008-03-26 12:17:16 +01:00
Günther Deschner
ce8da6978e Comment out some svcctl headers which are now defined in IDL.
Guenther
(This used to be commit 2201a8118c6abae3425dd5728af129bb8f71b564)
2008-03-26 12:17:16 +01:00
Michael Adam
f1c844c168 util_tdb: remove trivial and unused tdb_wipe().
It has been replaced by tdb_wipe_all().

Michael
(This used to be commit cdde2e4eaca51d51f036ad99d55df7bfd6535b03)
2008-03-26 11:15:03 +01:00
Michael Adam
6efe4873dc util_tdb: make the _byblob fetch/store functions public again.
Users of these are currently being written...

Michael
(This used to be commit 1c51bec5318bad085c09931aa7e8f72f41d103fe)
2008-03-26 10:50:35 +01:00
Michael Adam
aaa5971315 util_tdb: add a wrapper tdb_wipe() for traverse with tdb_traverse_delete_fn().
Replace all callers of traverse with this tdb_traverse_delete_fn() and
don't export tdb_traverse_delete_fn() anymore.

Michael
(This used to be commit d4be4e30cd8c3bdc303da30e42280f892a45a8c9)
2008-03-25 15:55:34 +01:00
Michael Adam
2d02e5a16d util_tdb: add the tdb_pack_append() prototype to util_tdb.h
This function is currently not used but seems useful.

Michael
(This used to be commit 48149a954c1e737c9863cfa0991ab9bfc246c6da)
2008-03-25 15:55:34 +01:00
Michael Adam
5e68cbd2e1 util_tdb: group prototypes in util_tdb.h thematically
Michael
(This used to be commit 4b9231d33eaea2ada5d67cc1d959df2b671e7bb9)
2008-03-25 15:55:34 +01:00
Michael Adam
32691a7022 build: don't autogenerate prototypes for util_tdb and dbwrap anymore.
Stick to hand-written headers (that are there anyways).
Add some missing prototypes to util_tdb.h and dbwrap.h.

I did not bother to add a header for each single dbwrap backend
open function but put the prototypes for the open functions into
the central dbwrap.h.

Michael
(This used to be commit edf4dbed27a3c63c04e8110e75cdb76e31627eb6)
2008-03-25 15:55:34 +01:00
Günther Deschner
5fdf4b8f4a Remove remaining old srvsvc client and server rpc code entirely.
Guenther
(This used to be commit a5f0186f70abe8dba650265219e69ce5ca2fb642)
2008-03-21 04:16:22 +01:00
Günther Deschner
1dc52e8fbf Move MAX.*ENTRY definitions out of old rpc srvsvc parsing code.
Guenther
(This used to be commit 4e36657275caa77bc9712fe627aeb6fe4aefc151)
2008-03-21 04:16:21 +01:00
Günther Deschner
286a6282e2 Remove unused marshalling for SRV_NET_SESS_ENUM.
Guenther
(This used to be commit 54554683d63575cfdfa24f89952737ccf7ae5bc0)
2008-03-21 04:16:21 +01:00
Günther Deschner
10f40399e0 Remove unused marshalling for SRV_NET_CONN_ENUM.
Guenther
(This used to be commit 51467443f70a53c3290f26f94cdaf8a64f58c2af)
2008-03-21 04:16:21 +01:00
Günther Deschner
8ca8dad7a1 Remove unused marshalling for SVCCTL_ENUM_DEPENDENT_SERVICES.
Guenther
(This used to be commit 5838d81346a51ef1e996bab938533ae2097f7e47)
2008-03-20 01:40:04 +01:00
Günther Deschner
a307107c3c Remove unused marshalling for SRV_NET_FILE_ENUM.
Guenther
(This used to be commit fcdc09674571b8e81233acc9e8dc8651b66cd21d)
2008-03-19 02:18:51 +01:00
Volker Lendecke
16cbc22a99 Fix bug 5334
I did not test with a zero length file :-)
(This used to be commit 7d7a73944c2dcf078f7bc8de65d575f32f9aa851)
2008-03-18 13:49:46 +01:00
Marc VanHeyningen
e06aa46b9f Coverity fixes
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
2008-03-17 20:52:25 +01:00
Michael Adam
670418c116 Move libnet_conf to a library lib/smbconf/ of its own, fixing the api.
The libnet_conf code to access the registry based configuration has
become more of a library used in several places in samba (e.g. loadparm)
than an abstraction of "net conf". So I move it to a location lib/smbconf/.

In the same breath, the api is fixed (not generated by make proto anymore).

Michael
(This used to be commit 5315ef41f403b96715dd68b512e9e74662e2910a)
2008-03-17 18:03:02 +01:00
Günther Deschner
5e86a172a5 For convenience reasons, always create cli->srv_name_slash in the rpc_client.
Guenther
(This used to be commit 6363c383d6989d2dfb2ee488ffa7aeb128c5385b)
2008-03-12 16:19:56 +01:00
Günther Deschner
08188dc72e Remove unused marshalling for SRV_NET_DISK_ENUM.
Guenther
(This used to be commit 4928f1efceb8cb0b0fda813e6f43f668084caa79)
2008-03-12 16:18:54 +01:00
Volker Lendecke
1ebfc66b2c Use a separate tdb for mutexes
Another preparation to convert secrets.c to dbwrap: The dbwrap API does not
provide a sane tdb_lock_with_timeout abstraction. In the clustered case the DC
mutex is needed per-node anyway, so it is perfectly fine to use a local mutex
only.
(This used to be commit f94a63cd8f94490780ad9331da229c0bcb2ca5d6)
2008-03-10 21:08:45 +01:00
Volker Lendecke
541b8dec4e Add transactions to the dbwrap API
Only filled in for tdb so far, for rbt it's pointless, and ctdb itself needs to
be extended
(This used to be commit 0a55e018dd68af06d84332d54148bbfb0b510b22)
2008-03-10 21:08:44 +01:00
Günther Deschner
663d147aca Remove unused marshalling for SRV_NET_SESS_DEL.
Guenther
(This used to be commit 3bb9ec441ae9702007a5442c52bb9476f928810f)
2008-03-10 16:50:27 +01:00