summaryrefslogtreecommitdiff
path: root/source4/smb_server
AgeCommit message (Collapse)AuthorFilesLines
2008-05-21fixed SMB2 flush call, and added flush to gentest_smb2Andrew Tridgell1-4/+3
(This used to be commit c52fe1fe1c77636d87355d3c4baa66e052fe9008)
2008-05-21fixed SMB2 lockingAndrew Tridgell2-9/+23
- SMB2 locking is different in several ways from SMB locking. To fix it properly we will need a new generic mapping structure for locking, but for now do a best effort mapping - added locking to gentest_smb2 (This used to be commit ea6d9cf602302adafe0f9d5f5f90a9b26d1ead6f)
2008-05-19Merge commit 'origin/v4-0-test' into vfs_smb2Andrew Tridgell3-8/+10
(This used to be commit 733937e87a1adcc19492ea2bd138e705701901b6)
2008-05-18Fix a couple (well, little more than that..) of typos.Jelmer Vernooij3-4/+4
(This used to be commit a6b52119940a900fb0de3864b8bca94e2965cc24)
2008-05-18Create prototype headers from Makefile directory, without smb_build in the ↵Jelmer Vernooij3-4/+6
middle. (This used to be commit f4a77b96f9c17d853348b70794026e5b9e384942)
2008-05-18Use variables for source directory in a couple more places.Jelmer Vernooij3-4/+4
(This used to be commit c41bd3005f5f0b9cfd3709fc9217b4a401d265b4)
2008-05-16fixed warningAndrew Tridgell1-1/+2
(This used to be commit d5165ed7a77120f42c25c4997be2630f0f1cb98c)
2008-05-16fixed file_index referenceAndrew Tridgell1-1/+1
(This used to be commit edb4b38ed33b545d8024f45c602d3f5e4a74c511)
2008-05-15better match WSPP doc name for find flagsAndrew Tridgell1-1/+1
(This used to be commit 0e4b8602dec3ec87676c91a99371e5d77fe78196)
2008-04-25Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij6-121/+171
Conflicts: source/Makefile source/auth/config.mk source/auth/gensec/config.mk source/build/m4/public.m4 source/build/make/python.mk source/build/make/rules.mk source/build/smb_build/header.pm source/build/smb_build/main.pl source/build/smb_build/makefile.pm source/dsdb/config.mk source/dsdb/samdb/ldb_modules/config.mk source/kdc/config.mk source/lib/events/config.mk source/lib/events/events.c source/lib/ldb/config.mk source/lib/nss_wrapper/config.mk source/lib/policy/config.mk source/lib/util/config.mk source/libcli/smb2/config.mk source/libnet/config.mk source/librpc/config.mk source/nbt_server/config.mk source/ntptr/ntptr_base.c source/ntvfs/posix/config.mk source/ntvfs/sysdep/config.mk source/param/config.mk source/rpc_server/config.mk source/rpc_server/service_rpc.c source/scripting/ejs/config.mk source/scripting/python/config.mk source/smb_server/config.mk source/smbd/server.c source/torture/config.mk source/torture/smb2/config.mk source/wrepl_server/config.mk (This used to be commit 13bbd420681519894a4036729c43273912c9b402)
2008-04-19smb_server/smb2: handle incoming oplock releasesStefan Metzmacher1-1/+30
metze (This used to be commit 2306394dcc22ff2be8581256a5cf91eef4993078)
2008-04-18Flag smb messages array with AND_X and LARGE_REQUESTAmin Azez1-10/+21
If smb_messages flags show for which opcodes VWV(0) signifies chaining modes, and also which opcodes can have requests >64K then the bcc / req->in.data_size fixup in smbsrv_recv_smb_request can be more safely applied. This fix permits nttrans requests >64K to be handled. It is not yet clear if THAT is a good thing, but this fix does the current thing more nicely. (This used to be commit 8e4f16e975e192709f398c98650cbe9fe2a76261)
2008-04-18Re-order smbsrv_recv_smb_request and smb_messagesAmin Azez1-99/+99
No functional change, just re-ordering so that smbsrv_recv_smb_request can refer to smb_messages in a future patch (This used to be commit d06eafea1a3e7fa61c94492cf504e6fd81da861d)
2008-04-17Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-testAndrew Tridgell2-3/+5
(This used to be commit 3ab9abf40605a4a6b220faeebaef81546a8d87a0)
2008-04-17fix the overflow/wrap checks in Samba4 for new gcc optimisation behaviorAndrew Tridgell1-3/+3
The approach I have used is as set out in https://www.securecoding.cert.org/confluence/display/seccode/ARR38-C.+Do+not+add+or+subtract+an+integer+to+a+pointer+if+the+resulting+value+does+not+refer+to+an+element+within+the+array (This used to be commit 92d5fb531db39be655f0cbd2d75b5f675a0a4cfa)
2008-04-17Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-testJelmer Vernooij2-3/+7
(This used to be commit ece878c1f9251b83598508e23ce0015b4db72f0a)
2008-04-17Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij2-3/+5
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
2008-04-17make smb2 read and write size configurableAndrew Tridgell1-3/+6
(This used to be commit 2090e75e0c28f8d2aada305059bdb455f42ed0d5)
2008-04-17smb_server/smb2: initialize new create.in.blobs element untill it'll be ↵Stefan Metzmacher1-0/+1
supported metze (This used to be commit fbfbd74e65b1f3e185f08a538bdd50ba7c6ce9bf)
2008-04-14Use _OBJ_FILES variables in a couple more places.Jelmer Vernooij3-19/+25
(This used to be commit 92856d5054106894b65cd1a1b5119c0facfc4cff)
2008-04-14fill in unknown fields in SMB2 READ callAndrew Tridgell1-3/+7
(This used to be commit 9b686c138037f613da15168d0722786e00f023e5)
2008-04-08Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij5-0/+6
Conflicts: source/auth/credentials/config.mk source/auth/gensec/config.mk source/build/smb_build/makefile.pm source/heimdal_build/config.mk source/lib/events/config.mk source/lib/nss_wrapper/config.mk source/lib/policy/config.mk source/lib/registry/config.mk source/lib/socket_wrapper/config.mk source/lib/tdb/config.mk source/lib/tls/config.mk source/lib/util/config.mk source/libcli/config.mk source/libcli/ldap/config.mk source/libnet/config.mk source/librpc/config.mk source/param/config.mk source/rpc_server/config.mk source/scripting/ejs/config.mk source/smbd/process_model.mk (This used to be commit 760378e0294dd0cd4523a83448328478632d7e3d)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij5-0/+6
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-03-28Merge v4.0-testJelmer Vernooij1-1/+24
(This used to be commit 977dbdeaf363c8905ed9fd0570eba4be80582833)
2008-03-11smb_server: pass down RAW_RENAME_NTTRANS to the ntvfs layerStefan Metzmacher1-1/+24
metze (This used to be commit 80711c03e0e8fba6f80261facd939ef00e06c7fd)
2008-03-08Fix the build.Jelmer Vernooij1-1/+1
(This used to be commit f2e49744717eb46bbfafeea9e2eb412a38a142e7)
2008-03-07Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-gmake3Jelmer Vernooij3-5/+15
(This used to be commit e4da851bd7e7620bbf99efe20a496b1be78ba4e2)
2008-03-07Use 32 bit storage for nttrans countsAmin Azez1-5/+5
Erroneous 16bit storage for nttrans counts meant that nttrans behaved "strangely" for sizes of over 64K As 32 bit is used in the SMB message and specified in http://us4.samba.org/samba/ftp/specs/draft-leach-cifs-v1-spec-02.txt section 3.13.2 this fix changes storage to match. Signed-off-by: Amin Azez <azez@ufomechanic.net> (This used to be commit d66b6c3823f003875e3b7cdf63617a894cceadf9)
2008-03-06ntvfs: pass down the client capabilities into the ntvfs layerStefan Metzmacher2-0/+10
Note that we don't use any protocol specific values here. For now only NTVFS_CLIENT_CAP_LEVEL_II_OPLOCKS is defined others should be defined, when we find out that the ntvfs layer needs to know about it. metze (This used to be commit cc42cd5f6753ca582677fa6f403f0419eec5ab10)
2008-03-03Move object file lists to the Makefile.Jelmer Vernooij3-19/+25
(This used to be commit a7e6d2a1832db388fdafa1279f84c9a8bbfc87d6)
2008-02-21Remove yet more global_loadparm instances.Jelmer Vernooij1-1/+1
(This used to be commit 5de88728ac5c567d3711d1ac6862bbdaced84b75)
2008-02-21Remove more global_loadparm instance.sJelmer Vernooij1-1/+1
(This used to be commit a1280252ce924df69d911e597b7f65d8038abef9)
2008-02-21More share_init to more apprioriate place.Jelmer Vernooij1-0/+1
(This used to be commit b84f19f6783cbeaa8d04848fdc0b6f21b5e379a3)
2008-02-18Rename include to mkinclude to emphasize it is different from make's include.Jelmer Vernooij1-2/+2
(This used to be commit 0e1d0a874ae3d22b8f97a79b81fe0af3ef53a771)
2008-02-18Fix build with partial linking.Jelmer Vernooij2-2/+0
(This used to be commit bfad9610c472e8d7e3656e19c8dbb6b85727dc13)
2008-02-183 places where the VFS backend doesn't handle NULL strings.Andrew Tridgell3-0/+15
(This used to be commit cf109460aff5a8437ab7eba05e4d7316a131080e)
2008-02-14Remove type before variables in data.mkJelmer Vernooij2-2/+2
(This used to be commit 3c1a7c0dcc56ed5595e31a8df023a04ae95bfca5)
2008-02-14updated SMB2 code for getinfo according to WSPP docsAndrew Tridgell2-26/+25
- Updated getinfo structures and field names - also updated the protocol revision number handling to reflect new docs (This used to be commit 3aaa2e86d94675c6c68d66d75292c3e34bfbc81b)
2008-02-14A better way to handle the different format of RenameInformation in SMB2Andrew Tridgell2-13/+30
We now define a separate info level RAW_SFILEINFO_RENAME_INFORMATION_SMB2 and set that level when handling SMB2 packets. This makes the parsers clearer. (This used to be commit f6cdf3f1177f63d80be757f007eb15380839b4f5)
2008-02-14Fixed SMB2 rename operations from Vista clientsAndrew Tridgell3-12/+24
We needed a flag in bufinfo to mark packets as SMB2, as it seems that SMB2 uses a different format for the RenameInformation buffer than SMB does Also handle the fact that SMB2 clients give the full path to the target file in the rename, not a relative path (This used to be commit 52d7972d95ddc19d22a4187b4d4428a6c3ed32d5)
2008-02-14Convert SMB and SMB2 code to use a common buffer handling structureAndrew Tridgell13-107/+144
This converts our SMB and SMB2 code to use a common structure "struct request_bufinfo" for information on the buffer bounds of a packet, alignment information and string handling. This allows us to use a common backend for SMB and SMB2 code, while still using all the same string and blob handling functions. Up to now we had been passing a NULL req handle into these common routines from the SMB2 side of the server, which meant that we failed any operation which did a bounds checked string extraction (such as a RenameInformation setinfo call, which is what Vista uses for renaming files) There is still some more work to be done on this - for example we can now remove many of the SMB2 specific buffer handling functions that we had, and use the SMB ones. (This used to be commit ca6d9be6cb6a403a81b18fa6e9a6a0518d7f0f68)
2008-02-13updated SMB2 create operation to match WSPP.Andrew Tridgell1-11/+11
Adding some defined for various new create options (This used to be commit d037dc23ced3df6bce98cbf4810fb5f1247336bd)
2008-02-13updated SMB2 tcon as per WSPP docsAndrew Tridgell1-17/+11
(This used to be commit 5913e3e549e71affc66c28cacb6563331fb0c790)
2008-02-12fixed crash when 0 dialects (thanks metze!)Andrew Tridgell1-2/+4
(This used to be commit 252bcf207b8117f325075cbb7bd05063756ac283)
2008-02-12updated SMB2 header defines to match WSPP docsAndrew Tridgell4-32/+32
(This used to be commit d2c6ad55eca27f50a38fc6e2a85032eddb3f0aae)
2008-02-12converted SMB2 session setup to use WSPP protocol field namesAndrew Tridgell1-7/+8
(This used to be commit 3c2af0fdc4916dce32c2690e49dde0852d1a0c50)
2008-02-12converted the out side of SMB2 negprot handlingAndrew Tridgell1-29/+30
This follows the SMB2 PFIF docs. Current versions of Vista can now connect to Samba4 as a SMB2 server and do basic operations (This used to be commit 9dc284770df9393a1a619735dc7a148713936fa7)
2008-02-12fixed up the .in side of SMB2 negprotAndrew Tridgell3-6/+37
fixed the input side of the SMB2 negprot structure and parsers according to the documentation (This used to be commit 55af8acc7b32c24e4b1187e9d8d1c8f060e914b0)
2008-02-04Remove useless layer of indirection, where every service calledAndrew Bartlett1-13/+1
task_service_init() manually. Now this is called from service.c for all services. Andrew Bartlett (This used to be commit 9c9a4731cafd0dcf6c8523a7b06759cd4f14e4db)
2008-02-04Rework service init functions to pass down service name. This isAndrew Bartlett1-1/+1
needed to change prefork behaviour based on what service is being started. Andrew Bartlett and David Disseldorp (This used to be commit 0d830580e3539c96da3aa6c72fafe6eacd7a74a0)