summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_srvsvc_nt.c
AgeCommit message (Collapse)AuthorFilesLines
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)
2008-02-26Add variable to define if a share should be hidden.Andreas Schneider1-4/+1
If you create a share on a Windows machine called foo$ then this share is of the type STYPE_DISKTREE. So it is possible to administrate this kind of share. Tested on Windows NT and 2003. In samba we assume that if a share with a $ at the end must be of the type STYPE_DISKTREE_HIDDEN. This is wrong, so we need a variable in the config to define if the share should be hidden or not. (This used to be commit a3da677bf0faed56e6731ee96708a7847a61d118)
2008-01-10Some more talloc_tos()Volker Lendecke1-1/+1
(This used to be commit 444e35e7df1f13fc285183da8fb41b30ad99a3fa)
2007-12-29Remove tiny code duplicationVolker Lendecke1-1/+1
ndr_size_security_descriptor does the same as sec_desc_size (This used to be commit bc3bd7a8e7c6e9e27acb195c86abb92c0f53112f)
2007-12-27Remove a silly staticVolker Lendecke1-6/+6
(This used to be commit ef75dcc9ffda85d77c8f22d0db702efbf8e642ed)
2007-12-21Some C++ warningsVolker Lendecke1-1/+1
(This used to be commit 5ab82d4f574f2a2e2761e9e414c66a70aeffb05d)
2007-12-19Change the prototype of the vfs function get_nt_acl().Michael Adam1-25/+1
Up to now, get_nt_acl() took a files_struct pointer (fsp) and a file name. All the underlying functions should need and now do need (after the previous preparatory work), is a connection_struct and a file name. The connection_struct is already there in the vfs_handle passed to the vfs functions. So the files_struct argument can be eliminated. This eliminates the need of calling open_file_stat in a couple of places to produce the fsp needed. Michael (This used to be commit b5f600fab53c9d159a958c59795db3ba4a8acc63)
2007-12-10Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison1-3/+3
them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-11-27Remove pstrings from everything except srv_spoolss_nt.c.Jeremy Allison1-195/+315
Jeremy. (This used to be commit 0002a9e96b0ef78316295a6eb94ff29b64e2f988)
2007-11-27Remove pstring from everything in rpc_server exceptJeremy Allison1-1/+1
srv_spoolss_nt.c and srv_srvsvc_nt.c. They're next :-). Jeremy. (This used to be commit 55b4f9d003b036af69085f7b64e0df08c5ba440d)
2007-11-15More pstring removal. This one was tricky. I had to addJeremy Allison1-8/+13
one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy. (This used to be commit 1ea3ac80146b83c2522b69e7747c823366a2b47d)
2007-11-13Make [f]get_nt_acl return NTSTATUSVolker Lendecke1-3/+8
(This used to be commit dcbe1bf942d017a3cd5084c6ef605a13912f795b)
2007-10-19Streamline logic, reducing the amount of indentation.Michael Adam1-16/+15
Michael (This used to be commit aae3d04e30a0e6f21f661da3dc6a2835d31ce964)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-11/+11
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter1-1059/+1093
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25564: Pass sharename to delete_share_security()Volker Lendecke1-1/+1
(This used to be commit d100bfffe2a503b8820889faedc6ed57100ca7af)
2007-10-10r25534: Apply some constVolker Lendecke1-1/+1
Why? It moves these structs from the data into the text segment, so they will never been copy-on-write copied. Not much, but as in German you say "Kleinvieh macht auch Mist...." (This used to be commit 0141e64ad4972232de867137064d0dae62da22ee)
2007-10-10r25484: Fix srvsrc_NetFileEnum listing only for one userVolker Lendecke1-37/+57
(This used to be commit 9e1f513916d8836914580806580c4f8c38e5f2be)
2007-10-10r25482: Slightly simplify logicVolker Lendecke1-48/+48
Instead of one big if-branch for if (process_exists(..)) return if (!process_exists(..)) (This used to be commit 3acc00132c97b36e026162ae11a23953269dfbed)
2007-10-10r25480: Fix a segfaultVolker Lendecke1-1/+1
(This used to be commit 7e72a3046d5c318247d1e69b51bcb74e897e3eae)
2007-10-10r25138: More pstring elimination. Add a TALLOC_CTX parameterJeremy Allison1-2/+4
to unix_convert(). Jeremy. (This used to be commit 39c211a702e91c34c1a5a689e1b0c4530ea8a1ac)
2007-10-10r25009: Large patch discussed with Volker. Move unix_convert to a talloc-basedJeremy Allison1-18/+24
interface. More development will come on top of this. Remove the "mangled map" parameter. Jeremy. (This used to be commit dee8beba7a92b8a3f68bbcc59fd0a827f68c7736)
2007-10-10r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke1-3/+2
This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker (This used to be commit 6585ea2cb7f417e14540495b9c7380fe9c8c717b)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell1-2/+1
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23724: Reduce access to the global inbuf a tiny bit. Add a struct smb_requestVolker Lendecke1-4/+4
that contains some of the fields from the SMB header, removing the need to access inbuf directly. This right now is used only in the open file code & friends, and creating that header is only done when needed. This needs more work, but it is a start. Jeremy, I'm only checking this into 3_0, please review before I merge it to _26. Volker (This used to be commit ca988f4e79e977160d82e86486972afd15d4acf5)
2007-10-10r23620: Convert set_nt_acl to return NTSTATUS. Also fix the chownJeremy Allison1-3/+2
return to correctly return NT_STATUS_INVALID_OWNER if it should be disallowed. Matches better what W2K3R3 does. NFSv4 ACL module owners, please examine these changes. Jeremy. (This used to be commit fc6899a5506b272f8cd5f5837ca13300b4e69a5f)
2007-10-10r23183: Check in a change made by Tridge:Volker Lendecke1-2/+1
This replaces the internal explicit dev/ino file id representation by a "struct file_id". This is necessary as cluster file systems and NFS don't necessarily assign the same device number to the shared file system. With this structure in place we can now easily add different schemes to map a file to a unique 64-bit device node. Jeremy, you might note that I did not change the external interface of smb_share_modes.c. Volker (This used to be commit 9b10dbbd5de8813fc15ebbb6be9b18010ffe8139)
2007-10-10r23171: Convert connections.tdb to dbwrapVolker Lendecke1-9/+9
(This used to be commit 80a1f43825063bbbda896175d99700ede5a4757a)
2007-10-10r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke1-3/+3
doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker (This used to be commit eaefd00563173dfabb7716c5695ac0a2f7139bb6)
2007-10-10r22911: Pass a messaging_context to message_send_allVolker Lendecke1-3/+6
(This used to be commit cc92ce665dcfe9054d09429219883b18a4cab090)
2007-10-10r22895: Convert some more calls from message_send_buf to messaging_send_bufVolker Lendecke1-1/+6
(This used to be commit c8b98273406242a89a7e5d1fb5d79120ebe5822a)
2007-10-10r22844: Introduce const DATA_BLOB data_blob_null = { NULL, 0, NULL }; andVolker Lendecke1-2/+2
replace all data_blob(NULL, 0) calls. (This used to be commit 3d3d61687ef00181f4f04e001d42181d93ac931e)
2007-10-10r22761: This introduces lib/conn_tdb.c with two main functions: ↵Volker Lendecke1-13/+8
connections_traverse and connections_forall. This centralizes all the routines that did individual tdb_open("connections.tdb") and direct tdb_traverse. Volker (This used to be commit e43e94cda1ad8876b3cb5d1129080b57fa6ec214)
2007-10-10r22751: Next step for the cluster merge: sessionid.tdb should contain a 'structVolker Lendecke1-4/+4
server_id' instead of a 'uint32 pid' (This used to be commit be7bac55c37676a8137c59a22dfb2e4c4821ac21)
2007-10-10r22561: Fix a memleak in lanman.c: Nobody would free the session_list.Volker Lendecke1-10/+3
Volker (This used to be commit 5d428400f77399b7fc30fb2a0fb10f0c74b96458)