summaryrefslogtreecommitdiffstats
path: root/source3/rpc_server
Commit message (Collapse)AuthorAgeFilesLines
* In api_pipe_bind_req(), check for the iface id, not the pipe nameVolker Lendecke2008-07-165-7/+35
| | | | | This requires to store the rpc_interface in "struct rpc_table" (This used to be commit 654f8de8497aff29f9b1f1822b6a8e734ff329e0)
* In api_pipe_bind_req(), decode the bind request before checking the pipeVolker Lendecke2008-07-161-8/+10
| | | | (This used to be commit 8be41382ed9bb4fb44a1846fff2c7652388e4f28)
* Canonicalize servername in the printer functions to remove leading '\\' ↵Jeremy Allison2008-07-021-54/+59
| | | | | | | characters. Ensure we always return consistent names. Jeremy. (This used to be commit fc2178b04743d2f94be7b489b793fc67826557ac)
* Fix a file descriptor leak in add_port_hookVolker Lendecke2008-06-281-4/+1
| | | | | | | | This was probably cut&paste from add_printer_hook which further down has the unconditional close(fd). In add_port_hook() we're not interested in the output of 'addport command', so don't create the out fd. (cherry picked from commit 0c5ca2127ac6e3c71e369242376d27429c3aee5e) (This used to be commit 9fe09398b79ae7c5e78182112a8cd2c9b5f99ad3)
* Fix valgrind errors in _spoolss_addprinterdriverVolker Lendecke2008-06-261-0/+11
| | | | | | | | | | | Jerry, this was dropped as part of your SVN r15309 (037f9f83). Can you please check? Thanks, Volker (cherry picked from commit 5aa2411f0b3720b790439359a2dadb23008e936e) (This used to be commit 8e7effd58f7790d6e71e38c990f6cb05456e47e1)
* Change print_access_check to take auth_serversupplied_info instead of ↵Volker Lendecke2008-06-261-9/+10
| | | | | | | current_user Reason: This is the main user of p->current_user which I would like to remove (This used to be commit fd43059b3dfa8cdac9814de1c76f963ba5de9bcb)
* Remove p->vuidVolker Lendecke2008-06-263-18/+6
| | | | | | | The users can use p->server_info. Now pipes_struct is decoupled from the SMB transport. (This used to be commit d4cf5a131919530317cd457006b4df5af2c69fa7)
* Remove a check on p->vuid in _netr_LogonSamLogon/offVolker Lendecke2008-06-261-6/+0
| | | | | | | | | This is in preparation of removing p->vuid completely. I don't think this check here makes any sort of sense, it only proves that the user having done the session setup on its way to the schannel bind (ususally anonymous) did not do a logoff in between. But this would have been caught way before this in reply_pipe_write_and_X. (This used to be commit fbc00460f8deaa57bfbf16b12d29acec56578b63)
* Now that we have p->server_info, use p->server_info->user_session_keyVolker Lendecke2008-06-264-40/+47
| | | | (This used to be commit aefad64e3a5c86d2f988d47e6215ed2085b8fc47)
* Fix typoVolker Lendecke2008-06-261-1/+1
| | | | (This used to be commit 41d2daeaa5a87da82a0debc4c9cfe14976215bd8)
* Add server_info to pipes_structVolker Lendecke2008-06-262-0/+19
| | | | (This used to be commit d621867bb8767e1c4236d28dd9294a61db6cbb10)
* Remove "conn" from pipes_structVolker Lendecke2008-06-242-4/+4
| | | | | For spoolss, we need the client's IP address (This used to be commit 64a4dfaa826cf9319ef3f5c65023352bf8af539e)
* Correct calculation of "remark" in srv_srvsvc_nt.cVolker Lendecke2008-06-241-9/+25
| | | | | Very likely the client is not interested in the values for the IPC$ share :-) (This used to be commit 40ca5764cf4310769c002b8cb6041fe2af4e6d0b)
* Move the responsibility to keep the cwd from srv_dfs_nt to msdfs.cVolker Lendecke2008-06-241-13/+0
| | | | (This used to be commit 7db382588ac90fe250b72cf4cd07afb39fcae7c0)
* Remove the "exists" parameter from create_msdfs_linkVolker Lendecke2008-06-221-4/+2
| | | | | | | | | | | Jeremy, setting "exists" to True in _dfs_Add prevented the initial creation of a new symlink for me, because the SMB_VFS_UNLINK failed. This also exists in 3.2. I only check it into 3.3 as I would like you to look at it first. Thanks, Volker (This used to be commit f58b098a4172949018e84c4d0c722d6eb9bba514)
* Check for sec_initial_uid() instead of uid==0 in dfs managementVolker Lendecke2008-06-221-2/+2
| | | | (This used to be commit 948607f16112f6529f3a54cd6bbe978e8a600bc8)
* Make pipes_struct its own talloc ctxVolker Lendecke2008-06-213-40/+16
| | | | (This used to be commit 829b1ad4697f2f1ea008377d591456722dccd025)
* Fix a SAFE_FREE/TALLOC_FREE mixupVolker Lendecke2008-06-211-1/+1
| | | | (This used to be commit b39852f51313059899630ba63509fee904ba3613)
* Wrap the unix token info in a unix_user_token in auth_serversupplied_infoVolker Lendecke2008-06-191-5/+6
| | | | | No functional change, this is a preparation for more current_user ref removal (This used to be commit dcaedf345e62ab74ea87f0a3fa1e3199c75c5445)
* Fix bug 5500 -- thanks to mathion at thorrovydeti.com for reportingVolker Lendecke2008-06-161-0/+2
| | | | | (cherry picked from commit 996c3ce6f0dbe79b0679ae30afd873c24fe5b1eb) (This used to be commit 1f86c7a2a19e66948c9b51572d3c078b6e03ef52)
* Fix a crash in _winreg_QueryValueVolker Lendecke2008-06-131-0/+4
| | | | | | | | | | | | | Coverity ID 474, value_length and type are both unique, not ref pointers and can thus be NULL. Karolin, please merge this to -stable. Thanks, Volker (cherry picked from commit 999533c0ccced59141d8baff5bc248d63e2a966f) (This used to be commit 7e07ec68f15908a998f83d615a1b4d1349935a54)
* Don't reset password last set time just because the expired flagJim McDonough2008-06-091-1/+9
| | | | | | | | is set to 0. If the account wasn't expired but autolocked, using "net user /dom <username> /active:y" would clear this, incorrectly setting the current time as the new "password last set" time. (This used to be commit 0f292d70f698b8ae885005b5704a96476e876571)
* Allow server manager to close open files selected by id.Jeremy Allison2008-05-271-2/+55
| | | | | Jeremy. (This used to be commit 7eeed8bb41059ec2bddedb6a71deddeec7f33af2)
* Remove the reference to current_user_info from share_access.cVolker Lendecke2008-05-251-6/+10
| | | | | This required to pass around the domain a bit (This used to be commit 17b0db20d28d1b737c5e86b78106657e8ca5ce9c)
* Remove MAX_SESS_ENTRIES and MAX_CONN_ENTRIES limitsJeremy Allison2008-05-221-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)
* Revert "Arggh. Got the path/user the wrong way around. IDL is correct :-)."Jeremy Allison2008-05-221-6/+19
| | | | | | | This reverts commit 1078b5c53ae9d6f9532eecebf9cf4a1712200b7e. This message doesn't match the actual change. (This used to be commit a65abb49cf8d291c7deb659912c0df34ec37da02)
* Arggh. Got the path/user the wrong way around. IDL is correct :-).Jeremy Allison2008-05-221-19/+6
| | | | | Jeremy. (This used to be commit 1078b5c53ae9d6f9532eecebf9cf4a1712200b7e)
* Arggh. Got the path/user the wrong way around. IDL is correct :-).Jeremy Allison2008-05-221-4/+4
| | | | | Jeremy. (This used to be commit 2281274480d8cf9e773874301dbbc7bf06346901)
* Fix 2 bugs with displaying open file state. FirstlyJeremy Allison2008-05-221-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)
* Fix typo.Günther Deschner2008-05-201-1/+1
| | | | | | Guenther (cherry picked from commit d3dd7ea5a77414c0d802668ab5bfbe3487b66926) (This used to be commit 68d6b0053f3ce63747bc26a2bebb1fb0b46c8ca0)
* Fix a valgrind error in _samr_LookupNamesVolker Lendecke2008-05-201-5/+8
| | | | | (cherry picked from commit fb0a25d59ddd28ea1d5af33ec7d9f817fac3fb9d) (This used to be commit 89f87efa2394e99802ca23307e712fc5820a5fc6)
* Factor out generation of an info3 struct from a serversupplied_infoVolker Lendecke2008-05-171-183/+12
| | | | (This used to be commit e60faccc1bdd2b80e039ec8c93683be10752f937)
* Fix Bug #5461 and implement a very basic _samr_GetDisplayEnumerationIndex().Günther Deschner2008-05-161-20/+139
| | | | | | | | | Citrix PM cannot use a Samba DC when having more then 900 groups as citrix insists on calling _samr_GetDisplayEnumerationIndex() after receiving the first 900 groups via _samr_QueryDisplayInfo() to get the continuation index. Guenther (This used to be commit 1c4adc8dda68eae9839bdff843aadf8c98dd9e87)
* Remove a couple of uses of SMB_VFS_GET_NT_ACL(), useJeremy Allison2008-05-091-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)
* dsgetdcname: use existing messaging_context if possible.Günther Deschner2008-05-091-0/+2
| | | | | Guenther (This used to be commit 7889516a384c155a9045aad4409c041fddd0d98d)
* Yay ! Remove a VFS entry. Removed the set_nt_acl() call,Jeremy Allison2008-05-081-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)
* Fix a memleak in construct_printer_info_7()Volker Lendecke2008-05-061-2/+5
| | | | | Also fix a "ignoring asprintf result" warning (This used to be commit 64d21f39636019d6a17f84efc6fb9e61e67a235e)
* Remove "userdom_struct user" from "struct user_struct"Volker Lendecke2008-05-051-2/+2
| | | | (This used to be commit 420de035237bb08bc470c9eb820f3da2edaa6805)
* Remove "session_key" from "struct user_struct"Volker Lendecke2008-05-051-1/+3
| | | | | This one took a bit -- I hope I covered all data paths (This used to be commit 74c88a44422f88d6e2f2cdbfdfa0bafe0dbe06c4)
* Remove "guest" from "struct user_struct"Volker Lendecke2008-05-052-2/+2
| | | | (This used to be commit 570a6b80feb5b0dc23213ba936c721e766cd4818)
* Remove "nt_user_token" from "struct user_struct"Volker Lendecke2008-05-051-1/+1
| | | | (This used to be commit 51d5d512f28eadc74eced43e5e7f4e5bdff3ff69)
* Remove the "stat_open()" function, flag, and all associated code. It was onlyJeremy Allison2008-05-021-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)
* _netr_LogonSamLogon: fix lm session key length.Günther Deschner2008-04-291-1/+1
| | | | | | | Thanks Volker for pointing this out. Guenther (This used to be commit 7ccca9a004c7a4794781cbd7c703c53a0481bd51)
* The first of Martin Zielinski <mz@seh.de> Vista printing patches.Jeremy Allison2008-04-241-3/+6
| | | | | | | Jerry will test and should get into 3.2 final (and the next 3.0.x release). Jeremy. (This used to be commit 3fc1ab210b8772ee9f867499c0b1a7bb4bcdd285)
* Introduce rpc_pipe_np_smb_conn()Volker Lendecke2008-04-201-1/+1
| | | | | | This abstracts away all references to rpc_pipe_client->cli, the only reference is now in cli_pipe.c. (This used to be commit c56e1c08cef107ff33a34346ceeca3475a102b19)
* Remove a redundant reference to rpc_pipe_state->cli from srv_spoolssVolker Lendecke2008-04-201-4/+0
| | | | | | This assignment is done in cli_rpc_pipe_open called from cli_rpc_pipe_open_noauth already. (This used to be commit 7331c4c2781bf7904942c119f1a8de8eda00ae7e)
* rpc_parse: Use UUIDs from librpc/gen_ndr/ when possible to reduceJelmer Vernooij2008-04-171-4/+4
| | | | | duplication. (This used to be commit 428654b473ba44b2f5340eefef0d4fcd51aff558)
* NetrUnjoinDomain2: Honor registry config to try config changes.Günther Deschner2008-04-171-0/+1
| | | | | Guenther (This used to be commit b42304c299224238a0247e0e1561eb2ad3217b96)
* Reconcile ndr_syntax_id used by pidl-generated code and Samba3's RFC_IFACE.Jelmer Vernooij2008-04-151-2/+2
| | | | (This used to be commit 7bea00dca1ee08ef731dfa73110ef9c190a29919)
* WKSSVC: In _wkssvc_NetrJoinDomain2, do modify the local configuration if ↵Günther Deschner2008-04-141-0/+1
| | | | | | | enabled. Guenther (This used to be commit 260efafb8fb6527eb0a182f9a6bfed8239dd8315)