1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

23669 Commits

Author SHA1 Message Date
Bo Yang
8671f9767d Only cache password policy results that worked, otherwise we
cannot login until the cache expires even if a connection
to a DC has been restored.
2008-04-07 09:51:42 -04: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
404a865a34 smbd: make it possible to disable get_file_infos() on searches
metze
2008-04-07 12:29:30 +02:00
Stefan Metzmacher
4130b87329 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
2008-04-07 12:29:29 +02:00
Stefan Metzmacher
5df3463431 selftest: samba3 passes BASE-DELAYWRITE
metze
2008-04-07 12:29:28 +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
Volker Lendecke
8b2d9ee8c5 Fix an uninitialized variable 2008-04-07 12:20:21 +02:00
Björn Jacke
42bc4ff7fd increase log level for this failed setsockopt call. EINVAL is a normal error on Solaris when we do this on an already resetted connection. 2008-04-07 11:49:54 +02:00
Volker Lendecke
d3c31aa36c Fix bug 5375
Thanks to Moskvin for testing
2008-04-07 10:20:39 +02:00
Volker Lendecke
494b32197f Fix a misleading debug message 2008-04-07 10:20:32 +02:00
Stefan Metzmacher
31375c0263 net_rpc: let get_user_sids() use wbcLookupName(), wbcGidToSid() and wbcGetGroups()
metze
2008-04-06 13:43:28 +02:00
Stefan Metzmacher
4f712452e9 net_rpc: let get_user_tokens() use wbcListUsers()
metze
2008-04-06 13:43:28 +02:00
Stefan Metzmacher
c78f4dc043 wbinfo: make use of wbcGetGroups()
metze
2008-04-06 13:42:00 +02:00
Stefan Metzmacher
596d030b97 libwbclient: add wbcGetGroups()
metze
2008-04-06 13:42:00 +02:00
Volker Lendecke
c274fe7d21 Fix a C++ warning 2008-04-06 12:27:16 +02:00
Volker Lendecke
18bf2b2028 Remove external refs to winbindd_fd 2008-04-06 12:27:08 +02:00
Volker Lendecke
3130fb7b32 wbcAllocateGid returns a gid_t, not a uid_t 2008-04-06 11:28:46 +02:00
Volker Lendecke
26218826c3 Re-run "make idl" 2008-04-06 00:48:27 +02:00
Jeremy Allison
1e7e7d86a1 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.
2008-04-04 15:28:14 -07:00
Günther Deschner
624371ce32 Fix _samr_GetUserPwInfo() (to return more then just zeros).
Guenther
2008-04-04 23:41:56 +02:00
Günther Deschner
1cde9579f1 Fix _samr_GetDomPwInfo (to return more then zeros).
Guenther
2008-04-04 23:41:56 +02:00
Jeremy Allison
92d9f20852 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.
2008-04-04 11:14:09 -07:00
Michael Adam
0dc9840cef net_rpc_registry: return available error code on failure in deletevalue.
Michael
2008-04-04 17:52:35 +02:00
Michael Adam
26e3d71cd0 net_rpc_registry: consistently return error upon wrong use.
Michael
2008-04-04 17:50:41 +02:00
Michael Adam
68d08ecf92 net: change split_hive_key() to properly allocate subkeyname
instead of returning a pointer into another string.

Michael
2008-04-04 17:24:53 +02:00
Michael Adam
61d09caef3 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
2008-04-04 17:05:00 +02:00
Michael Adam
3d039b518f net_rpc_registry: use utility function print_registry_value().
Michael
2008-04-04 17:05:00 +02:00
Michael Adam
cc1da3ee2c net_rpc_registy: use function print_registry_key
Michael
2008-04-04 17:05:00 +02:00
Michael Adam
3bf890783f net_registry: split utility function of common interest out into util module.
Michael
2008-04-04 17:05:00 +02:00
Michael Adam
2be2188a97 mapping_tdb: fix enumeration of mappings.
db->traverse_read returns the number of traversed object on success.

Michael
2008-04-04 17:05:00 +02:00
Michael Adam
7b16cb1023 Makefile: reassign reg_init_basic.o to REG_BASE_OBJ, where it belongs...
Michael
2008-04-04 16:47:52 +02:00
Michael Adam
872a3d3d38 mapping.tdb: fix creation of entries with GROUP_PREFIX
Macro is no expanded inside literal string.

Michael
2008-04-04 16:47:51 +02:00
Günther Deschner
65b4cb20ea Use sid_array_from_info3 in lookup_usergroups_cached().
Guenther
2008-04-04 02:53:40 +02:00
Günther Deschner
352f8440c7 Always uppercase cli->srv_name_slash.
Not that I think it is of any importance...

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

Michael, please check.

Guenther
2008-04-03 00:27:02 +02:00
Günther Deschner
9e15ce03ca Add NT_STATUS_RPC_CANNOT_SUPPORT.
Guenther
2008-04-03 00:26:55 +02:00