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

50356 Commits

Author SHA1 Message Date
Volker Lendecke
3305fa2798 Fix a bad memleak in vfs_full_audit 2009-01-05 13:42:26 +01:00
Volker Lendecke
6d4fd789f6 Add create_file to vfs_op_names 2009-01-05 13:09:32 +01:00
Volker Lendecke
34d0cb4f17 Fix bug 6012: Add "get_real_filename" to full_audit
Thanks to Hodur <coil93@gmail.com> for testing!

Volker
2009-01-05 13:09:31 +01:00
Michael Adam
5318e73e93 smbd: prevent access to root filesystem when connecting with empty service name
This only applies to a setup with "registry shares = yes"

Michael
(cherry picked from commit 288fa94ac7cfdf7457b5098c33fc840bed3d5410)
(cherry picked from commit e85526b184e66f86b7faa9d0a37288a09c12c19e)
2009-01-05 11:07:59 +01:00
Stefan Metzmacher
beb8b8fc2d tevent: fix tevent_add_timer() and tevent_add_aio() macros
metze
2009-01-05 10:53:39 +01:00
Andrew Bartlett
83b2f1483f Initialise 'flags' in new python ldb binding for ldb_connect 2009-01-05 20:08:04 +11:00
Tim Prouty
c0b98297b4 s3: Remove a few unnecessary checks from the streams depot module and fix to work with NTRENAME
Handling of error codes when renaming a file to a stream and a stream
to a file is now done in rename_internals_fsp.

The NTRENAME stream path only passes in the stream name, so the new
base can now be different from the old base.
2009-01-04 19:31:30 -08:00
Tim Prouty
7ae992b622 s3: Remove a few unnecessary checks from the streams xattr module
Handling of error codes when renaming a file to a stream and a stream
to a file is now done in rename_internals_fsp.

The NTRENAME stream path only passes in the stream name, so the new
base can now be different from the old base.
2009-01-04 19:31:30 -08:00
Tim Prouty
3e0e756104 s3: Allow renames of streams via NTRENAME and fix stream error codes on rename
The test_streams_rename2 test in RAW-STREAMS verifies these changes
2009-01-04 19:31:30 -08:00
Tim Prouty
2ddaebb2e1 s4 torture: Add more rename tests to RAW-STREAMS
There is one part of the new rename tests that passes against windows,
but doesn't pass against samba3 right now.  Windows allow renaming a
stream to the default stream, but none of the current streams module
support this.  When this ability is added the check for samba can be
removed from this test.

This patch also adds a missing unlink in the cleanup of
test_stream_delete and changes the order that the tests are run to be
consistent with the physical order in the file.
2009-01-04 19:31:30 -08:00
Andrew Bartlett
d22adc14a9 More work to have OpenLDAP accept the full AD schema
We need to avoid handling DN+Binary and DN+String with the refint
module for now, as this is a currently unsupported syntax.

Also rename entryTTL to avoid a conflict with the operational
attribute of the same name.

Andrew Bartlett
2009-01-05 12:38:47 +11:00
Jelmer Vernooij
ca05542d3d Use fqdn rather than gethostname when guessing realm. 2009-01-05 00:27:49 +01:00
Jelmer Vernooij
af744e0954 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2009-01-04 22:48:23 +01:00
Jeremy Allison
2c0faaf5d9 Fix bug #6009 - Setting "min receivefile size = 1" breaks writes.
Jeremy.
2009-01-04 11:47:16 -08:00
Stefan Metzmacher
033428d7da tevent: move samba4 stuff from libtevent.m4 to samba.m4
metze
2009-01-04 18:57:18 +01:00
Stefan Metzmacher
f9cb82d547 s4:build: add SMB_MAKE_SETTINGS() macro
metze
2009-01-04 18:57:18 +01:00
Volker Lendecke
81624030ef Fix a typo found by the IBM Checker 2009-01-04 18:14:33 +01:00
Volker Lendecke
fe56659442 Remove a duplicated comment 2009-01-04 18:03:23 +01:00
Volker Lendecke
c4ff426f67 Fix the build of smbfilter 2009-01-04 17:29:27 +01:00
Volker Lendecke
b4f8996ac7 Simulate the Windows behaviour to fire 445 and after a timeout 139 2009-01-04 16:42:41 +01:00
Volker Lendecke
0cc63c6416 Add open_socket_out_defer_send/recv 2009-01-04 16:42:40 +01:00
Volker Lendecke
19b783cce9 Async wrapper for open_socket_out_send/recv 2009-01-04 16:42:40 +01:00
Volker Lendecke
1b328d9820 Add a quick test of wb_trans_send/recv 2009-01-04 16:42:40 +01:00
Volker Lendecke
4df681abf4 async libwbclient infrastructure 2009-01-04 16:42:40 +01:00
Volker Lendecke
8c1691d213 Remove wb_trans_send/recv 2009-01-04 16:42:40 +01:00
Volker Lendecke
d933362cb7 Move winbindd/winbindd_reqtrans.c to lib/wb_reqtrans.c 2009-01-04 16:42:40 +01:00
Volker Lendecke
c6c33d840b Convert async_connect to "normal" style 2009-01-04 16:42:40 +01:00
Volker Lendecke
34e8945cb5 Actually do a non-blocking connect.... :-) 2009-01-04 16:42:40 +01:00
Volker Lendecke
611f0d7ee6 Add an async queueing mechanism 2009-01-04 16:42:40 +01:00
Volker Lendecke
ebacce2efe Add async timeout helpers 2009-01-04 16:42:40 +01:00
Stefan Metzmacher
e058e51d63 tevent: completely initialize tevent_fd structs
This fixes crash bugs... I forgot to commit and squash
this to commit e45ed828d042acca09cb1ed5b6dd7a24eb5e7ffd

