summaryrefslogtreecommitdiffstats
path: root/source/rpc_server/srv_srvsvc_nt.c
Commit message (Collapse)AuthorAgeFilesLines
* Revert "s3-srvsvc: fix _srvsvc_NetShareAdd segfault."Karolin Seeger2008-11-171-3/+1
| | | | This reverts commit aa9a74f33f1a1862836569565d64861706de5429.
* s3-srvsvc: fix _srvsvc_NetShareAdd segfault.Günther Deschner2008-10-061-1/+3
| | | | | | | | parm_err is not a ref pointer. Guenther (cherry picked from commit 29942b7043c1a31ad4fb76d01ab19fd3dbf26f0a) (cherry picked from commit 6debf35c1575a25f98f927726742a7f34b3a55a9)
* Allow server manager to close open files selected by id.Jeremy Allison2008-06-051-2/+55
| | | | | Jeremy. (cherry picked from commit 4b312d4e6fdd30ea754cf499fbe86ce932d1d9d2)
* Remove MAX_SESS_ENTRIES and MAX_CONN_ENTRIES limitsJeremy Allison2008-05-231-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. (cherry picked from commit edf73a97f674d4cb30f20b0cc3d6e6b43b4ca3eb)
* Arggh. Got the path/user the wrong way around. IDL is correct :-).Jeremy Allison2008-05-231-4/+4
| | | | | Jeremy. (cherry picked from commit 40548ba51c93de1e2b8a29be07e2f53540f4e9d4)
* Fix 2 bugs with displaying open file state. FirstlyJeremy Allison2008-05-231-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. (cherry picked from commit 35f8b3e7948230bd404078db28eed67bfd896bf7)
* Fix an uninitialized variable warningVolker Lendecke2008-05-051-0/+1
| | | | (cherry picked from commit 4cc09ec40609484c973361a0cc0f05bfaef1738e)
* init_srv_share_info_ctr: Add debug messages.Michael Adam2008-05-051-0/+3
| | | | | Michael (cherry picked from commit 8b2cc36ffcb3bccb760ec7cb0a22558eab56070d)
* Fix SRVSVC ShareInfo level 502 server side handling.Günther Deschner2008-04-011-4/+6
| | | | | Guenther (cherry picked from commit 776facabf6f09f643d6dc526aa83f8db517465f9)
* Fix SRVSVC ShareInfo max_users handling server side.Günther Deschner2008-04-011-6/+6
| | | | | Guenther (cherry picked from commit b4d944e724f7ae2a97ba788b185aba7b7308b475)
* Fix _srvsvc_NetShareSetInfo.Günther Deschner2008-04-011-3/+5
| | | | | Guenther (cherry picked from commit 2fd90b62d7e61fa0c23f8f41e9f12fc16f29a8b1)
* Add my copyright.Günther Deschner2008-03-311-0/+1
| | | | | Guenther (cherry picked from commit 4689057f63599ebaf9ce658ca3b3168b2bbe531f)
* Move MAX.*ENTRY definitions out of old rpc srvsvc parsing code.Günther Deschner2008-03-311-0/+15
| | | | | Guenther (cherry picked from commit 4e36657275caa77bc9712fe627aeb6fe4aefc151)
* Use pidl for _srvsvc_NetSessEnum().Günther Deschner2008-03-311-133/+95
| | | | | Guenther (cherry picked from commit 5d14938b14f8e59608771b1899fd473d63f3bde1)
* Use pidl for _srvsvc_NetConnEnum().Günther Deschner2008-03-311-135/+96
| | | | | Guenther (cherry picked from commit b8714e03e70070b5dfb1a0b15b191dfac0634c44)
* Use pidl for _srvsvc_NetFileEnum.Günther Deschner2008-03-311-98/+71
| | | | | Guenther (cherry picked from commit 6c6700ed7148b73b2ce52fc00020c7e253a577d3)
* Trying to fix resume_handling for srvsvc_NetShareEnumAll.Günther Deschner2008-03-311-1/+5
| | | | | Guenther (cherry picked from commit 874a0ffd7dbd993230c00c503ec6b27fbffb7745)
* Use pidl for _srvsvc_NetDiskEnum.Günther Deschner2008-03-311-24/+24
| | | | | Guenther (cherry picked from commit 933d546f86b48bfd9f84045ec21efc1c362b4d93)
* Use pidl for _srvsvc_NetSessDel().Günther Deschner2008-03-311-20/+15
| | | | | Guenther (cherry picked from commit 8a10bc13aee7c34f466fa69773694be97f0e7d85)
* Use pidl for _srvsvc_NetGetFileSecurity.Günther Deschner2008-03-311-30/+36
| | | | | Guenther (cherry picked from commit 8b016efeb0bb4cd5d91928952a258fce1b6f97d0)
* Use pidl for _srvsvc_NetSetFileSecurity.Günther Deschner2008-03-311-28/+26
| | | | | Guenther (cherry picked from commit 64a121c147c825259a06a8cd8de85ec31dd5b4a4)
* Use pidl for _srvsvc_NetShareAdd.Günther Deschner2008-03-311-34/+32
| | | | | Guenther (cherry picked from commit fd3e7728181e7a208706e477905173bec44c982e)
* Use pidl for _srvsvc_NetNameValidate.Günther Deschner2008-03-311-14/+9
| | | | | Guenther (cherry picked from commit 2e1df306785296979ea064006402254e318e946b)
* Use pidl for _srvsvc_NetShareDel and _srvsvc_NetShareDelSticky.Günther Deschner2008-03-311-23/+23
| | | | | Guenther (cherry picked from commit 73b6587493d9a987a691ece495db9f42ce562efe)
* Use pidl for _srvsvc_NetShareGetInfo, _srvsvc_NetShareEnum and ↵Günther Deschner2008-03-311-333/+266
| | | | | | | | | srvsvc_NetShareEnumAll. Fixing resume handling while we are there. Guenther (cherry picked from commit 128637bdd7c37ca166a7d478b33b00c39f0ede62)
* Use pidl for _srvsvc_NetRemoteTOD().Günther Deschner2008-03-311-31/+24
| | | | | Guenther (cherry picked from commit 2b4e0f0593c6378cdac4811ded830ca694afac9e)
* Use pidl for _srvsvc_NetShareSetInfo().Günther Deschner2008-03-311-44/+38
| | | | | Guenther (cherry picked from commit 9bfa77edc68a887972b609bfb0aee8bbbc89ce04)
* Use pidl for _srvsvc_NetSrvSetInfo().Günther Deschner2008-03-311-13/+6
| | | | | Guenther (cherry picked from commit 75b0bbf790da44c45c679c374dbe09f288f3fb8c)
* Use pidl for _srvsvc_NetSrvGetInfo().Günther Deschner2008-03-311-43/+63
| | | | | Guenther (cherry picked from commit 34caa41fa6d44165b470508261c2bde124fc4955)
* Whitespace cleanup in srvsvc server.Günther Deschner2008-03-311-50/+50
| | | | | Guenther (cherry picked from commit 3c0a3f8de742678b56f6b998a014105c05400666)
* Fix Coverity ID 548Volker Lendecke2008-03-221-3/+5
| | | | | | | | | Günther, please check -- in all infolevels we do a comment=talloc_strdup Thanks, Volker (cherry picked from commit e2021c5b5710768968ae724220eb1e3f47c9e639)
* init_srv_share_info_ctr: fix counting of services.Michael Adam2008-03-171-1/+2
| | | | | | | | | | The number of services was recorded too early leading to registry shares not showing up in browse lists. Guenther - please check. Michael (cherry picked from commit 737e470e02d1233fda51e903f27955e45427e95a)
* Rename the 'hidden' variable to 'administrative share'.Andreas Schneider2008-02-291-1/+1
| | | | (cherry picked from commit eff3d3bad5a8860b99375cc0be9dc24f3679e416)
* Fix segfault in _srv_net_file_enum.Günther Deschner2008-02-281-6/+9
| | | | Guenther
* Add variable to define if a share should be hidden.Andreas Schneider2008-02-261-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.
* Some more talloc_tos()Volker Lendecke2008-01-101-1/+1
|
* Remove tiny code duplicationVolker Lendecke2007-12-291-1/+1
| | | | ndr_size_security_descriptor does the same as sec_desc_size
* Remove a silly staticVolker Lendecke2007-12-271-6/+6
|
* Some C++ warningsVolker Lendecke2007-12-211-1/+1
|
* Change the prototype of the vfs function get_nt_acl().Michael Adam2007-12-191-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
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-101-3/+3
| | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy.
* Remove pstrings from everything except srv_spoolss_nt.c.Jeremy Allison2007-11-271-195/+315
| | | | Jeremy.
* Remove pstring from everything in rpc_server exceptJeremy Allison2007-11-271-1/+1
| | | | | | srv_spoolss_nt.c and srv_srvsvc_nt.c. They're next :-). Jeremy.
* More pstring removal. This one was tricky. I had to addJeremy Allison2007-11-151-8/+13
| | | | | | one horror (pstring_clean_name()) which will have to remain until I've removed all pstrings from the client code. Jeremy.
* Make [f]get_nt_acl return NTSTATUSVolker Lendecke2007-11-131-3/+8
|
* Streamline logic, reducing the amount of indentation.Michael Adam2007-10-191-16/+15
| | | | Michael
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-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.
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-1059/+1093
|
* r25564: Pass sharename to delete_share_security()Volker Lendecke2007-10-101-1/+1
|
* r25534: Apply some constVolker Lendecke2007-10-101-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...."