1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

3984 Commits

Author SHA1 Message Date
Günther Deschner
b11a5e70d3 errors: add WERR_INVALID_DOMAINNAME.
Guenther
2008-04-25 14:49:31 +02:00
Volker Lendecke
3433f430b0 Introduce a redirection for ncacn_np and ncacn_ip_tcp in rpc_pipe_client
Should be no functional change, just a change in the data structure
2008-04-25 11:12:52 +02:00
Volker Lendecke
f9bc336aff Make use of rpccli_xxx_bind_data 2008-04-25 11:12:51 +02:00
Volker Lendecke
42de50d2cd Move user/domain from rpc_pipe_client to cli_pipe_auth_data 2008-04-25 11:12:50 +02:00
Volker Lendecke
f665afaaa3 Refactoring: Make cli_pipe_auth_data a pointer off rpc_pipe_client 2008-04-25 11:12:50 +02:00
Volker Lendecke
3d8c2a47e6 Remove the "pwd" struct from rpc_pipe_client
The only user of this was decrypt_trustdom_secret, and this only needs the NT
hash anyway.
2008-04-21 23:36:05 +02:00
Günther Deschner
538eefe22a cldap: avoid duplicate definitions so remove ads_cldap.h.
Guenther
2008-04-21 20:21:40 +02:00
Michael Adam
1429453551 Remove redundant parameter fd from SMB_VFS_CLOSE().
Now all those redundant fd's have vanished from the VFS API.

Michael
2008-04-21 00:22:42 +02:00
Volker Lendecke
45be749ed6 Refactoring: Move stuff around for creating a pipe 2008-04-20 14:08:10 +02:00
Volker Lendecke
4840febcd4 Remove the pipe_idx variable from rpc_pipe_client 2008-04-20 11:47:33 +02:00
Volker Lendecke
a9061e52e1 Move srv_name_slash from cli_state to rpc_pipe_client 2008-04-20 00:14:13 +02:00
Volker Lendecke
783afab9c8 Add "desthost" to rpc_pipe_client
This reduces the dependency on cli_state
2008-04-20 00:13:09 +02:00
Volker Lendecke
a6d74a5a56 Refactoring: Make struct rpc_pipe_client its own talloc parent 2008-04-20 00:12:52 +02:00
Jelmer Vernooij
428654b473 rpc_parse: Use UUIDs from librpc/gen_ndr/ when possible to reduce
duplication.
2008-04-17 17:54:32 +02:00
Günther Deschner
554dcfdab0 IDL: build generated nbt code.
Guenther
2008-04-17 14:55:15 +02:00
Jelmer Vernooij
3501778242 Add simple implementation of several functions in the Samba 4 RPC
library on top of the Samba 3 RPC library:

 * dcerpc_pipe_connect
 * dcerpc_ndr_request_recv
 * dcerpc_ndr_request_send

