summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_srvsvc_nt.c
AgeCommit message (Collapse)AuthorFilesLines
2008-12-09s3-srvsvc: fix build warning.Günther Deschner1-2/+2
Guenther
2008-12-08s3: Add support for access based share enumerationTodd Stecher1-19/+39
2008-12-03s3: Change SMB_VFS_CREATE_FILE to take a create_file_flags argumentTim Prouty1-2/+2
This replaces the is_dos_path bool with a more future-proof argument. The next step is to plumb INTERNAL_OPEN_ONLY through this flag instead of overridding the oplock_request.
2008-12-03s3: Add new "is_dos_path" argument to SMB_VFS_CREATE_FILETim Prouty1-0/+2
Now unix paths can be differentiated from windows paths so the underlying create_file implementations can convert paths correctly.
2008-12-03s3: Add SMB_VFS_CREATE_FILE to the vfs layerTim Prouty1-2/+2
Modify all callers of create_file to go through SMB_VFS_CREATE_FILE
2008-11-24Get rid of pipes_struct->pipe_user, we have server_info now --- YESSS!Volker Lendecke1-31/+17
2008-11-23Add auth_serversupplied_info to create_conn_structVolker Lendecke1-6/+4
srvsvc needs it, as will printing
2008-10-23Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTSJelmer Vernooij1-1/+1
previously present in Samba 3.
2008-10-13Pass struct smb_request to file_freeVolker Lendecke1-4/+4
on the way to get rid of chain_fsp
2008-10-08For the vfs_acl_xattr.c module, make sure we map GENERIC file and directory bitsJeremy Allison1-2/+24
to specific bits every time a security descriptor is set. The S4 torture suite proves that generic bits are not returned when querying an ACL set using them (ie. only the specific bits are stored on disk). Jeremy.
2008-09-26s3-srvsvc: fix _srvsvc_NetShareAdd segfault.Günther Deschner1-1/+3
parm_err is not a ref pointer. Guenther
2008-07-27Fix srvsvc_Net[Get|Set]FileSecurityVolker Lendecke1-155/+87
There were two bugs in those routines: They did not send INTERNAL_OPEN_ONLY to open_file_ntcreate() and they did not chdir, so the file could never be found. While there I decided to remove the become_root() calls and call create_file() instead of the lower-level routines. (This used to be commit 669771738422776f8c81086ffea4924b62d72957)
2008-06-24Correct calculation of "remark" in srv_srvsvc_nt.cVolker Lendecke1-9/+25
Very likely the client is not interested in the values for the IPC$ share :-) (This used to be commit 40ca5764cf4310769c002b8cb6041fe2af4e6d0b)
2008-05-27Allow server manager to close open files selected by id.Jeremy Allison1-2/+55
Jeremy. (This used to be commit 7eeed8bb41059ec2bddedb6a71deddeec7f33af2)
2008-05-22Remove MAX_SESS_ENTRIES and MAX_CONN_ENTRIES limitsJeremy Allison1-19/+6
as they are no longer needed now we have IDL marshalling. Change the calculation of the 32-bit fileid we return to a Windows client. We can't just use the generation count as it starts at zero for every smbd - and this command must enumerate all files open across all smbds. We'd really like combination of process-id + dev + inode + generation count to be unique, but as we can't fit that into 32 bits just use 16 bits of pid + generation count. Jeremy. (This used to be commit 8b926d5a93d04b828990057ae6f1e090764305c1)
2008-05-22Revert "Arggh. Got the path/user the wrong way around. IDL is correct :-)."Jeremy Allison1-6/+19
This reverts commit 1078b5c53ae9d6f9532eecebf9cf4a1712200b7e. This message doesn't match the actual change. (This used to be commit a65abb49cf8d291c7deb659912c0df34ec37da02)
2008-05-22Arggh. Got the path/user the wrong way around. IDL is correct :-).Jeremy Allison1-19/+6
Jeremy. (This used to be commit 1078b5c53ae9d6f9532eecebf9cf4a1712200b7e)
2008-05-22Arggh. Got the path/user the wrong way around. IDL is correct :-).Jeremy Allison1-4/+4
Jeremy. (This used to be commit 2281274480d8cf9e773874301dbbc7bf06346901)
2008-05-22Fix 2 bugs with displaying open file state. FirstlyJeremy Allison1-3/+3
the IDL is documented incorrectly in the MS-DOCS. Username and path need to be reversed (yes I will raise this with MS). Secondly, we need to check access_mask for the permissions, not share_access (share_access are the deny modes). Jeremy. (This used to be commit bdaad19f90e991aba2afccfa13afbbfe2ac7baaf)
2008-05-09Remove a couple of uses of SMB_VFS_GET_NT_ACL(), useJeremy Allison1-13/+42
SMB_VFS_FGET_NT_ACL instead. I'd like to ultimately remove SMB_VFS_GET_NT_ACL. Jeremy. (This used to be commit 4221937b68e2414295279b27c5f12a80f826ed4b)
2008-05-08Yay ! Remove a VFS entry. Removed the set_nt_acl() call,Jeremy Allison1-1/+1
this can only be done via fset_nt_acl() using an open file/directory handle. I'd like to do the same with get_nt_acl() but am concerned about efficiency problems with "hide unreadable/hide unwritable" when doing a directory listing (this would mean opening every file in the dir on list). Moving closer to rationalizing the ACL model and maybe moving the POSIX calls into a posix_acl VFS module rather than having them as first class citizens of the VFS. Jeremy. (This used to be commit f487f742cb903a06fbf2be006ddc9ce9063339ed)
2008-05-02Remove the "stat_open()" function, flag, and all associated code. It was onlyJeremy Allison1-2/+9
being (correctly) used in the can_read/can_write checks for hide unreadable/unwritable and this is more properly done using the functions in smbd/file_access.c. Preparing to do NT access checks on all file access. Jeremy. (This used to be commit 6bfb06ad95963ae2acb67c4694a98282d3b29faa)
2008-04-01Fix SRVSVC ShareInfo level 502 server side handling.Günther Deschner1-4/+6
Guenther (This used to be commit 776facabf6f09f643d6dc526aa83f8db517465f9)
2008-04-01Fix SRVSVC ShareInfo max_users handling server side.Günther Deschner1-6/+6
Guenther (This used to be commit b4d944e724f7ae2a97ba788b185aba7b7308b475)
2008-04-01Fix _srvsvc_NetShareSetInfo.Günther Deschner1-3/+5
Guenther (This used to be commit 2fd90b62d7e61fa0c23f8f41e9f12fc16f29a8b1)
2008-03-21Fix Coverity ID 548Volker Lendecke1-3/+5
Günther, please check -- in all infolevels we do a comment=talloc_strdup Thanks, Volker (This used to be commit e2021c5b5710768968ae724220eb1e3f47c9e639)
2008-03-21Add my copyright.Günther Deschner1-0/+1
Guenther (This used to be commit 4689057f63599ebaf9ce658ca3b3168b2bbe531f)
2008-03-21Move MAX.*ENTRY definitions out of old rpc srvsvc parsing code.Günther Deschner1-0/+15
Guenther (This used to be commit 4e36657275caa77bc9712fe627aeb6fe4aefc151)
2008-03-21Use pidl for _srvsvc_NetSessEnum().Günther Deschner1-133/+95
Guenther (This used to be commit 5d14938b14f8e59608771b1899fd473d63f3bde1)
2008-03-21Use pidl for _srvsvc_NetConnEnum().Günther Deschner1-135/+96
Guenther (This used to be commit b8714e03e70070b5dfb1a0b15b191dfac0634c44)
2008-03-20Fix an uninitialized variable warningVolker Lendecke1-0/+1
(This used to be commit 4cc09ec40609484c973361a0cc0f05bfaef1738e)
2008-03-19Use pidl for _srvsvc_NetFileEnum.Günther Deschner1-98/+71
Guenther (This used to be commit 6c6700ed7148b73b2ce52fc00020c7e253a577d3)
2008-03-12init_srv_share_info_ctr: fix counting of services.Michael Adam1-1/+2
The number of services was recorded too early leading to registry shares not showing up in browse lists. Guenther - please check. Michael (This used to be commit 737e470e02d1233fda51e903f27955e45427e95a)
2008-03-12init_srv_share_info_ctr: Add debug messages.Michael Adam1-0/+3
Michael (This used to be commit 8b2cc36ffcb3bccb760ec7cb0a22558eab56070d)
2008-03-11Trying to fix resume_handling for srvsvc_NetShareEnumAll.Günther Deschner1-1/+5
Guenther (This used to be commit 874a0ffd7dbd993230c00c503ec6b27fbffb7745)
2008-03-11Use pidl for _srvsvc_NetDiskEnum.Günther Deschner1-24/+24
Guenther (This used to be commit 933d546f86b48bfd9f84045ec21efc1c362b4d93)
2008-03-10Use pidl for _srvsvc_NetSessDel().Günther Deschner1-20/+15
Guenther (This used to be commit 8a10bc13aee7c34f466fa69773694be97f0e7d85)
2008-03-08Use pidl for _srvsvc_NetGetFileSecurity.Günther Deschner1-30/+36
Guenther (This used to be commit 8b016efeb0bb4cd5d91928952a258fce1b6f97d0)
2008-03-08Use pidl for _srvsvc_NetSetFileSecurity.Günther Deschner1-28/+26
Guenther (This used to be commit 64a121c147c825259a06a8cd8de85ec31dd5b4a4)
2008-03-08Use pidl for _srvsvc_NetShareAdd.Günther Deschner1-34/+32
Guenther (This used to be commit fd3e7728181e7a208706e477905173bec44c982e)
2008-03-07Use pidl for _srvsvc_NetNameValidate.Günther Deschner1-14/+9
Guenther (This used to be commit 2e1df306785296979ea064006402254e318e946b)
2008-03-07Use pidl for _srvsvc_NetShareDel and _srvsvc_NetShareDelSticky.Günther Deschner1-23/+23
Guenther (This used to be commit 73b6587493d9a987a691ece495db9f42ce562efe)
2008-03-07Use pidl for _srvsvc_NetShareGetInfo, _srvsvc_NetShareEnum and ↵Günther Deschner1-333/+266
srvsvc_NetShareEnumAll. Fixing resume handling while we are there. Guenther (This used to be commit 128637bdd7c37ca166a7d478b33b00c39f0ede62)
2008-03-05Use pidl for _srvsvc_NetRemoteTOD().Günther Deschner1-31/+24
Guenther (This used to be commit 2b4e0f0593c6378cdac4811ded830ca694afac9e)
2008-03-05Use pidl for _srvsvc_NetShareSetInfo().Günther Deschner1-44/+38
Guenther (This used to be commit 9bfa77edc68a887972b609bfb0aee8bbbc89ce04)
2008-03-05Use pidl for _srvsvc_NetSrvSetInfo().Günther Deschner1-13/+6
Guenther (This used to be commit 75b0bbf790da44c45c679c374dbe09f288f3fb8c)
2008-03-05Use pidl for _srvsvc_NetSrvGetInfo().Günther Deschner1-43/+63
Guenther (This used to be commit 34caa41fa6d44165b470508261c2bde124fc4955)
2008-03-05Whitespace cleanup in srvsvc server.Günther Deschner1-50/+50
Guenther (This used to be commit 3c0a3f8de742678b56f6b998a014105c05400666)
2008-02-29Rename the 'hidden' variable to 'administrative share'.Andreas Schneider1-1/+1
(This used to be commit eff3d3bad5a8860b99375cc0be9dc24f3679e416)
2008-02-28Fix segfault in _srv_net_file_enum.Günther Deschner1-6/+9
Guenther (This used to be commit 6523a051ded9f7b433fcce2d4c4a5f186b5a28f6)