Stefan Metzmacher
edee7dd8fd
r15661: add NT_STATUS_OBJECTID_NOT_FOUND
...
metze
(This used to be commit 2c9db94291
)
2007-10-10 14:08:04 -05:00
Stefan Metzmacher
5ff4b74df3
r15656: for NT IOCTL's we need to control the max_data field for some calls
...
metze
(This used to be commit 3cab02f6f5
)
2007-10-10 14:08:04 -05:00
Stefan Metzmacher
7e7a760b4b
r15643: add some FSCTL_ codes
...
metze
(This used to be commit 47dc1ed253
)
2007-10-10 14:07:26 -05:00
Stefan Metzmacher
410fb90322
r15640: - NT IOCTL calls also have an 'in' data_blob
...
- fix the receive code of NT IOCTL's we only need the NTTRANS data payload
not the SMB payload here
metze
(This used to be commit 358d03143f
)
2007-10-10 14:07:25 -05:00
Stefan Metzmacher
bb58d8497a
r15638: add a usefull macro to get a pointer the smb_handle union
...
of smb_open, as it's not nicely alligned for all levels,
If someone has an idea for a better solution where we can access
it via op->generic.out.file.* please let me know:-)
metze
(This used to be commit d0a7408280
)
2007-10-10 14:07:25 -05:00
Jelmer Vernooij
172a83d724
r15573: Fix build of systems that have iconv headers in non-standard locations
...
Split of system/locale.h header from system/iconv.h
Previously, iconv wasn't being used on these systems
(This used to be commit aa6d66fda6
)
2007-10-10 14:05:58 -05:00
Stefan Metzmacher
dc86ab3e45
r15532: add a BOOL body_dynamic_present, because the body_dynamic_size can be 0
...
also if the dynamic flag should be set
metze
(This used to be commit 7829100e1e
)
2007-10-10 14:05:54 -05:00
Stefan Metzmacher
c3958aa231
r15505: - add 'generic' alias to smb_seek and smb_flush
...
- add struct ntvfs_handle pointer to smb_file, this will
later be used by the ntvfs backends
metze
(This used to be commit 8322fc70ad
)
2007-10-10 14:05:43 -05:00
Jelmer Vernooij
b56789c349
r15457: Get rid of more usages of uint_t
...
(This used to be commit 849818dcde
)
2007-10-10 14:05:37 -05:00
Andrew Bartlett
5d689a5de2
r15416: Point out that this doesn't work, but for servers this old, I just
...
don't care...
Andrew Bartlett
(This used to be commit 8abe7ba619
)
2007-10-10 14:05:35 -05:00
Andrew Bartlett
ed752c8004
r15415: Use Jelmer's new credentials 'wrong password' code to give the user 3
...
attempts for the password, when talking to a remote CIFS server.
Andrew Bartlett
(This used to be commit 3a4ddc8f59
)
2007-10-10 14:05:34 -05:00
Andrew Bartlett
742c110cd6
r15400: Move the TLS code behind the socket interface.
...
This reduces caller complexity, because the TLS code is now called
just like any other socket. (A new socket context is returned by the
tls_init_server and tls_init_client routines).
When TLS is not available, the original socket is returned.
Andrew Bartlett
(This used to be commit 09b2f30dfa
)
2007-10-10 14:05:32 -05:00
Tim Potter
49994442bb
r15397: Fix typo.
...
(This used to be commit 74bd8170fc
)
2007-10-10 14:05:32 -05:00
Tim Potter
0b673b7999
r15395: Fix build by adding another copy of the Python detection m4 fragment.
...
This stuff should be common somewhere.
(This used to be commit e906781cbd
)
2007-10-10 14:05:32 -05:00
Tim Potter
ce3293c5b6
r15391: Wrap up the nbt_name_query() function as a bit of an experiment. It
...
seemed to work quite well and this technique might be good for
generating an interface to use for automated testing.
Tested by doing a nbt lookup against smbd.
(This used to be commit 11150b3140
)
2007-10-10 14:05:32 -05:00
Jelmer Vernooij
8bab932282
r15387: Fix installation of dcerpc headers, remove more instances of uint_t
...
(This used to be commit 9e9bfd04c6
)
2007-10-10 14:05:31 -05:00
Jelmer Vernooij
46f627ea7a
r15384: Improve naming of socket library, disable Requires(.private)? fields in pkg-config files for now as
...
they break external projects.
(This used to be commit f919fd6655
)
2007-10-10 14:05:30 -05:00
Jelmer Vernooij
5c3a1d76ff
r15379: Fix shared library build's unresolved dependencies
...
(This used to be commit 0fafa2e595
)
2007-10-10 14:05:29 -05:00
Jelmer Vernooij
6275553bae
r15373: Rename SOCKET to LIBSAMBA-SOCKET to prevent name clashes with -lsocket on SUN
...
boxes.
(This used to be commit c95ad11307
)
2007-10-10 14:05:28 -05:00
Jelmer Vernooij
37e94956e0
r15365: Fix error in my previous commit, caught by metze.
...
(This used to be commit 0d99397007
)
2007-10-10 14:05:27 -05:00
Jelmer Vernooij
cf0f4ec073
r15358: Fix some compiler warnings / type safety. Found by tcc
...
(This used to be commit 12ba42de58
)
2007-10-10 14:05:25 -05:00
Andrew Bartlett
c2cc10c786
r15356: Remove unused 'flags' argument from socket_send() and friends.
...
This is in preperation for making TLS a socket library.
Andrew Bartlett
(This used to be commit a312812b92
)
2007-10-10 14:05:25 -05:00
Jelmer Vernooij
e48fdb255a
r15352: Remove reference to just-removed subsystem
...
(This used to be commit ccb86ab159
)
2007-10-10 14:05:24 -05:00
Jelmer Vernooij
30e8599538
r15350: Remove empty subsystem, don't install .a files of subsystems
...
(This used to be commit 087188cfc4
)
2007-10-10 14:05:24 -05:00
Jelmer Vernooij
1f5a8f892f
r15344: Fix shared library build
...
(This used to be commit 7113a16309
)
2007-10-10 14:05:21 -05:00
Jelmer Vernooij
20b3b0f2e3
r15338: Fix build of most things with shared libs enabled.
...
(This used to be commit 8985093d3f
)
2007-10-10 14:05:18 -05:00
Jelmer Vernooij
f7c86b912d
r15331: Integrate LIBSMB and LIBCLI into new LIBCLI_SMB
...
(This used to be commit 4ec89bce87
)
2007-10-10 14:05:18 -05:00
Jelmer Vernooij
e002300f23
r15328: Move some functions around, remove dependencies.
...
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary
(This used to be commit c19c2b51d3
)
2007-10-10 14:05:17 -05:00
Jelmer Vernooij
9220144604
r15313: Fix some dependencies in dso mode
...
(This used to be commit f0afe9e2ff
)
2007-10-10 14:05:09 -05:00
Jelmer Vernooij
b00c236906
r15301: Use static libraries internally. This required a few hacks in the build
...
system - these should be removed later on.
(This used to be commit 0654739166
)
2007-10-10 14:05:07 -05:00
Jelmer Vernooij
620d759f49
r15298: Fix the build using a few hacks in the build system.
...
Recursive dependencies are now forbidden (the build system
will bail out if there are any).
I've split up auth_sam.c into auth_sam.c and sam.c. Andrew,
please rename sam.c / move its contents to whatever/wherever you think suits
best.
(This used to be commit 6646384aaf
)
2007-10-10 14:05:04 -05:00
Jelmer Vernooij
710ea94988
r15297: Move create_security_token() to samdb as it requires SAMDB (and the rest of LIBSECURITY doesn't)
...
Make the ldb password_hash module only depend on some keys manipulation code, not full heimdal
Some other dependency fixes
(This used to be commit 5b3ab728ed
)
2007-10-10 14:05:04 -05:00
Simo Sorce
886329898c
r15288: fix some problems
...
(This used to be commit d448389be8
)
2007-10-10 14:05:02 -05:00
Simo Sorce
13f17436ea
r15241: Add helper function to set reconnect status defaults
...
(This used to be commit 6fff8f871a
)
2007-10-10 14:04:23 -05:00
Simo Sorce
8f16429947
r15238: Add some code to automatically reconnect if we want to.
...
(This used to be commit e2102999e2
)
2007-10-10 14:04:23 -05:00
Andrew Bartlett
cc11de1e3e
r15225: Use talloc_zero() to avoid use of uninitialised values later on.
...
Andrew Bartlett
(This used to be commit e312cddafd
)
2007-10-10 14:04:20 -05:00
Jelmer Vernooij
69b51f702a
r15207: Introduce PRIVATE_DEPENDENCIES and PUBLIC_DEPENDENCIES as replacement
...
for REQUIRED_SUBSYSTEMS.
(This used to be commit adc8a019b6
)
2007-10-10 14:04:18 -05:00
Jelmer Vernooij
0eddf14b30
r15191: Avoid uint_t as it's not standard.
...
(This used to be commit 7af59357b9
)
2007-10-10 14:04:15 -05:00
James Peach
6ab33938d5
r15186: Introduce ISDOT and ISDOTDOT macros for testing whether a filename is
...
"." for "..". These express the intention better that strcmp or strequal
and improve searchability via cscope/ctags.
(This used to be commit 7e4ad7e8e5
)
2007-10-10 14:04:14 -05:00
Simo Sorce
60f3ef5052
r15181: Don't try kerberos sign/seal when in SSL
...
(This used to be commit 3be3b1130c
)
2007-10-10 14:04:13 -05:00
Stefan Metzmacher
acc0516742
r15121: fix pushing of the FLAGS2_READ_PERMIT_EXECUTE flag in the
...
"readx.read_for_execute = True" case.
metze
(This used to be commit f30f9cd328
)
2007-10-10 14:04:10 -05:00
Stefan Metzmacher
3f9628ac7c
r15079: w2k3 returns NT_STATUS_PRIVILEGE_NOT_HELD if SEC_FLAG_SYSTEM_SECURITY is
...
desired but SeSecurityPrivilege isn't granted
metze
(This used to be commit be7285bdeb
)
2007-10-10 14:04:07 -05:00
Andrew Tridgell
eae0b77a6e
r14974: work around an ibm checker bug
...
(This used to be commit 2031e07a8a
)
2007-10-10 14:00:49 -05:00
Andrew Tridgell
7789fa412d
r14973: req cannot be NULL in smb_raw_t2open_recv() (found by IBM checker)
...
(This used to be commit c2cde823ee
)
2007-10-10 14:00:48 -05:00
Andrew Tridgell
8be91f2d0f
r14946: added a smbcli_ftruncate() call, useful for torture testing
...
(This used to be commit b8b9acc600
)
2007-10-10 14:00:21 -05:00
Andrew Tridgell
fd25c10284
r14938: add smbcli_fsetatr() as a convenient interface to a setfileinfo for
...
torture testing. Used by RAW-NOTIFY.
(This used to be commit 517db1b1b0
)
2007-10-10 14:00:20 -05:00
Stefan Metzmacher
1ac990ddcf
r14894: - add some 'const'
...
- remove sid_active_in_token() was the same as security_token_has_sid()
- rename some functions
metze
(This used to be commit 81390dcda5
)
2007-10-10 14:00:12 -05:00
Stefan Metzmacher
5559f5e3e5
r14891: fix a bug found by the ibm checker
...
the problem was that we shift with <<= (privilege-1)
and we called the function with privilege=0
add some checks to catch invalid privilege values
and hide the mask representation in privilege.c
metze
(This used to be commit a69f000324
)
2007-10-10 14:00:12 -05:00
Andrew Tridgell
69e40fa99a
r14876: added ENOSYS to unix error mapping
...
(This used to be commit 77f32a2735
)
2007-10-10 14:00:11 -05:00
Stefan Metzmacher
1af925f394
r14860: create libcli/security/security.h
...
metze
(This used to be commit 9ec706238c
)
2007-10-10 13:59:44 -05:00
Stefan Metzmacher
508ba6026a
r14859: fix bugs noticed by the ibm code checker
...
metze
(This used to be commit afa8f944a7
)
2007-10-10 13:59:43 -05:00
Stefan Metzmacher
8cd973decd
r14840: - rename some functions
...
- stack specific functions on top of generic ones
metze
(This used to be commit e391f3c98a
)
2007-10-10 13:59:41 -05:00
Jelmer Vernooij
935af3eb19
r14724: Rearrange some source files, install more headers.
...
(This used to be commit 7146c1600f
)
2007-10-10 13:59:14 -05:00
Stefan Metzmacher
b7f5078864
r14641: fix typo
...
metze
(This used to be commit 0ad464f686
)
2007-10-10 13:59:04 -05:00
Jelmer Vernooij
35349a58df
r14542: Remove librpc, libndr and libnbt from includes.h
...
(This used to be commit 51b4270513
)
2007-10-10 13:58:42 -05:00
Andrew Tridgell
9225c02aee
r14539: get rid of a pointless union layer in struct smb_notify
...
(This used to be commit 1e1c559381
)
2007-10-10 13:58:41 -05:00
Jelmer Vernooij
5b0051e032
r14511: Install more headers
...
(This used to be commit e1f896948f
)
2007-10-10 13:57:35 -05:00
Jelmer Vernooij
2d558d5e19
r14498: Revert part of my commit that removed support for compilers that
...
don't support immediate structures
(This used to be commit 657a893b25
)
2007-10-10 13:57:34 -05:00
Jelmer Vernooij
b785a7c40c
r14492: Fix shared libs - set SO_VERSION to 0 everywhere for now.
...
(This used to be commit 4682bc5ce0
)
2007-10-10 13:57:32 -05:00
Jelmer Vernooij
83d8fd3dcf
r14484: Install more headers
...
(This used to be commit 430c6516d3
)
2007-10-10 13:57:31 -05:00
Jelmer Vernooij
71b4fd9792
r14477: Remove the NOPROTO property - it's no longer used as proto.h is gone.
...
(This used to be commit 9c37f847d3
)
2007-10-10 13:57:30 -05:00
Jelmer Vernooij
2438b90b32
r14473: Modern splint has no problems with immediate structures.
...
(This used to be commit 6046dd8220
)
2007-10-10 13:57:30 -05:00
Jelmer Vernooij
4f1c8daa36
r14470: Remove some unnecessary headers.
...
(This used to be commit f7312dab3b
)
2007-10-10 13:57:29 -05:00
Jelmer Vernooij
8528016978
r14464: Don't include ndr_BASENAME.h files unless strictly required, instead
...
try to include just the BASENAME.h files (containing only structs)
(This used to be commit 3dd477ca51
)
2007-10-10 13:57:27 -05:00
Andrew Tridgell
5702626906
r14435: return after an error
...
(This used to be commit 40e5bfdb0f
)
2007-10-10 13:57:24 -05:00
Andrew Tridgell
baa62e5637
r14434: use the right enum type
...
(This used to be commit 507def57cb
)
2007-10-10 13:57:24 -05:00
Andrew Tridgell
07fd3bd512
r14424: another empty controls case
...
(This used to be commit 7d0eb678bf
)
2007-10-10 13:57:21 -05:00
Andrew Tridgell
f9827c2ad1
r14423: don't die on no controls
...
(This used to be commit 9787fb8e91
)
2007-10-10 13:57:21 -05:00
Andrew Tridgell
72a7052fa7
r14414: added some error checks
...
(This used to be commit cd9f3adc75
)
2007-10-10 13:57:20 -05:00
Andrew Tridgell
f479571502
r14413: don't do memcpy of length 0
...
(This used to be commit c43a7ec7ac
)
2007-10-10 13:57:20 -05:00
Jelmer Vernooij
1060f6b3f6
r14402: Generate seperate headers for RPC client functions.
...
(This used to be commit 7054ebf024
)
2007-10-10 13:57:19 -05:00
Jelmer Vernooij
e3f2414cf9
r14380: Reduce the size of structs.h
...
(This used to be commit 1a16a6f1df
)
2007-10-10 13:57:16 -05:00
Stefan Metzmacher
add7ba54c1
r14372: fix bug found by sparse
...
metze
(This used to be commit da1ac9b224
)
2007-10-10 13:57:15 -05:00
Jelmer Vernooij
3f16241a1d
r14363: Remove credentials.h from the global includes.
...
(This used to be commit 98c4c30513
)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
7a121583b4
r14349: Kill proto.h!
...
Prototypes are now spread over multiple headers, usually one per subsystem.
This change is required to allow proper header dependencies later on,
without recompiling Samba each time the mtime of any source file changes.
(This used to be commit 3da79bf909
)
2007-10-10 13:57:14 -05:00
Jelmer Vernooij
e153a8099e
r14327: Replace MAJOR_VERSION/MINOR_VERSION/RELEASE_VERSION with two parameters:
...
- VERSION: should contain the current version. Will be made part of the filename.
- SO_VERSION: should contain the latest version that this on is compatible to. Will be used for setting the soname of the shared library.
Fix sonames and use them on platforms that support them
Remove symlinking code. ldconfig will take care of creating the symlinks now
that we set the soname.
(This used to be commit 7871b07e21
)
2007-10-10 13:57:12 -05:00
Andrew Tridgell
3ea60662fd
r14297: make sure we can go through the loop for than once
...
(This used to be commit 6a84940bd3
)
2007-10-10 13:57:09 -05:00
Stefan Metzmacher
a1b295ed48
r14256: - rename smb_file -> smb_handle
...
- move it into the in/out substructs again
- allow file.path only on smb_fileinfo/smb_setfileinfo
metze
(This used to be commit be6d5298a2
)
2007-10-10 13:57:06 -05:00
Rafal Szczesniak
66e3a63c19
r14239: Fix indentation.
...
rafal
(This used to be commit 7aa90f58b9
)
2007-10-10 13:57:05 -05:00
Andrew Tridgell
7f0c7702f6
r14208: removed use of req->flags2 inside the ntvfs layer. This should help
...
metze on his quest to unify the ntvfs strucures for the smb and smb2
servers. The only place we needed flags2 inside ntvfs was for the
FLAGS2_READ_PERMIT_EXECUTE bit, which only affects readx, so I added a
readx.in.read_for_execute flag instead.
(This used to be commit b78abbbce6
)
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
32b0bb64bc
r14205: move smb specific stuff out of includes.h (finally!!!:-)
...
all this changes really help ccache to speed up the samba4 build:-)
metze
(This used to be commit 180a79d103
)
2007-10-10 13:57:03 -05:00
Stefan Metzmacher
e5e10ca55c
r14174: fix typos
...
metze
(This used to be commit 29240bae44
)
2007-10-10 13:56:58 -05:00
Stefan Metzmacher
307e43bb56
r14173: change smb interface structures to always use
...
a union smb_file, to abtract
- const char *path fot qpathinfo and setpathinfo
- uint16_t fnum for SMB
- smb2_handle handle for SMB2
the idea is to later add a struct ntvfs_handle *ntvfs
so that the ntvfs subsystem don't need to know the difference between SMB and SMB2
metze
(This used to be commit 2ef3f59709
)
2007-10-10 13:56:57 -05:00
Stefan Metzmacher
3d9fc634ef
r14160: don't write behind the buffer
...
metze
(This used to be commit bce4db8d1c
)
2007-10-10 13:56:56 -05:00
Andrew Tridgell
2d7353dea4
r14141: fixed bugzilla 2921, forcing correct alignment when in ascii mode
...
(This used to be commit f432d23b04
)
2007-10-10 13:56:54 -05:00
Stefan Metzmacher
7d8424ede2
r14064: - split out MSRPC_PARSE into a speperate subsystem
...
- build gensec_ntlmssp always static for now, because torture/auth/ntlmssp.c
needs to access functions from it
metze
(This used to be commit 43733c9556
)
2007-10-10 13:52:39 -05:00
Jelmer Vernooij
ceb6e9717b
r13960: Generate makefile rules for installing/removing shared modules.
...
(This used to be commit 2c74698032
)
2007-10-10 13:52:32 -05:00
Jelmer Vernooij
f8fdbc967c
r13944: Yet another round of splitups.
...
(This used to be commit f87debeb12
)
2007-10-10 13:52:31 -05:00
Jelmer Vernooij
17ae598141
r13938: Around round of splitups
...
(This used to be commit 2d655f0528
)
2007-10-10 13:52:29 -05:00
Stefan Metzmacher
3d4a22dab4
r13936: fix dependecy
...
metze
(This used to be commit 9650d15c21
)
2007-10-10 13:52:28 -05:00
Stefan Metzmacher
eeaf9650d8
r13935: add dependecies
...
metze
(This used to be commit 569275bc2b
)
2007-10-10 13:52:28 -05:00
Jelmer Vernooij
9bd7dd9121
r13926: More header splitups.
...
(This used to be commit 930daa9f41
)
2007-10-10 13:52:26 -05:00
Jelmer Vernooij
4ac2be9958
r13924: Split more prototypes out of include/proto.h + initial work on header
...
file dependencies
(This used to be commit 1228358767
)
2007-10-10 13:52:24 -05:00
Andrew Bartlett
77ffddec19
r13850: Test (and fix) not using SPNEGO at all, but instead using raw NTLMSSP.
...
The switch to turn off SPNEGO in the client is a bit messy, but it works.
Andrew Bartlett
(This used to be commit 085ba80cc8
)
2007-10-10 13:52:15 -05:00
Jelmer Vernooij
c71c86c524
r13842: Make some more functions public.
...
(This used to be commit aac1b99b36
)
2007-10-10 13:52:15 -05:00
Jelmer Vernooij
af30a32b69
r13840: Mark some functions as public.
...
(This used to be commit 9a188eb1f4
)
2007-10-10 13:52:14 -05:00
Jelmer Vernooij
dfc517b053
r13658: More moving around of files:
...
- Collect the generic utility functions into a lib/util/ (a la GLib is
for the GNOME folks)
- Remove even more files from include/
(This used to be commit ba62880f5b
)
2007-10-10 13:52:05 -05:00
Jelmer Vernooij
d3bcaf66a8
r13654: Move some more stuff out of include/
...
(This used to be commit 2ec7bba03a
)
2007-10-10 13:52:05 -05:00
Jelmer Vernooij
559ba6f12a
r13653: Copy headers from the right place
...
(This used to be commit 5e884f156f
)
2007-10-10 13:52:04 -05:00
Jelmer Vernooij
10d88a02d7
r13652: Move some more stuff out off include/
...
(This used to be commit 26bf2a393b
)
2007-10-10 13:52:04 -05:00
Simo Sorce
00fe70e5b9
r13609: Get in the initial work on making ldb async
...
Currently only ldb_ildap is async, the plan
is to first make all backend support the async calls,
and then remove the sync functions from backends and
keep the only in the API.
Modules will need to be transformed along the way.
Simo
(This used to be commit 1e2c13b2d5
)
2007-10-10 13:51:59 -05:00
Stefan Metzmacher
7449f4d803
r13508: some ASN.1 element in LDAP are optional,
...
make it possible to code the difference between a zero length and a NULL DATA_BLOB...
metze
(This used to be commit 54f0b19c55
)
2007-10-10 13:51:56 -05:00
Stefan Metzmacher
f2e88ab7cf
r13506: zero memory as some ASN.1 elements are optional, and we should initialize
...
them for the internal use...
found by 'make valgrindtest'
metze
(This used to be commit 1db9501c52
)
2007-10-10 13:51:56 -05:00
Andrew Tridgell
048704a7e5
r13505: allow servers to bind to non-broadcast interfaces. Servers now
...
specifically ask for iface_n_bcast() and have to check if it returns
NULL, in which case it is a non-broadcast interface
(This used to be commit d004e250b6
)
2007-10-10 13:51:56 -05:00
Andrew Bartlett
93d6990dd4
r13466: Make it easier to understand what this function actually does.
...
Andrew Bartlett
(This used to be commit f075497926
)
2007-10-10 13:51:53 -05:00
Andrew Bartlett
debf1c9a92
r13405: Allow a fallback if SPNEGO is somehow disabled in the client, to just NTLMSSP.
...
Andrew Bartlett
(This used to be commit 3e96975d91
)
2007-10-10 13:51:53 -05:00
James Peach
b7f7adb2e1
r13387: Make sure smbcli_parse_unc reports a failure for strings of
...
the form //server. Make sure failure cases are well-defined.
(This used to be commit e0020df66b
)
2007-10-10 13:51:52 -05:00
Simo Sorce
f7def09a1e
r13372: fixes ... still no joy
...
(This used to be commit 0e2cca9153
)
2007-10-10 13:51:51 -05:00
Simo Sorce
338c410fec
r13361: initial implementation of the vlv control
...
seem still buggy, can't make w2k3 to like it yet
(This used to be commit e1318383e9
)
2007-10-10 13:51:50 -05:00
Simo Sorce
3721bca79d
r13354: Add tests to check that controls work properly
...
Fix asq module, add a second_stage_init to register with rootdse
Fix asq control ldap parsing routines (this was nasty to find out)
(This used to be commit 933a80397d
)
2007-10-10 13:51:48 -05:00
Simo Sorce
ad5e8bbe9d
r13352: Integrate Patch to support the ManageDSAIT control
...
from Pete Rowley <prowley@redhat.com>
(This used to be commit bf20a848fd
)
2007-10-10 13:51:48 -05:00
Stefan Metzmacher
289e9baa1d
r13345: let us replicate with NT4sp6a
...
I don't yet know what the extra data in the start_association call mean...
This also let w2k use WREPL_REPL_INFORM messages to us, but w2k3 doesn't
it do it yet...
metze
(This used to be commit 02d6dfa1da
)
2007-10-10 13:51:47 -05:00
Andrew Bartlett
2e7f35f88f
r13344: Trust SASL to have subtle distinctions between NULL and zero-length
...
responses...
Also trust OpenLDAP to be pedantic about it, breaking connections to AD.
In any case, we now get this 'right' (by nasty overloading hacks, but
hey), and we can now use system-supplied OpenLDAP libs and SASL/GSSAPI
to talk to Samba4.
Andrew Bartlett
(This used to be commit 0cbe18211a
)
2007-10-10 13:51:46 -05:00
Andrew Bartlett
f256a9c55e
r13342: Make the GSSAPI SASL mech actually work, by (shock horror) reading the spec.
...
GSSAPI differs from GSS-SPNEGO in an additional 3 packets, negotiating
a buffer size and what integrity protection/privacy should be used.
I worked off draft-ietf-sasl-gssapi-03, and this works against Win2k3.
I'm doing this in the hope that Apple clients as well as SASL-based
LDAP tools may get a bit further.
I still can't get ldapsearch to work, it fails with the ever-helpful
'Local error'.
Andrew Bartlett
(This used to be commit 3e46289775
)
2007-10-10 13:51:46 -05:00
James Peach
60f8666ae8
r13255: New CIFS dd client for use in performance testing. The guts of this is
...
in client/cifsdd*, which implements a minimal implementation of dd. The
IO path is careful to always perform IO at the requested block size.
There is a very basic test suite in script/tests/test_cifsdd.sh which
covers local and remote IO at a variety of block sizes.
Added to lib/util_str.c is a small set of conv_str_*() functions to
convert strings to the corresponding type.
smbcli_parse_unc is modified to insert NULL terminators after its
hostname and sharename parameters. This allows it to correctly parse a
path of the form //foo/share/path/file.
(This used to be commit cd2f94a658
)
2007-10-10 13:51:39 -05:00
Andrew Bartlett
fd007e5512
r13203: Make this comment clearer.
...
Andrew Bartlett
(This used to be commit 8e2b461669
)
2007-10-10 13:51:33 -05:00
Jelmer Vernooij
106da006c4
r13154: Add some const
...
(This used to be commit 62822a2655
)
2007-10-10 13:51:29 -05:00
Andrew Bartlett
e2ce6fec9c
r13103: Walk the names in the node status request, so I can find a server
...
name, and use that.
(I was trying to find a machine by the name of __SAMBA__)
Andrew Bartlett
(This used to be commit cde044d023
)
2007-10-10 13:51:25 -05:00
Stefan Metzmacher
4326572af2
r12999: fix compiler warnings
...
metze
(This used to be commit ec30a40f04
)
2007-10-10 13:51:15 -05:00
Stefan Metzmacher
828ee2bc6f
r12984: add parse code and ldbsearch cmdline code for
...
NOTIFICATION LDAP Controls
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/ldap_server_notification_oid.asp
this doesn't work yet, but it shows that we need to extend ldb to correctly
handle async requests...
metze
(This used to be commit 1fe6718949
)
2007-10-10 13:51:14 -05:00
Simo Sorce
3b447ab4a1
r12977: Some code to implement the client side of the Dirsync control
...
Still investigating how it works.
Simo.
(This used to be commit bebd403523
)
2007-10-10 13:51:13 -05:00
Stefan Metzmacher
df62387c64
r12932: export function prototypes
...
metze
(This used to be commit 8208a4abf0
)
2007-10-10 13:51:09 -05:00
Simo Sorce
5db0c6b304
r12925: implement client side of ASQ control
...
(This used to be commit dd386bdc6c
)
2007-10-10 13:51:07 -05:00
Simo Sorce
eed0a95128
r12917: fix decoding of ldap controls
...
some more work on timeouts
(This used to be commit a7e2fe3cb3
)
2007-10-10 13:51:02 -05:00
Stefan Metzmacher
23aa4becf2
r12910: fix bug #3069
...
metze
(This used to be commit 1768a698a4
)
2007-10-10 13:51:02 -05:00
Andrew Bartlett
3f8ee534ba
r12862: Need to trim spaces off the end of the node status reply.
...
Andrew Bartlett
(This used to be commit 3e90e7edfa
)
2007-10-10 13:50:55 -05:00
Andrew Bartlett
4b2ed199ca
r12861: Cope when we are not supplied the messaging context. This is just
...
another case where we have to fallback to the node status request.
Andrew Bartlett
(This used to be commit 181064dbcf
)
2007-10-10 13:50:54 -05:00
Andrew Bartlett
b135f4467f
r12858: This moves the libnet_LookupPdc code to use a GetDC request to find
...
the remote server's name, or in the absence of a local nbt_server to
communicate with (or without root access), a node status request.
The result is that we are in a better position to use kerberos, as well
as to remove the 'password server' mandatory parameter for the samsync
and samdump commands. (I need this to put these into SWAT).
The only problem I have is that I must create a messaging context, which
requires a server ID. As a client process, I don't expect to get
messages, but it is currently required for replies, so I generate a
random() number. We probably need the servers to accept connections on
streamed sockets too, for client-only tasks that want IRPC.
Because I wanted to test this code, I have put the NET-API-* tests into
our test scripts, to ensure they pass and keep passing. They are good
frontends onto the libnet system, and I see no reason not to test them.
In doing so the NET-API-RPCCONNECT test was simplified to take a
binding string on the command line, removing duplicate code, and
testing the combinations in the scripts instead.
(I have done a bit of work on the list shares code in libnet_share.c
to make it pass 'make test')
In the future, I would like to extend the libcli/findds.c code (based
off volker's winbind/wb_async_helpers.c, which is why it shows up a bit
odd in the patch) to handle getting multiple name replies, sending a
getdc request to each in turn.
(posted to samba-technical for review, and I'll happily update with
any comments)
Andrew Bartlett
(This used to be commit 7ccddfd351
)
2007-10-10 13:50:54 -05:00
Andrew Bartlett
f55ea8bb3d
r12804: This patch reworks the Samba4 sockets layer to use a socket_address
...
structure that is more generic than just 'IP/port'.
It now passes make test, and has been reviewed and updated by
metze. (Thankyou *very* much).
This passes 'make test' as well as kerberos use (not currently in the
testsuite).
The original purpose of this patch was to have Samba able to pass a
socket address stucture from the BSD layer into the kerberos routines
and back again. It also removes nbt_peer_addr, which was being used
for a similar purpose.
It is a large change, but worthwhile I feel.
Andrew Bartlett
(This used to be commit 88198c4881
)
2007-10-10 13:49:57 -05:00
Jelmer Vernooij
5c8447773f
r12801: Some more include/ cleanups (remove unused macros + move files
...
to specific dirs)
(This used to be commit 243cf760b0
)
2007-10-10 13:49:57 -05:00
Andrew Bartlett
66700b484f
r12747: Add a couple more token tests, used by the kludge ACL module.
...
Andrew Bartlett
(This used to be commit 10eadf4812
)
2007-10-10 13:49:49 -05:00
Simo Sorce
c908d0b2aa
r12733: Merge ldap/ldb controls into main tree
...
There's still lot of work to do but the patch is stable
enough to be pushed into the main samba4 tree.
Simo.
(This used to be commit 77125feaff
)
2007-10-10 13:49:47 -05:00
Stefan Metzmacher
db04cffbbf
r12725: some minor updates
...
metze
(This used to be commit f2e97983f2
)
2007-10-10 13:49:45 -05:00
Jelmer Vernooij
63d718e243
r12696: Reduce the size of include/structs.h
...
(This used to be commit 6391761601
)
2007-10-10 13:49:40 -05:00
Jelmer Vernooij
78c50015bb
r12694: Move some headers to the directory of the subsystem they belong to.
...
(This used to be commit c722f665c9
)
2007-10-10 13:49:39 -05:00
Jelmer Vernooij
bc4aebfaec
r12670: Make a couple of dependencies stricter
...
Re-introduce and use the OUTPUT_TYPE property for MODULEs to force
specific modules to always be included
(This used to be commit f9eede3d40
)
2007-10-10 13:49:35 -05:00
Jelmer Vernooij
d4de4c2d21
r12608: Remove some unused #include lines.
...
(This used to be commit 70e7449318
)
2007-10-10 13:49:03 -05:00
Stefan Metzmacher
964487e4b9
r12602: fix compiler warning
...
metze
(This used to be commit 82d5bdb1e7
)
2007-10-10 13:49:02 -05:00
Jelmer Vernooij
46aa296cc9
r12592: Remove some useless dependencies
...
(This used to be commit ca8db1a0cd
)
2007-10-10 13:49:00 -05:00
Jelmer Vernooij
2cd5ca7d25
r12542: Move some more prototypes out to seperate headers
...
(This used to be commit 0aca5fd513
)
2007-10-10 13:47:55 -05:00
Jelmer Vernooij
acd6a086b3
r12510: Change the DCE/RPC interfaces to take a pointer to a
...
dcerpc_interface_table struct rather then a tuple of interface
name, UUID and version.
This removes the requirement for having a global list of DCE/RPC interfaces,
except for these parts of the code that use that list explicitly
(ndrdump and the scanner torture test).
This should also allow us to remove the hack that put the authservice parameter
in the dcerpc_binding struct as it can now be read directly from
dcerpc_interface_table.
I will now modify some of these functions to take a dcerpc_syntax_id
structure rather then a full dcerpc_interface_table.
(This used to be commit 8aae0f168e
)
2007-10-10 13:47:48 -05:00
Jelmer Vernooij
09c44f6cae
r12500: Use init functions explicitly in a few more places. 'gensec' and 'librpc'
...
are the only two subsystems left to convert.
(This used to be commit f6bbc72996
)
2007-10-10 13:47:46 -05:00
Jelmer Vernooij
d8e35f8828
r12498: Eliminate INIT_OBJ_FILES and ADD_OBJ_FILES. We were not using
...
the difference between these at all, and in the future the
fact that INIT_OBJ_FILES include smb_build.h will be sufficient to
have recompiles at the right time.
(This used to be commit b24f2583ed
)
2007-10-10 13:47:45 -05:00
Stefan Metzmacher
8cf545b0ae
r12370: - if we got a reply without a pending request, mark the socket as dead
...
instead of segfaulting
metze
(This used to be commit 043f5c1054
)
2007-10-10 13:47:31 -05:00
Jelmer Vernooij
ab31a44216
r12254: Add some (hopefully correct) descriptions for libraries that are installed.
...
Install pkg-config files.
(This used to be commit a86abe84e2
)
2007-10-10 13:47:24 -05:00
Stefan Metzmacher
c0c55a8168
r12247: - reject freeing the wrepl_socket inside of wrepl_socket_dead()
...
- free it at the end of wrepl_socket_dead() if needed
metze
(This used to be commit 58285115c8
)
2007-10-10 13:47:24 -05:00
Stefan Metzmacher
e55a7077e6
r12240: if the caller isn't interessted in the reply packet, just free it
...
(mostly use for send_only requests, where we don't have a reply at all)
metze
(This used to be commit a01d5a769c
)
2007-10-10 13:47:23 -05:00
Stefan Metzmacher
d09a32f5d7
r12238: don't crash when an error happens while connecting and the packet_context isn't inplace yet
...
metze
(This used to be commit 064d9409c3
)
2007-10-10 13:47:23 -05:00
Jelmer Vernooij
efe67458c1
r12216: Couple of small fixes: reduce include/includes.h a bit, simplify headers
...
in build/smb_build/, remove unused pstring macros
(This used to be commit 4322962074
)
2007-10-10 13:47:19 -05:00
Stefan Metzmacher
36acd6e79c
r12200: - move the the winsreplication client and server code to the packet_context
...
system
- this needs to be in one big patch, because of the merging code,
that changes client in server connections and the other way around
- use socket_connect_send/_recv() in the client code
metze
(This used to be commit f0105b7fcd
)
2007-10-10 13:47:17 -05:00
Volker Lendecke
078ae0f897
r12161: Fix a memleak and do the -O1 janitor :-)
...
(This used to be commit 82d87d6261
)
2007-10-10 13:47:16 -05:00
Andrew Tridgell
d811ea17bb
r12158: added ldif handlers for the ntSecurityDescriptor attribute, so when
...
displaying security descriptors in ldbsearch or ldbedit you can see
the SDDL version.
This also allows us to specify security descriptors in our
setup/*.ldif files in SDDL format, which is much more convenient than
the NDR binary format!
(This used to be commit 8185731c18
)
2007-10-10 13:47:16 -05:00
Andrew Tridgell
2e4d4a9e28
r12139: - fixed up the ace object flags checking
...
- allow for arbitrary access masks in sddl_encode_ace()
(This used to be commit 5e2b1bd6af
)
2007-10-10 13:47:13 -05:00
Andrew Tridgell
781ed1f5ef
r12138: added use of 2 letter SID codes in sddl_encode_sid()
...
(This used to be commit a0662ae9d3
)
2007-10-10 13:47:13 -05:00
Andrew Tridgell
79eae8ffff
r12137: added sddl_encode(), the reverse of the sddl_decode() function added a
...
couple of days ago. Doesn't yet encode using the shorthand for well
known SIDs.
(This used to be commit 655a4ebe8e
)
2007-10-10 13:47:13 -05:00
Andrew Tridgell
111a920fdb
r12116: got rid of composite_trigger_done() and composite_trigger_error(), and
...
instead make the normal composite_done() and composite_error()
functions automatically trigger a delayed callback if the caller has
had no opportunity to setup a async callback
this removes one of the common mistakes in writing a composite function
(This used to be commit f9413ce792
)
2007-10-10 13:47:11 -05:00
Stefan Metzmacher
89f5d66dfe
r12114: - smb2_keepalive() acts on the smb2_transport
...
- smb2_logoff() acts on the smb2_session
metze
(This used to be commit ae1ca2bb4a
)
2007-10-10 13:47:10 -05:00
Rafal Szczesniak
4a397070b6
r12079: Fix to the comment for sake of completness...
...
rafal
(This used to be commit 7aa40e3a3f
)
2007-10-10 13:47:06 -05:00
Andrew Bartlett
687545e94e
r12062: SASL negotiation now requires a gensec_security context, so that we
...
only try permitted mechanims.
Andrew Bartlett
(This used to be commit 0f50239dc4
)
2007-10-10 13:47:03 -05:00
Stefan Metzmacher
99b344eb14
r12020: fix memory hierachie
...
metze
(This used to be commit 2433800834
)
2007-10-10 13:47:00 -05:00
Andrew Tridgell
540483c01b
r12011: fixed another 'mixed code and declarations' bug
...
(This used to be commit 1eca19d597
)
2007-10-10 13:46:59 -05:00
Andrew Tridgell
f5ed8cc829
r12010: - added support for domain specific SID codes in SDDL strings
...
- added a bunch more tests to LOCAL-SDDL (all the ones from our schema)
- fixed 'mixed coded declarations' bug
(This used to be commit c30e7698e8
)
2007-10-10 13:46:59 -05:00
Andrew Tridgell
fd7fd22e46
r12006: don't require callers to fill in pad bytes in SMB2 calls
...
(This used to be commit 6935765fda
)
2007-10-10 13:46:58 -05:00
Andrew Tridgell
8dfec3305c
r12005: added a SDDL (Security Descriptor Description Language) parser. Not
...
all flags are covered yet, and object aces aren't done yet.
This is needed for ACL support in ldb, as the default security
descriptor for each object class is given by the
defaultSecurityDescriptor attribute in the schema, which is stored in
SDDL format
(This used to be commit dbdeecea01
)
2007-10-10 13:46:58 -05:00
Stefan Metzmacher
28918cd0b0
r11996: don't overwrite the buffercode
...
metze
(This used to be commit fee5b6f407
)
2007-10-10 13:46:57 -05:00
Andrew Tridgell
f5d4623ea5
r11982: ensure the fde event gets freed before the socket itself, as otherwise
...
we get a error from epoll about disabling events for a file descriptor
that is closed
(This used to be commit f327393074
)
2007-10-10 13:46:54 -05:00
Andrew Tridgell
6615907b94
r11980: ronnie worked out that opcode 0xb in SMB2 is in fact ioctl, and that
...
it only appeared to be like a SMBtrans request as it was being called
with function 0x11c017 which is "named pipe read write"
I wonder if this means we could do DCE/RPC over SMB using ntioctl
calls as well?
(This used to be commit f2b8857797
)
2007-10-10 13:46:53 -05:00
Stefan Metzmacher
9d3b3e8395
r11971: add nbt specific continue wrapper
...
metze
(This used to be commit b8c5978df1
)
2007-10-10 13:46:53 -05:00
Tim Potter
03d301ead5
r11967: Fix more 64-bit warnings.
...
(This used to be commit 9c4436a124
)
2007-10-10 13:46:52 -05:00
Andrew Tridgell
9b2cd2e797
r11949: make sure we ask gensec to give us a session key
...
andrew, this answers your question on irc about whether the same
session key mechanisms are used in smb2. They are - the RPC-LSA secret
tests pass fine over ncacn_np on SMB2, which means the session key
must be working
(This used to be commit 91327885a2
)
2007-10-10 13:46:49 -05:00
Stefan Metzmacher
e052c3d66b
r11941: fix cut'n'paste bug
...
metze
(This used to be commit fd77cfa490
)
2007-10-10 13:46:49 -05:00
Andrew Tridgell
1e935fcbde
r11906: opcode 13 appears to be keepalive. Metze guessed this one :-)
...
(This used to be commit afe2323dc1
)
2007-10-10 13:46:47 -05:00
Andrew Tridgell
1e3583475f
r11905: added SMB2_FLUSH as opcode 7. Thanks to metze and volker for help
...
brainstorming this one.
(This used to be commit a969ad592a
)
2007-10-10 13:46:47 -05:00
Andrew Tridgell
6724c0185c
r11903: added smb2_tdis() (opcode 4)
...
(This used to be commit d606b45b5b
)
2007-10-10 13:46:46 -05:00
Andrew Tridgell
a399cd3cea
r11901: added smb2_logoff() support (metze correctly guessed opcode 2 was
...
logoff)
(This used to be commit 6884ce66f2
)
2007-10-10 13:46:45 -05:00
Stefan Metzmacher
d90914dda8
r11895: - reorder some code to make it easier to follow, how the fields appear on the wire
...
- add some comments to the header file, to represent the wire format
metze
(This used to be commit fa98f09f8b
)
2007-10-10 13:46:43 -05:00
Andrew Tridgell
b227b98a6c
r11894: fixed SMB2 trans code for pipe_flags
...
(This used to be commit 02e3cb87c7
)
2007-10-10 13:46:43 -05:00
Andrew Tridgell
cc6891f883
r11893: fixed a dependency problem
...
(This used to be commit 085bf952dc
)
2007-10-10 13:46:42 -05:00
Andrew Tridgell
2f74901802
r11891: - added pipe_flags field in smb2_trans
...
- while running dcerpc over SMB2, the server will occasionally send us
a oh-so-useful STATUS_PENDING result meaning "I don't have a result
for you yet, but I'm working on it". These can be discarded :-)
(This used to be commit 24588a9c49
)
2007-10-10 13:46:42 -05:00
Andrew Tridgell
310fa87509
r11888: - added SMB2 trans support
...
- added session key to SMB2
- renamed 'unknown2' in create to 'impersonation'
(This used to be commit aef915f312
)
2007-10-10 13:46:41 -05:00
Volker Lendecke
8383a3459a
r11885: Add forgotten files
...
(This used to be commit 470cc59529
)
2007-10-10 13:46:41 -05:00
Andrew Tridgell
f7c03b2abe
r11849: added mapping between SMB2 and SMB find/search levels
...
(This used to be commit 77e0cb999c
)
2007-10-10 13:46:38 -05:00
Andrew Tridgell
e8f17538a7
r11848: separate out the info levels common to SMB and SMB2 for raw_search
...
(This used to be commit ed8d307347
)
2007-10-10 13:46:37 -05:00
Volker Lendecke
a6852523d6
r11812: Convert winbind to the async bind routines. Also remove tridge's hack for the
...
winbind "bug" :-)
Volker
(This used to be commit fb9a3c7ef3
)
2007-10-10 13:46:32 -05:00
Andrew Tridgell
fc04e3e795
r11801: - added basic SMB2 find support
...
- added SMB2-SCANFIND test
- cleaned up continue flags in EAs and find requests
(This used to be commit 8792bc07d9
)
2007-10-10 13:46:29 -05:00
Andrew Tridgell
7d6f36682e
r11800: - filled in unknown fields in SMB2 all_info level
...
- allow setting of the ALL_EAS flags bits in SMB2 getinfo
(This used to be commit 8c7c54a46d
)
2007-10-10 13:46:29 -05:00
Volker Lendecke
771d4fab26
r11796: Two more uses of !composite_is_ok
...
(This used to be commit 7256157d01
)
2007-10-10 13:46:28 -05:00
Andrew Tridgell
27bab09cdb
r11795: used a couple more of volkers composite helper functions. They
...
certainly make the code more compact.
(This used to be commit 872e2a49d8
)
2007-10-10 13:46:28 -05:00
Andrew Tridgell
552c0111a1
r11791: simplify the SMB2 connect code following some suggestions from volker
...
(This used to be commit 71e3e61941
)
2007-10-10 13:46:28 -05:00
Andrew Tridgell
d5f37ecf94
r11780: it turns out that the MxAc tag isn't a security descriptor, its a
...
request that the server return its own MxAc blob which contains the
maximum allowed access_mask for the returned file handle
(This used to be commit c0288aa8cd
)
2007-10-10 13:46:26 -05:00
Andrew Tridgell
3922b68d13
r11777: display the security_descriptor in torture_smb2_all_info()
...
(This used to be commit d1067fc25d
)
2007-10-10 13:46:25 -05:00
Andrew Tridgell
c8c7fb2492
r11775: added support for creating files on SMB2 with initial EA lists and an ACL
...
(This used to be commit ff19709298
)
2007-10-10 13:46:25 -05:00
Andrew Tridgell
2ff21db535
r11771: - split out the setinfo blob construction in the libcli/raw code
...
- added a smb2_setinfo call
- added smb2_setinfo_file*() calls
(This used to be commit da0b6fb936
)
2007-10-10 13:46:24 -05:00
Andrew Tridgell
eedb92ce72
r11758: unified the parse code for the SMB and SMB2 qfsinfo and qfileinfo calls
...
(This used to be commit ba897e537b
)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
c3cd4a0087
r11756: split out the parsers for the pass-through levels of QFSINFO and
...
QFILEINFO levels in trans2, so they can be shared with SMB2
(This used to be commit 5ca2d609e6
)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
7a43b32c3b
r11755: added names for all of the SMB2 qfs info levels (they all map exactly
...
to equivalent SMB qfs levels)
(This used to be commit 4ce48d02aa
)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
fe996e8ac6
r11754: make the SMB2 blob push routines take offsets, so they fit better with
...
the rest of the packet construction code
(This used to be commit 387ec2b17f
)
2007-10-10 13:46:23 -05:00
Andrew Tridgell
94ae534128
r11752: setup the dynamic pointer for incoming packets too
...
(This used to be commit 583f3c415e
)
2007-10-10 13:46:22 -05:00
Andrew Tridgell
1c71db99aa
r11751: fixed the req->out.size calculation (it needs to be the complete
...
request size, including dynamic portion)
(This used to be commit 1b5cdf92cc
)
2007-10-10 13:46:22 -05:00
Stefan Metzmacher
fb90bebab6
r11743: - push the length at the correct offset
...
- let us push empty strings
metze
(This used to be commit 17c4b6298d
)
2007-10-10 13:46:20 -05:00
Stefan Metzmacher
ed069c1771
r11742: fix pushing of 0 length blobs
...
metze
(This used to be commit e985ab117c
)
2007-10-10 13:46:20 -05:00
Stefan Metzmacher
e9eb560685
r11741: - the buffer code (first 2 bytes in the SMB2 body) seem to be the length
...
of the fixed body part, and +1 if there's a dynamic part
- there're 3 types of dynamic blobs
with uint16_t offset/uint16_t size
with uint16_t offset/uint32_t size
with uint32_t offset/uint32_t size /* aligned to 8 bytes */
- strings are transmitted in UTF-16 with no termination and
packet into a uint16/uint16 blob
metze
(This used to be commit 79103c51e5
)
2007-10-10 13:46:20 -05:00
Stefan Metzmacher
43fa1b6dbd
r11740: add some EA error codes
...
metze
(This used to be commit b1afcced39
)
2007-10-10 13:46:20 -05:00
Andrew Tridgell
b16543648e
r11737: use _smb_setlen2() to allow for 24 bit lengths in SMB2 packets
...
(This used to be commit 54fda24379
)
2007-10-10 13:46:19 -05:00
Andrew Tridgell
ab0d0f0623
r11735: fixed the ALL_EAS smb2 level parsing
...
(This used to be commit dd24c0e80c
)
2007-10-10 13:46:19 -05:00
Andrew Tridgell
8dc40d6803
r11731: fixed typo noticed by metze
...
(This used to be commit e51fb2b44a
)
2007-10-10 13:46:19 -05:00
Andrew Tridgell
b51703baf1
r11730: added parsing and tests for a bunch more SMB2 getinfo levels
...
(This used to be commit ca65bf0235
)
2007-10-10 13:46:18 -05:00
Stefan Metzmacher
de5d71aebe
r11722: make the smb2_push/pull functions take a smb2_request_buffer
...
and the pull ones also a TALLOC_CTX, then we can reuse this functions
in the server later
metze
(This used to be commit 9b616516ca
)
2007-10-10 13:46:18 -05:00
Volker Lendecke
61317df8aa
r11721: Fix warnings
...
(This used to be commit d760583e38
)
2007-10-10 13:46:17 -05:00
Andrew Tridgell
c6395a30b0
r11715: added SMB2 read and write requests
...
(This used to be commit d3556cbfa3
)
2007-10-10 13:46:17 -05:00
Andrew Tridgell
6f49a2404c
r11714: put in a workaround for a winbind problem volker asked me about. The
...
problem is that winbind currently relies on being able to receive on a
smb connection from within the same connections receive routine. This
means it relies on a non-serialised connection, so disable the
serialisation until winbind is fixed.
The correct fix will be to get rid of full_request() in dcerpc.c so
that bind requests can be fully async.
(This used to be commit c4115293d8
)
2007-10-10 13:46:17 -05:00
Andrew Tridgell
614950aed3
r11713: separate out the setting of the fde in the packet context from the
...
enabling of packet serialisation
(This used to be commit 6a47cd65a8
)
2007-10-10 13:46:17 -05:00
Andrew Tridgell
72565088bc
r11700: added structure definitions for many of the getinfo structures
...
(This used to be commit 2919d42286
)
2007-10-10 13:46:15 -05:00
Andrew Tridgell
36e4374b1d
r11698: added some more level names
...
(This used to be commit 845bbef803
)
2007-10-10 13:46:15 -05:00
Andrew Tridgell
67a85b3f1b
r11697: - added a generic SMB2 getinfo call
...
- added a SMB2-SCANGETINFO test for scanning for available info levels
- added names for the info levels I recognise to smb2.h
(This used to be commit fe5986067e
)
2007-10-10 13:46:15 -05:00
Andrew Tridgell
a1562e2380
r11696: added a few more opcode names
...
(This used to be commit 2a45476e94
)
2007-10-10 13:46:14 -05:00
Andrew Tridgell
56712033d5
r11694: fixed 2 valgrind errors
...
(This used to be commit 6381fe7241
)
2007-10-10 13:46:14 -05:00
Andrew Tridgell
e27ba5e4c6
r11693: added a full async composite function for SMB2 that does:
...
- name resolution
- socket connect
- negprot
- multi-stage session setup
- tcon
(This used to be commit c1a8e866fe
)
2007-10-10 13:46:14 -05:00
Andrew Tridgell
2b7ee2ceee
r11692: added a full composite (async) spnego session setup for SMB2. This
...
simplies the torture code a lot.
(This used to be commit 7bf1046fbb
)
2007-10-10 13:46:14 -05:00
Andrew Tridgell
91e1893741
r11691: added reply buffer code checks and oplock flags for create request/reply
...
(This used to be commit 26ed781375
)
2007-10-10 13:46:13 -05:00
Andrew Tridgell
222e197b84
r11687: filled in 3 more fields in the close reply
...
(This used to be commit 3a0abb3ff0
)
2007-10-10 13:46:13 -05:00
Andrew Tridgell
be77dac05f
r11683: fixed create call
...
(This used to be commit 02d7331903
)
2007-10-10 13:46:13 -05:00
Andrew Tridgell
b034156bd5
r11682: filled in access_mask in tcon reply
...
(This used to be commit 173a213f91
)
2007-10-10 13:46:13 -05:00
Andrew Tridgell
461ccc557b
r11681: filled in a few more smb2_create() fields
...
(This used to be commit a95413568f
)
2007-10-10 13:46:13 -05:00
Andrew Tridgell
1b2e8caad3
r11680: added smb2_close(). This also demonstrates that file handles are 16
...
bytes, not 20 bytes (metze, you were right!)
(This used to be commit d3bcc6628c
)
2007-10-10 13:46:12 -05:00
Andrew Tridgell
2e753f8518
r11679: opening/creating files in SMB2 now works. Lots of unknown parameters
...
in the call tho.
(This used to be commit 548fbd86b3
)
2007-10-10 13:46:12 -05:00
Stefan Metzmacher
7935df168f
r11675: a more general way of getting rid of compiler warnings and errors
...
metze
(This used to be commit 653f5ccd61
)
2007-10-10 13:46:11 -05:00
Andrew Tridgell
3e54c36fa4
r11674: SMB2 tree connect now works. We do 2 session setups and 2 tree
...
connects, giving the following output:
Running SMB2-CONNECT
Negprot reply:
current_time = Fri Nov 11 20:10:42 2005 EST
boot_time = Sat Nov 12 10:34:33 2005 EST
Session setup gave UID 0x40000000071
Session setup gave UID 0x140000000075
Tree connect gave tid = 0x7500000001
Tree connect gave tid = 0x7500000005
SMB2-CONNECT took 0.049024 secs
(This used to be commit a24a4c3110
)
2007-10-10 13:46:11 -05:00
Stefan Metzmacher
5f58c67b82
r11671: - make sure req is initialized
...
- only free the buffer when there's no request
- call async callback on error
metze
(This used to be commit 2084d62dd5
)
2007-10-10 13:46:10 -05:00
Stefan Metzmacher
d9d90e105b
r11670: fix the build
...
metze
(This used to be commit c0eebe293f
)
2007-10-10 13:46:10 -05:00
Stefan Metzmacher
3015c6ba04
r11669: - make sure req is initialized
...
- call async callback on error
metze
(This used to be commit 43aa5cffd3
)
2007-10-10 13:46:10 -05:00
Andrew Tridgell
7a78d2d6b0
r11668: yay! we get a successful session setup with SMB2, and get back a 64bit uid
...
(This used to be commit 72b34a7c1b
)
2007-10-10 13:46:10 -05:00
Andrew Tridgell
86c1370cb0
r11666: filled in the basic session setup. Vista happily accepts the first
...
stage of the session setup, and waits for more.
(This used to be commit 804c229c3b
)
2007-10-10 13:46:09 -05:00
Andrew Tridgell
555b45e12c
r11665: started to put some meat on the structure used for the SMB2 library
...
the call definitions will be in smb2_calls.h, which will play a
similar role that smb_interfaces.h plays for the old SMB protocol
(This used to be commit 4ef3902a8a
)
2007-10-10 13:46:09 -05:00
Andrew Tridgell
ac293f8534
r11662: the beginnings of a SMB2 client library. Very hackish, meant for experimentation
...
(This used to be commit 68422dc73f
)
2007-10-10 13:46:09 -05:00
Andrew Tridgell
b18ed75a75
r11660: - the libcli/raw/ lib no longer uses the SMBCLI_REQUEST_SEND state, or
...
the associated send queue
- fixed negnowait to not watch for the SMBCLI_REQUEST_SEND state
(This used to be commit d19235ede5
)
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
3b42d207ef
r11649: - add support for ntcancel replies (they only happen in error cases,
...
e.g when you supply an invalid TID or VUID)
- as we don't yet understand how to check the smb_signing of this
replies, we just ignore the whole packet
abartlet,jra,tridge:
can someone try to find out how to create and verify
the signatures for this replies.
what I noticed is that still use the increment by one for the request,
and later requests are still generated fine, only the generating and verifying
of the ntcancel replies make problems
metze
(This used to be commit e6eb0fd2c2
)
2007-10-10 13:46:08 -05:00
Stefan Metzmacher
507286dbcd
r11647: add smbcli_ prefix
...
metze
(This used to be commit 356e7d037c
)
2007-10-10 13:46:07 -05:00
Stefan Metzmacher
aecff39aac
r11644: free the buffer when it's not used
...
metze
(This used to be commit 16f2d92618
)
2007-10-10 13:46:07 -05:00
Andrew Tridgell
872b821fca
r11636: a bit neater solution to the nt_cancel problem
...
(This used to be commit ba7864b07e
)
2007-10-10 13:46:03 -05:00
Stefan Metzmacher
7118df6df0
r11635: fix a handling of packet_send in the smb client lib
...
this was cause of the PANIC on the build farm on metze01
as we use req->out.buffer from the old request in the smb_raw_ntcancel()
and send a 0 TID, that causes our server code to crash
(a fix for the server code will follow)
metze
(This used to be commit 97cd824e44
)
2007-10-10 13:46:03 -05:00
Andrew Tridgell
4c9ba2ffa1
r11632: removed 2 unused functions
...
(This used to be commit fa904afed9
)
2007-10-10 13:46:02 -05:00
Tim Potter
0eeedb97a5
r11626: Fix unhandled enum in case statement warnings by noting appropriately
...
that some values aren't handled. The remaining warnings I think are
actual bugs or required functionality that is missing (mostly lack of
server side Unix extensions).
(This used to be commit 03c7da27a0
)
2007-10-10 13:46:01 -05:00
Andrew Tridgell
65baaafc34
r11620: switch the ldap client code over to using the generic packet code
...
(This used to be commit 1d29ad2a27
)
2007-10-10 13:45:59 -05:00
Andrew Tridgell
ac842774e4
r11609: fixed handling of one way requests with new send code
...
(This used to be commit d2b568a111
)
2007-10-10 13:45:58 -05:00
Andrew Tridgell
dce04d193e
r11606: use the generic packet send code in libcli/raw/
...
(This used to be commit 0bcea45b15
)
2007-10-10 13:45:57 -05:00
Andrew Tridgell
1c07c25322
r11596: switched the libcli/raw/ code over to using the lib/stream/ generic
...
packet parsing code. This simplifies the logic in the raw client
library a fair bit
(This used to be commit f8d43f1f67
)
2007-10-10 13:45:56 -05:00
Stefan Metzmacher
c4a0e36143
r11546: add more errno ntstatus mappings, to get more usefull errors from socket_wrapper
...
metze
(This used to be commit 6375a9a95d
)
2007-10-10 13:45:52 -05:00
Volker Lendecke
0ed6a35f00
r11533: Be a bit less intrusive
...
(This used to be commit f341c8b4c8
)
2007-10-10 13:45:50 -05:00
Volker Lendecke
08964b9de8
r11532: Enable kerberos session setup for winbind smb connections
...
(This used to be commit f0e4075db5
)
2007-10-10 13:45:50 -05:00