These are the main functions used by the generated client calls in Samba
4.
2008-04-17 10:58:10 +02:00
Günther Deschner
82803186fe errors: Add WERR_NO_SUCH_USER.
Guenther
2008-04-16 02:37:27 +02:00
Günther Deschner
dc165e1c80 errors: Add WERR_NONE_MAPPED.
Guenther
2008-04-16 02:23:20 +02:00
Jelmer Vernooij
7bea00dca1 Reconcile ndr_syntax_id used by pidl-generated code and Samba3's RFC_IFACE. 2008-04-15 20:26:52 +02:00
Günther Deschner
91a55fc27d doserr: Add WERR_INVALID_DOMAIN_STATE and WERR_INVALID_DOMAIN_ROLE.
Guenther
2008-04-14 15:48:23 +02:00
Volker Lendecke
d1f82b7e67 Remove namedpipe_transact fn pointer from smb_np_struct 2008-04-14 14:16:58 +02:00
Michael Adam
da45fb92f6 adt_tree: change pathtree_add to return WERR instead of bool.
Michael
2008-04-13 15:33:47 +02:00
Michael Adam
2f9ee2f782 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
2008-04-13 01:43:42 +02:00
Günther Deschner
eefd03d39b Add WERR_USER_ALREADY_EXISTS and WERR_PASSWORD_RESTRICTION.
Guenther
2008-04-12 18:30:14 +02:00
Günther Deschner
2453375ee0 Move some WERRORs down to the NERR_BASE block.
Guenther
2008-04-12 18:29:13 +02:00
Stefan Metzmacher
aa6230de0d 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
2008-04-12 09:14:09 +02:00
Stefan Metzmacher
7418c3ab1d messaging: add MSG_DBWRAP_TDB2_CHANGES flag
metze
2008-04-12 09:14:08 +02:00
Stefan Metzmacher
ee6325495f messaging: add FLAG_MSG_DBWRAP message class flag
metze
2008-04-12 09:14:08 +02:00
Volker Lendecke
aacb07b1b0 Remove some write-only fstrings 2008-04-11 22:21:04 +02:00
Günther Deschner
729eda9540 Add MAX_NERR define.
Guenther
2008-04-10 21:19:30 +02:00
Günther Deschner
15ba45e567 Add CLI_FULL_CONNECTION_FALLBACK_AFTER_KERBEROS define.
This allows to switch on the cli->fallback_after_kerberos switch.

Guenther
2008-04-08 14:25:13 +02:00
Stefan Metzmacher
df8c100c2b smbd: make it possible to change the write time delay for testing
metze
2008-04-07 12:29:31 +02:00
Stefan Metzmacher
2eab212ea2 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
2008-04-07 12:29:26 +02:00
Stefan Metzmacher
6aaa2ce0ee 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
2008-04-07 12:29:25 +02:00
Günther Deschner
9e15ce03ca Add NT_STATUS_RPC_CANNOT_SUPPORT.
Guenther
2008-04-03 00:26:55 +02:00
Günther Deschner
0970369ca0 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
2008-04-02 11:12:47 +02:00
Gerald W. Carter
0c94918fb5 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.
2008-03-31 14:34:43 -05:00
Volker Lendecke
32c992e957 Fix a confusing variable name 2008-03-28 13:44:30 +01:00
Günther Deschner
085887eed7 Remove last reference to rpc_netlogon.h.
Guenther
2008-03-27 22:18:04 +01:00
Günther Deschner
d87133d051 Remove unused marshalling for Netlogon Lockout String.
Guenther
2008-03-27 21:58:11 +01:00
Stefan Metzmacher
74a070b8a2 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>
2008-03-27 18:14:56 +01:00
Günther Deschner
7eb4f6f6f9 Remove unused DS_DOMAIN_CONTROLLER_INFO struct.
Guenther
2008-03-27 13:06:43 +01:00
Günther Deschner
1fc98ee431 Move netr_LogonLevel flags to IDL, rename old one to netr_LogonInfo.
Guenther
2008-03-27 13:06:43 +01:00
Günther Deschner
a14b00ee19 Move DSGETDC_VALID_FLAGS to IDL.
Guenther
2008-03-27 13:06:43 +01:00
Günther Deschner
fa64c76ac8 Move LOGON_KRB5_FAIL_CLOCK_SKEW to winbindd_pam.
Guenther
2008-03-27 13:06:43 +01:00
Günther Deschner
4bf2a17c2b Move the known NETLOGON_CONTROL reply flags to IDL.
Guenther
2008-03-27 13:06:43 +01:00
Günther Deschner
b22167fb60 Move inline comment about MSV1_0 flags to IDL.
Guenther
2008-03-27 13:06:43 +01:00
Günther Deschner
b1b6e93aa1 Fill in IDL for PNP_GetDeviceRegProp.
Guenther
2008-03-26 12:17:16 +01:00
Günther Deschner
2201a8118c Comment out some svcctl headers which are now defined in IDL.
Guenther
2008-03-26 12:17:16 +01:00
Michael Adam
cdde2e4eac util_tdb: remove trivial and unused tdb_wipe().
It has been replaced by tdb_wipe_all().

Michael
2008-03-26 11:15:03 +01:00