metze
2009-01-04 09:39:17 +01:00
Stefan Metzmacher
47d532fa68 s4:smbd: convert to tevent_* api
metze
2009-01-03 19:58:57 +01:00
Stefan Metzmacher
1c8580cfa9 s4:libcli/ldap: convert to tevent_* api
metze
2009-01-03 19:58:56 +01:00
Stefan Metzmacher
c72cbce6ee s4:auth/kerberos: convert to tevent_* api
metze
2009-01-03 19:58:56 +01:00
Stefan Metzmacher
c652b42612 tevent: raise version to 0.9.2 after AUTOCLOSE changes
metze
2009-01-03 19:58:55 +01:00
Stefan Metzmacher
67810019a0 tevent: remove TEVENT_FD_AUTOCLOSE feature
TEVENT_FD_AUTOCLOSE adds a dependency to SOCKET_WRAPPER,
which is bad. Callers should use tevent_fd_set_close_fn() now.

metze
2009-01-03 19:58:54 +01:00
Stefan Metzmacher
2c8a10fe88 tevent: remove dependency to SOCKET_WRAPPER via "system/network.h"
metze
2009-01-03 19:58:54 +01:00
Stefan Metzmacher
5fa0d3d568 s4:socket: use a socket_wrapper aware function to auto close the fd event for sockets
metze
2009-01-03 19:58:53 +01:00
Stefan Metzmacher
b1be241ca5 s4:sysdep/inotify: use tevent_fd_set_auto_close()
metze
2009-01-03 19:58:52 +01:00
Stefan Metzmacher
193eba85a9 tevent: add tevent_fd_set_auto_close()
tevent_fd_set_auto_close() is a simple wrapper
arround tevent_fd_set_close_fn() with a callback
that uses plain close(2).

metze
2009-01-03 19:58:51 +01:00
Stefan Metzmacher
e45ed828d0 tevent: add tevent_fd_set_close_fn()
Let callers specify a close function
as an alternative to TEVENT_FD_AUTOCLOSE.

metze
2009-01-03 19:58:51 +01:00
Stefan Metzmacher
e928d863e2 tevent: move some common tevent_fd related functions into tevent_fd.c
metze
2009-01-03 19:58:50 +01:00
Stefan Metzmacher
1a26b67ee3 tevent: specify argument names for the event handlers
metze
2009-01-03 19:58:49 +01:00
Stefan Metzmacher
7dff14df46 tevent: fix standalone make test
metze
2009-01-03 19:58:49 +01:00
Volker Lendecke
fafb9ecc61 open_socket_out is always used with SOCK_STREAM, remove argument "type" 2009-01-03 19:22:06 +01:00
Volker Lendecke
b6138bf4f2 Fix retval of async_syscall_result_int 2009-01-03 19:07:57 +01:00
Volker Lendecke
27abf6731e struct async_req doesn't really need to carry an event_context 2009-01-03 19:07:57 +01:00
Volker Lendecke
141b76d747 Remove unused argument "vuid" from make_internal_rpc_pipe_p 2009-01-03 15:25:00 +01:00
Stefan Metzmacher
b00f6d169c tevent: raise version to 0.9.1
This 0.9.1 isn't compatible with 0.9.0,
but it makes only sense to raise the major version
after we have reached 1.0.0.

metze
2009-01-03 09:14:23 +01:00
Kai Blin
120dc0e5aa s4 winbind: Correctly silence a "discard const" warning
Thanks to metze for pointing out the error.
2009-01-02 23:42:55 +01:00