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

26792 Commits

Author SHA1 Message Date
Stefan Metzmacher
851cadba51 locking: combine get_delete_on_close_flag() and get_write_time() into get_file_infos()
This means we need to fetch the record only once.

metze
(This used to be commit 4130b87329)
2008-04-07 12:29:29 +02:00
Stefan Metzmacher
406da3a962 selftest: samba3 passes BASE-DELAYWRITE
metze
(This used to be commit 5df3463431)
2008-04-07 12:29:28 +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 2eab212ea2)
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 6aaa2ce0ee)
2008-04-07 12:29:25 +02:00
Volker Lendecke
4f715d1102 Fix an uninitialized variable
(This used to be commit 8b2d9ee8c5)
2008-04-07 12:20:21 +02:00
Björn Jacke
b6e9fffaa2 increase log level for this failed setsockopt call. EINVAL is a normal error on Solaris when we do this on an already resetted connection.
(This used to be commit 42bc4ff7fd)
2008-04-07 11:49:54 +02:00
Volker Lendecke
768a5a23e0 Fix bug 5375
Thanks to Moskvin for testing
(This used to be commit d3c31aa36c)
2008-04-07 10:20:39 +02:00
Volker Lendecke
aa41d74843 Fix a misleading debug message
(This used to be commit 494b32197f)
2008-04-07 10:20:32 +02:00
Stefan Metzmacher
74325d79ad net_rpc: let get_user_sids() use wbcLookupName(), wbcGidToSid() and wbcGetGroups()
metze
(This used to be commit 31375c0263)
2008-04-06 13:43:28 +02:00
Stefan Metzmacher
1e39a6196c net_rpc: let get_user_tokens() use wbcListUsers()
metze
(This used to be commit 4f712452e9)
2008-04-06 13:43:28 +02:00
Stefan Metzmacher
1d08dbbd4c wbinfo: make use of wbcGetGroups()
metze
(This used to be commit c78f4dc043)
2008-04-06 13:42:00 +02:00
Stefan Metzmacher
cb4e77d991 libwbclient: add wbcGetGroups()
metze
(This used to be commit 596d030b97)
2008-04-06 13:42:00 +02:00
Volker Lendecke
7d0ebc1976 Fix a C++ warning
(This used to be commit c274fe7d21)
2008-04-06 12:27:16 +02:00
Volker Lendecke
abe1431ad3 Remove external refs to winbindd_fd
(This used to be commit 18bf2b2028)
2008-04-06 12:27:08 +02:00
Volker Lendecke
c18dca113c wbcAllocateGid returns a gid_t, not a uid_t
(This used to be commit 3130fb7b32)
2008-04-06 11:28:46 +02:00
Volker Lendecke
c7ab11f52d Re-run "make idl"
(This used to be commit 26218826c3)
2008-04-06 00:48:27 +02:00
Jeremy Allison
1a64916775 When using plaintext ucs2 passwords clistr_push calls ucs2_align, which causes
the space taken by the unicode password to be one byte too
long (as we're on an odd byte boundary here). Reduce the
count by 1 to cope with this. Fixes smbclient against NetApp
servers which can't cope. Fix from
bryan.kolodziej@allenlund.com in bug #3840.
Jeremy.
(This used to be commit 1e7e7d86a1)
2008-04-04 15:28:14 -07:00
Günther Deschner
8337291250 Fix _samr_GetUserPwInfo() (to return more then just zeros).
Guenther
(This used to be commit 624371ce32)
2008-04-04 23:41:56 +02:00
Günther Deschner
8c9d6322de Fix _samr_GetDomPwInfo (to return more then zeros).
Guenther
(This used to be commit 1cde9579f1)
2008-04-04 23:41:56 +02:00
Jeremy Allison
40d16fa275 Fix bug #5372. With a large CUPS installation with a remote server, contacting
the server when searching for a name for the location and comment fields can
take so much time the client times out. When searching for a name we don't
use these fields anyway, so add a function get_a_printer_search() which
doesn't contact the CUPS server.
Jeremy.
(This used to be commit 92d9f20852)
2008-04-04 11:14:09 -07:00
Michael Adam
0000eeb9b8 net_rpc_registry: return available error code on failure in deletevalue.
Michael
(This used to be commit 0dc9840cef)
2008-04-04 17:52:35 +02:00
Michael Adam
c7aa3dd3c0 net_rpc_registry: consistently return error upon wrong use.
Michael
(This used to be commit 26e3d71cd0)
2008-04-04 17:50:41 +02:00
Michael Adam
ae790f9b89 net: change split_hive_key() to properly allocate subkeyname
instead of returning a pointer into another string.

Michael
(This used to be commit 68d08ecf92)
2008-04-04 17:24:53 +02:00
Michael Adam
65088387c0 net_rpc_registry: use split_hive_key to normalize hive befor open.
THis allows to specify keys in the form "HKLM/Software/samba",
i.e. "/" instead of "\\".

Michael
(This used to be commit 61d09caef3)
2008-04-04 17:05:00 +02:00
Michael Adam
0bd2ac7130 net_rpc_registry: use utility function print_registry_value().
Michael
(This used to be commit 3d039b518f)
2008-04-04 17:05:00 +02:00
Michael Adam
2ce236cbaf net_rpc_registy: use function print_registry_key
Michael
(This used to be commit cc1da3ee2c)
2008-04-04 17:05:00 +02:00
Michael Adam
06466de5e9 net_registry: split utility function of common interest out into util module.
Michael
(This used to be commit 3bf890783f)
2008-04-04 17:05:00 +02:00
Michael Adam
2478949821 mapping_tdb: fix enumeration of mappings.
db->traverse_read returns the number of traversed object on success.

Michael
(This used to be commit 2be2188a97)
2008-04-04 17:05:00 +02:00
Michael Adam
eab99a9eee Makefile: reassign reg_init_basic.o to REG_BASE_OBJ, where it belongs...
Michael
(This used to be commit 7b16cb1023)
2008-04-04 16:47:52 +02:00
Michael Adam
1b3f36b2b5 mapping.tdb: fix creation of entries with GROUP_PREFIX
Macro is no expanded inside literal string.

Michael
(This used to be commit 872a3d3d38)
2008-04-04 16:47:51 +02:00
Günther Deschner
bea4541e11 Use sid_array_from_info3 in lookup_usergroups_cached().
Guenther
(This used to be commit 65b4cb20ea)
2008-04-04 02:53:40 +02:00
Günther Deschner
69b23a39cd Always uppercase cli->srv_name_slash.
Not that I think it is of any importance...

Guenther
(This used to be commit 352f8440c7)
2008-04-04 01:44:43 +02:00
Günther Deschner
be9b46b2ce Remove some dead code in rpcclient.
Guenther
(This used to be commit c7ae1a9b53)
2008-04-04 01:44:16 +02:00
Günther Deschner
29f44dc144 Move rpccli_try_samr_connects out of rpcclient.
Guenther
(This used to be commit f550cdb6f2)
2008-04-04 01:40:29 +02:00
Günther Deschner
e7553ab79c Fix pam_winbind macros.
Guenther
(This used to be commit 3709185912)
2008-04-03 17:23:22 +02:00
Günther Deschner
3020cd44ad Use pwb_context in pam_winbind.
Guenther
(This used to be commit bf960f57e7)
2008-04-03 16:27:18 +02:00
Günther Deschner
a654ed6089 Add _pam_winbind_init/free_context.
Guenther
(This used to be commit d62676cf88)
2008-04-03 16:27:18 +02:00
Günther Deschner
b365cd3fc5 Add pwb_context to pam_winbind.h.
Guenther
(This used to be commit fe8acb0644)
2008-04-03 16:27:18 +02:00
Günther Deschner
b592abf1ac Make more functions in pam_winbind static.
Guenther
(This used to be commit ea2175ee0e)
2008-04-03 16:27:18 +02:00
Stefan Metzmacher
4124c7b7a3 wbinfo: use wbcLookupNames()
metze
(This used to be commit 9d0e5a1321)
2008-04-03 15:49:19 +02:00
Stefan Metzmacher
f963e50de7 wbinfo: use wbcLookupRids()
metze
(This used to be commit 046b26b763)
2008-04-03 15:49:18 +02:00
Stefan Metzmacher
421f9d2e6b wbinfo: use wbcLookupSid()
metze
(This used to be commit b917be4986)
2008-04-03 15:49:18 +02:00
Stefan Metzmacher
e8ca249d3f wbinfo: catch NULL domain string as in other places
metze
(This used to be commit ff4611832a)
2008-04-03 15:49:18 +02:00
Michael Adam
2830626877 registry: remove parameter checks from smbconf backend: they are in libsmbconf.
Michael
(This used to be commit 118cf38133)
2008-04-03 15:43:04 +02:00
Michael Adam
24c54ee4fb libsmbconf: move initialization of registry value down after error checks.
Michael
(This used to be commit 2a8029985f)
2008-04-03 15:43:04 +02:00
Günther Deschner
dc2274819e Fix rpccli_lsa_lookup_sids_noalloc.
When looking up e.g. a trusted doamin account, there is just no name.

Michael, please check.

Guenther
(This used to be commit ea3cfadc25)
2008-04-03 00:27:02 +02:00
Günther Deschner
b028fd3f8c Add NT_STATUS_RPC_CANNOT_SUPPORT.
Guenther
(This used to be commit 9e15ce03ca)
2008-04-03 00:26:55 +02:00
Simo Sorce
a123abdb91 Fix trusted users on a DC that uses the old idmap syntax. There was no default backend therefore on IDs were mapped by default.
(This used to be commit f6069126e5)
2008-04-03 00:26:35 +02:00
Jeremy Allison
3ebb6be00d Fix MSDFS bug noticed by Ofir Azoulay <Ofir.Azoulay@expand.com>.
There is no reason to ensure the target host is ourselves, and
this breaks MS clients in some cases.
Jeremy.
(This used to be commit c19fdf43d1)
2008-04-02 11:23:36 -07:00
Günther Deschner
832adaa5ab Fix "net rpc trustdom establish" for win2k8 trusts.
When establishing trusts to a windows 2008 dc, the NetServerEnum2 RAP call fails
with some exotic RAP failure. Let's just try a netlogon getdcname call in
that case to convince ourselve we're talking to a proper machine.

Rafael, looks ok?

Guenther
(This used to be commit b12edbeffe)
2008-04-02 12:29:24 +02:00