Jelmer Vernooij
df408d056e
r26672: Janitorial: Remove uses of global_loadparm.
...
(This used to be commit 18cd08623e
)
2008-01-05 13:06:03 -06:00
Jelmer Vernooij
7d5f0e0893
r26639: librpc: Pass iconv convenience on from RPC connection to NDR library, so it can be overridden by OpenChange.
...
(This used to be commit 2f29f80e07
)
2008-01-01 16:12:15 -06:00
Jelmer Vernooij
86dc05e99f
r26638: libndr: Require explicitly specifying iconv_convenience for ndr_struct_push_blob().
...
(This used to be commit 61ad78ac98
)
2008-01-01 16:12:11 -06:00
Jelmer Vernooij
a2cea02584
r26430: require explicit specification of loadparm context.
...
(This used to be commit 1b947fe0e6
)
2007-12-21 05:49:58 +01:00
Jelmer Vernooij
d891c0c74a
r26429: Avoid use of global_smb_iconv_convenience.
...
(This used to be commit d37136b7ab
)
2007-12-21 05:49:56 +01:00
Jelmer Vernooij
b65dba2245
r26355: Eliminate global_loadparm in more places.
...
(This used to be commit 5d589a0d94
)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
a72c5053c5
r26353: Remove use of global_loadparm.
...
(This used to be commit 17637e4490
)
2007-12-21 05:48:57 +01:00
Jelmer Vernooij
39ee38d9c1
r26316: Use contexts for conversion functions.
...
(This used to be commit f6420d933b
)
2007-12-21 05:48:30 +01:00
Jelmer Vernooij
b83a7a135f
r26268: Avoid more use of global_loadparm - put lp_ctx in smb_server and wbsrv_connection.
...
(This used to be commit 7c00866423
)
2007-12-21 05:47:47 +01:00
Jelmer Vernooij
ecea5ce245
r26260: Store loadparm context in gensec context.
...
(This used to be commit b9e3a4862e
)
2007-12-21 05:47:34 +01:00
Stefan Metzmacher
529763a9aa
r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)
...
lib/messaging/
lib/registry/
lib/ldb-samba/
librpc/rpc/
auth/auth_winbind.c
auth/gensec/
auth/kerberos/
dsdb/repl/
dsdb/samdb/
dsdb/schema/
torture/
cluster/ctdb/
kdc/
ntvfs/ipc/
torture/rap/
ntvfs/
utils/getntacl.c
ntptr/
smb_server/
libcli/wrepl/
wrepl_server/
libcli/cldap/
libcli/dgram/
libcli/ldap/
libcli/raw/
libcli/nbt/
libnet/
winbind/
rpc_server/
metze
(This used to be commit 6223c7fddc
)
2007-12-21 05:45:02 +01:00
Jelmer Vernooij
0c56f8dac3
r25551: Convert to standard bool type.
...
(This used to be commit c9651e2c5c
)
2007-10-10 15:07:54 -05:00
Jelmer Vernooij
37d53832a4
r25398: Parse loadparm context to all lp_*() functions.
...
(This used to be commit 3fcc960839
)
2007-10-10 15:07:25 -05:00
Jelmer Vernooij
98b57d5eb6
r25035: Fix some more warnings, use service pointer rather than service number in more places.
...
(This used to be commit df9cebcb97
)
2007-10-10 15:05:43 -05:00
Jelmer Vernooij
ffeee68e4b
r25026: Move param/param.h out of includes.h
...
(This used to be commit abe8349f9b
)
2007-10-10 15:05:38 -05:00
Andrew Tridgell
0479a2f1cb
r23792: convert Samba4 to GPLv3
...
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
(This used to be commit fcf38a38ac
)
2007-10-10 14:59:12 -05:00
Stefan Metzmacher
42c1ef4025
r23067: use 'const union smb_search_data *file' also in the server code to get rid
...
of compiler warnings in the cifs backend
metze
(This used to be commit 34ef07b1f5
)
2007-10-10 14:52:47 -05:00
Stefan Metzmacher
6eaf8ee849
r23045: forward SMB2 oplock breaks to the client
...
metze
(This used to be commit 577acc198b
)
2007-10-10 14:52:44 -05:00
Stefan Metzmacher
10498e8a72
r23044: - use uint32_t for handle id's
...
- include the session vuid in the SMB2 128-Bit wire handles
as SMB2 oplock breaks doesn't include a TID or VUID in the header
we need to make sure the handle is unique for the whole TCP connection
metze
(This used to be commit 7c29b8a7e6
)
2007-10-10 14:52:44 -05:00
Andrew Tridgell
d3e28ccd48
r23020: a better fix for the memory leak - this one doesn't stuff up spnego :)
...
(This used to be commit 9a8da730a7
)
2007-10-10 14:52:40 -05:00
Stefan Metzmacher
bf62b6642c
r22866: handle incoming chained smb2 requests in our server code to let
...
the windows explorer in longhorn beta3 work.
metze
(This used to be commit 2390c9f24d
)
2007-10-10 14:52:26 -05:00
Stefan Metzmacher
4eb1c753ab
r22843: pass smb2 lock requests to the ntvfs layer
...
metze
(This used to be commit 7fa00381ef
)
2007-10-10 14:52:24 -05:00
Andrew Bartlett
13dbee3ffe
r19598: Ahead of a merge to current lorikeet-heimdal:
...
Break up auth/auth.h not to include the world.
Add credentials_krb5.h with the kerberos dependent prototypes.
Andrew Bartlett
(This used to be commit 2b569c42e0
)
2007-10-10 14:25:00 -05:00
Volker Lendecke
000698d643
r18686: Fix typo protocl->protocol
...
(This used to be commit 14b88fefa0
)
2007-10-10 14:19:02 -05:00
Andrew Tridgell
30ee8beb93
r18301: I discovered how to load the warnings from a build farm build into
...
emacs compile mode (hint, paste to a file, and compile as "cat
filename").
This allowed me to fix nearly all the warnings for a IA_64 SuSE build
very quickly.
(This used to be commit eba6c84eff
)
2007-10-10 14:18:04 -05:00
Stefan Metzmacher
c5148cd9cd
r17360: add some comments
...
metze
(This used to be commit 3d849f9d25
)
2007-10-10 14:15:19 -05:00
Stefan Metzmacher
7a845bcb01
r17341: pass a messaging context to auth_context_create()
...
and gensec_server_start().
calling them with NULL for event context or messaging context
is no longer allowed!
metze
(This used to be commit 679ac74e71
)
2007-10-10 14:15:17 -05:00
Andrew Bartlett
34bf6f60af
r17297: Some compilers don't seem to like the ;;
...
Andrew Bartlett
(This used to be commit f814fae400
)
2007-10-10 14:15:07 -05:00
Stefan Metzmacher
28b8ec0156
r17268: change the smb2 session setup to use the new gensec_update_send/recv() api
...
metze
(This used to be commit 14ecc56343
)
2007-10-10 14:10:25 -05:00
Simo Sorce
9c66f601f1
r17206: Add a modular API for share configuration.
...
Commit the classic backwards compatible module which is the default one
(This used to be commit a89cc346b9
)
2007-10-10 14:10:18 -05:00
Stefan Metzmacher
8075ce63fd
r17084: implement SMB2 Cancel in the server,
...
that makes it possible for clients to cancel
async requests, like NOTIFY...
metze
(This used to be commit eaccd3c435
)
2007-10-10 14:10:12 -05:00
Stefan Metzmacher
39b7ae11ac
r17012: don't try to send any data when the socket is gone already...
...
(fixes crash bugs)
metze
(This used to be commit b7418aec33
)
2007-10-10 14:10:08 -05:00
Stefan Metzmacher
669e5d0fab
r17009: set the protocol version correct
...
metze
(This used to be commit 24ec382560
)
2007-10-10 14:10:07 -05:00
Stefan Metzmacher
b73a3ad21b
r16989: implement SMB2 Notify in the frontend
...
metze
(This used to be commit 156bd4620c
)
2007-10-10 14:10:07 -05:00
Stefan Metzmacher
3b36a85798
r16950: remove the smb mid from the ntvfs layer and keep a list of pending
...
requests on the smbsrv_connection, to be able to match then on
ntcancel
metze
(This used to be commit 04f0d3d031
)
2007-10-10 14:10:02 -05:00
Stefan Metzmacher
5468516f9a
r16918: the SMB2 Ioctls are sometimes called with a wildcard handle
...
the operation doesn't need a valid file handle in that case
metze
(This used to be commit d41a83d559
)
2007-10-10 14:10:00 -05:00
Stefan Metzmacher
41992489d2
r16913: better return the same values as vista beta2
...
metze
(This used to be commit ae9c007324
)
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
ac857dcfed
r16912: I messed up the numbers for ipc and print shares...
...
This caused vista beta2 to not do any rpc calls
against samba4
metze
(This used to be commit b42d918d56
)
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
29f3389fc0
r16911: the TID is only 32 bits...don't overwrite parts of the UID field
...
metze
(This used to be commit 7db393e5ea
)
2007-10-10 14:09:59 -05:00
Stefan Metzmacher
627f49d8c9
r16910: - don't search the wildcard handle
...
(a handle with all bits set to 1 is justed for some
SMB2 Ioctl calls...)
- don't crash if we didn't find the tcon
metze
(This used to be commit 27087818c7
)
2007-10-10 14:09:58 -05:00
Stefan Metzmacher
eb75ecbccf
r16889: implement SMB2 Ioctl in the frontend
...
metze
(This used to be commit 90b0ae53e4
)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
a3797ff66a
r16875: implement SMB2 Find in the frontend
...
metze
(This used to be commit 58bed7322c
)
2007-10-10 14:09:56 -05:00
Stefan Metzmacher
e8b61d7cc8
r16872: when we know the data length we can preallocate the buffer
...
and avoid a realloc
metze
(This used to be commit 51d59d23a1
)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
f0f7070ad7
r16870: copy over the status from the ntvfs request to the smb2 request
...
so that smb2srv_setup_reply() doesn't push uninitialized data
(found by valgrind)
metze
(This used to be commit 1a1fd2747d
)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
cf901ad491
r16869: - if we know the blob length, we can preallocated the memory
...
and avoid a realloc in smb2_push_*
- don't overwrite the first data byte
metze
(This used to be commit 7761a2a595
)
2007-10-10 14:09:55 -05:00
Stefan Metzmacher
21af3847a6
r16740: just say the directory is empty
...
metze
(This used to be commit 6326bb901f
)
2007-10-10 14:09:43 -05:00
Stefan Metzmacher
dd44e2415c
r16738: vista beta2 use FILE_CLOSED as error for an invalid file handle
...
metze
(This used to be commit fa35ddcaf9
)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
6acd9aed93
r16734: the 2 bytes after the opcode and before the flags,
...
is no padding...
the following patch is needed for vista beta2 to connect to samba4
metze
(This used to be commit 58baae8fc4
)
2007-10-10 14:09:42 -05:00
Stefan Metzmacher
a18fc61d4f
r16733: implement SMB2 SetInfo
...
metze
(This used to be commit 9b6f74778f
)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
b20c00f718
r16732: use the given macros
...
metze
(This used to be commit 6d5c74c38c
)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
2f60a2bc7a
r16731: send a better error code, required for vista-beta2 client
...
metze
(This used to be commit a251e72206
)
2007-10-10 14:09:41 -05:00
Stefan Metzmacher
63d0c5a057
r16708: the packet format of SMB2 SessionSetup has changed,
...
there're 8 more unknown bytes...
Note:
- vista-CTP also support this as a server,
but uses the old format as client
- but vista-beta2 only uses and accept the new format
metze
(This used to be commit b3bdd4afde
)
2007-10-10 14:09:40 -05:00
Stefan Metzmacher
bd0dcebe36
r16705: fix a bug found by valgrind...
...
as we setup the 1 padding byte for non present dynamic part,
we need to overwrite it when we're getting a real dynamic part,
so we need to remove the buf->size +=1 when we do the first
push to the dynamic part (when buf->dynamic is still but->body + buf->body_fixed)
metze
(This used to be commit f309209629
)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
d63dd113ae
r16699: the layout of SMB2 Read and Write is identical...
...
so we know that the 9th bytes is just uninitialized padding
metze
(This used to be commit f97a21b970
)
2007-10-10 14:09:39 -05:00
Stefan Metzmacher
826597bfa8
r16670: try to match the vista error codes a bit more
...
metze
(This used to be commit 1a4978118d
)
2007-10-10 14:09:37 -05:00
Stefan Metzmacher
bcc9e8af30
r16666: implement setting of security_descriptors via SMB2 SetInfo
...
metze
(This used to be commit 6908582f68
)
2007-10-10 14:09:36 -05:00
Stefan Metzmacher
ca044dcd3a
r16568: add parsing code for SMB2 SetInfo
...
metze
(This used to be commit 70cc992843
)
2007-10-10 14:09:35 -05:00
Stefan Metzmacher
74fe06832a
r16520: move smb2srv_break_recv back to fileio.c
...
metze
(This used to be commit cdee9b2168
)
2007-10-10 14:09:31 -05:00
Stefan Metzmacher
98024a8125
r16467: implement SMB2 GetInfo server code
...
metze
(This used to be commit 49b5b3cd58
)
2007-10-10 14:09:30 -05:00
Stefan Metzmacher
74d58ab06f
r16456: return on error...
...
metze
(This used to be commit 44ab067d14
)
2007-10-10 14:09:16 -05:00
Stefan Metzmacher
f8dc3bbf9f
r16410: remove some warnings of talloc_steal() usage without target
...
I only commit this as this is used in a global macro
tridge: we should try to get rid of this warning without using
(void)talloc_steal(ctx, ptr);
everywhere!!!
metze
(This used to be commit 3f8ce6d680
)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
1fd1e2ba58
r16407: add parsing code the SMB2 GetInfo in the server
...
metze
(This used to be commit c4755c83c6
)
2007-10-10 14:09:13 -05:00
Stefan Metzmacher
184c28844d
r15803: the SMB2 server gives NT_STATUS_NOT_FOUND instead of NT_STATUS_INVALID_HANDLE
...
metze
(This used to be commit aa98aad097
)
2007-10-10 14:08:25 -05:00
Stefan Metzmacher
c51dfa7926
r15802: merge tridge's fix to the SMB2 server
...
metze
(This used to be commit 2ea15e9d28
)
2007-10-10 14:08:24 -05:00
Stefan Metzmacher
6ba94bb12f
r15771: this should be a o32s32 blob
...
metze
(This used to be commit fdfa6dcc97
)
2007-10-10 14:08:17 -05:00
Stefan Metzmacher
1911475976
r15770: when there's a dynamic body, we need to send the first byte even if the
...
dynamic size if 0
metze
(This used to be commit c7e8e79d75
)
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
e0dcbe8dd1
r15769: this functions belong to params/ so move it.
...
metze
(This used to be commit 9c4c40772b
)
2007-10-10 14:08:16 -05:00
Stefan Metzmacher
e23cc70a72
r15760: - add RAW_READ_SMB2 => generic mapping
...
- Implement SMB2 Read
metze
(This used to be commit d0ac0c5af4
)
2007-10-10 14:08:15 -05:00
Stefan Metzmacher
49012954d0
r15758: - handle RAW_FLUSH_SMB2 in the posix ntvfs backend
...
- Implement SMB2 Flush
metze
(This used to be commit 41d87ebe35
)
2007-10-10 14:08:15 -05:00
Stefan Metzmacher
772c492840
r15757: - add RAW_WRITE_SMB2 => generic mapping
...
- implement SMB2 Write
metze
(This used to be commit 5ab6f304f8
)
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
183fb2bd4b
r15754: - implement SMB2 Close
...
- add RAW_CLOSE_SMB2 generic mapping
metze
(This used to be commit 41bc3cfc82
)
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
c2c5f78f11
r15753: implement SMB2 Create
...
metze
(This used to be commit 65b67a8af6
)
2007-10-10 14:08:14 -05:00
Stefan Metzmacher
3cb64219e2
r15751: thanks to talloc_get_type() I noticed that I used smbsrv_request in the smb2srv code
...
metze
(This used to be commit 6c304a1a5f
)
2007-10-10 14:08:13 -05:00
Stefan Metzmacher
476a6253a6
r15749: - pass in a dummy oplock callback
...
- pass in SMB2 ntvfs_handle callbacks
metze
(This used to be commit 338aee88d4
)
2007-10-10 14:08:13 -05:00
Stefan Metzmacher
7442613a53
r15748: - implement SMB2 TreeConnect server code
...
TODO: pass in oplock and handle callbacks, but as we don't do file access
yet, it's no problem to skip them
metze
(This used to be commit 4ae4a742fc
)
2007-10-10 14:08:12 -05:00
Stefan Metzmacher
607e97bef0
r15746: - reorder elements of smb2srv_request
...
- move SMB2 specific elements to the end
metze
(This used to be commit 7d2087bd1b
)
2007-10-10 14:08:12 -05:00
Stefan Metzmacher
44dc58fe16
r15743: use union smb_tcon
...
metze
(This used to be commit 012a08cfb9
)
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
681a7f21e2
r15742: use union smb_sessetup
...
metze
(This used to be commit de7e856a46
)
2007-10-10 14:08:11 -05:00
Stefan Metzmacher
5761c59ef7
r15535: fix the build
...
metze
(This used to be commit 297868325f
)
2007-10-10 14:05:55 -05:00
Stefan Metzmacher
bd6dd99eb9
r15533: with this vista does a fine SMB2 TreeConnect against samba4
...
metze
(This used to be commit 6c920d21a1
)
2007-10-10 14:05:54 -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
Jelmer Vernooij
0199eac20d
r15314: Fix recursive dependency hack for static libs. Should fix the build
...
on most systems.
(This used to be commit c0ab0f4ed4
)
2007-10-10 14:05:09 -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
bc141c7957
r15304: Fix smbd build, more updates on getting --enable-dso to build again
...
(This used to be commit 3ef9326386
)
2007-10-10 14:05:08 -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
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
Stefan Metzmacher
316269a075
r14739: keep the last request time for the smbsrv_connection,
...
smbsrv_session and smbsrv_tcon for management tools
metze
(This used to be commit 2c87f210e9
)
2007-10-10 13:59:18 -05:00
Stefan Metzmacher
2e7df84576
r14456: don't access the smbsrv_tcon inside the ntvfs modules
...
metze
(This used to be commit 5709c1c4e1
)
2007-10-10 13:57:26 -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
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
Stefan Metzmacher
d8503c6ba1
r13860: - add support for SMB2 ("SMB 2.001") negotiation in SMB negprot requests
...
- the default max protocol is still NT1
metze
(This used to be commit d1bae931b3
)
2007-10-10 13:52:17 -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
d4de4c2d21
r12608: Remove some unused #include lines.
...
(This used to be commit 70e7449318
)
2007-10-10 13:49:03 -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
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
3edfa552a2
r12113: in SMB2 we should only allocate a new session
...
when the client sends UID = 0, otherwise we return
NT_STATUS_USER_SESSION_DELETED
metze
(This used to be commit 15973be48e
)
2007-10-10 13:47:10 -05:00
Stefan Metzmacher
273f340376
r12102: for SMB2 we need to allocate tcons per session
...
metze
(This used to be commit 4d527ac005
)
2007-10-10 13:47:09 -05:00
Stefan Metzmacher
6b1ee03c53
r12095: the most SMB2 opcodes need a valid session and tcon,
...
metze
(This used to be commit 40b301c6bd
)
2007-10-10 13:47:09 -05:00