summaryrefslogtreecommitdiff
path: root/source/rpc_server
Commit message (Collapse)AuthorAgeFilesLines
* For the vfs_acl_xattr.c module, make sure we map GENERIC file and directory bitsJeremy Allison2008-10-151-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. (cherry picked from commit 306b507c3ba1b864b6d66f9438f91f979b02030f)
* s3-srvsvc: fix _srvsvc_NetShareAdd segfault.Günther Deschner2008-09-291-1/+3
| | | | | | | parm_err is not a ref pointer. Guenther (cherry picked from commit 29942b7043c1a31ad4fb76d01ab19fd3dbf26f0a)
* rpc_server: make it a little more obvious what flags we send to a client.Günther Deschner2008-08-251-1/+10
| | | | | | Guenther (cherry picked from commit f3791e03ab09cadb1f54e32e67f4dfb3cf42e708) (cherry picked from commit 14e022b95140441850f7ef4bded8ee82deae2d6f)
* Fix coverity CID: 594. Resource leak on error path.Jeremy Allison2008-08-191-2/+4
| | | | | Jeremy. (cherry picked from commit 60718a203c1d90dbdcdcb2eaf6b37f6135fb411b)
* Fix duplicate gloabl warning.Jeremy Allison2008-07-301-1/+1
| | | | Jeremy.
* Fix srvsvc_Net[Get|Set]FileSecurityVolker Lendecke2008-07-271-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.
* make read/write to internal pipes available externallyVolker Lendecke2008-07-261-8/+3
|
* Refactoring: Make close_internal_rpc_pipe_hnd a talloc destructorVolker Lendecke2008-07-261-5/+5
|
* Refactor make_internal_rpc_pipe_p: connection_struct is not neededVolker Lendecke2008-07-261-21/+11
|
* Make api_rpcTNP static to srv_pipe.cVolker Lendecke2008-07-261-2/+5
|
* Fix warnings on FreeBSD-based platformsZach Loafman2008-07-222-6/+6
| | | | | | Fix two shadowed declaration warnings on FreeBSD-based platform: 'reboot' is a 4.0BSD syscall in unistd.h and 'tcp_seq' is a typedef in netinet/tcp.h.
* Refactoring: Change calling conventions for cli_rpc_pipe_open_noauthVolker Lendecke2008-07-202-10/+2
| | | | Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
* Introduce is_known_pipenameVolker Lendecke2008-07-191-0/+33
| | | | | This scans the list of pipes registered via rpc_pipe_register_commands instead of using static tables.
* Fix typos.Karolin Seeger2008-07-181-14/+14
| | | | | | the user have -> has Karolin
* Simplify the RPC servers: remove get_pipe_fnsVolker Lendecke2008-07-181-97/+25
| | | | | The per-server xxx_get_pipe_fns functions can go once all the RPC servers are converted
* 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"
* In api_pipe_bind_req(), decode the bind request before checking the pipeVolker Lendecke2008-07-161-8/+10
|
* Canonicalize servername in the printer functions to remove leading '\\' ↵Jeremy Allison2008-07-021-54/+59
| | | | | | characters. Ensure we always return consistent names. Jeremy.
* 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)
* 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)
* 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
* Remove p->vuidVolker Lendecke2008-06-263-18/+6
| | | | | | The users can use p->server_info. Now pipes_struct is decoupled from the SMB transport.
* 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.
* Now that we have p->server_info, use p->server_info->user_session_keyVolker Lendecke2008-06-264-40/+47
|
* Fix typoVolker Lendecke2008-06-261-1/+1
|
* Add server_info to pipes_structVolker Lendecke2008-06-262-0/+19
|
* Remove "conn" from pipes_structVolker Lendecke2008-06-242-4/+4
| | | | For spoolss, we need the client's IP address
* 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 :-)
* Move the responsibility to keep the cwd from srv_dfs_nt to msdfs.cVolker Lendecke2008-06-241-13/+0
|
* 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
* Check for sec_initial_uid() instead of uid==0 in dfs managementVolker Lendecke2008-06-221-2/+2
|
* Make pipes_struct its own talloc ctxVolker Lendecke2008-06-213-40/+16
|
* Fix a SAFE_FREE/TALLOC_FREE mixupVolker Lendecke2008-06-211-1/+1
|
* 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
* Fix bug 5500 -- thanks to mathion at thorrovydeti.com for reportingVolker Lendecke2008-06-161-0/+2
| | | | (cherry picked from commit 996c3ce6f0dbe79b0679ae30afd873c24fe5b1eb)
* 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)
* 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.
* Allow server manager to close open files selected by id.Jeremy Allison2008-05-271-2/+55
| | | | Jeremy.
* 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
* 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.
* 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.
* Arggh. Got the path/user the wrong way around. IDL is correct :-).Jeremy Allison2008-05-221-19/+6
| | | | Jeremy.
* Arggh. Got the path/user the wrong way around. IDL is correct :-).Jeremy Allison2008-05-221-4/+4
| | | | Jeremy.
* 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.
* Fix typo.Günther Deschner2008-05-201-1/+1
| | | | | Guenther (cherry picked from commit d3dd7ea5a77414c0d802668ab5bfbe3487b66926)
* Fix a valgrind error in _samr_LookupNamesVolker Lendecke2008-05-201-5/+8
| | | | (cherry picked from commit fb0a25d59ddd28ea1d5af33ec7d9f817fac3fb9d)
* Factor out generation of an info3 struct from a serversupplied_infoVolker Lendecke2008-05-171-183/+12
|
* 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
* 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.
* dsgetdcname: use existing messaging_context if possible.Günther Deschner2008-05-091-0/+2
| | | | Guenther