summaryrefslogtreecommitdiffstats
path: root/source3/rpc_server
Commit message (Collapse)AuthorAgeFilesLines
* rpcserver: fix useless declaration warningBjörn Jacke2012-09-071-1/+0
| | | | issues by irix compiler
* Change the other two places where we set a security descriptor given by the ↵Jeremy Allison2012-08-301-20/+1
| | | | | | client to got through set_sd(), the canonicalize sd function.
* s3-smbd: Add security_info_wanted argument to get_nt_acl_no_snumAndrew Bartlett2012-08-231-1/+1
| | | | | | | I need to get at the owner, group, DACL and SACL when testing correct ACL storage. Andrew Bartlett
* Correctly check for errors in strlower_m() returns.Jeremy Allison2012-08-092-2/+6
|
* s3:rpc_server/wkssvc: make usage of session_extract_session_key()Stefan Metzmacher2012-08-041-2/+24
| | | | | | This makes sure we return NO_USER_SESSION_KEY if there's no session key. metze
* s3:rpc_server/netlogon: make usage of session_extract_session_key()Stefan Metzmacher2012-08-041-1/+9
| | | | | | This makes sure we return NO_USER_SESSION_KEY if there's no session key. metze
* lib/param: Remove use of lp{cfg,}_socket_address outside the NBT client and ↵Andrew Bartlett2012-07-271-12/+6
| | | | | | | | | server In these other cases, control of the sockets to bind to can be obtained using "bind interfaces only = yes" and "interfaces = ". Andrew Bartlett
* Remove unused variable.Jeremy Allison2012-07-241-1/+0
| | | | | Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jul 24 02:01:00 CEST 2012 on sn-devel-104
* s3-rpc_server: Remove make_server_info_info3() call from ↵Andrew Bartlett2012-07-191-52/+3
| | | | | | | | | | | | | make_server_pipes_struct() This codepath would only be executed if we provided a partial session_info token across the named pipe forwarding code. The smbd file server always fills this in, and if the ntvfs file server ever wants to use an smbd hosted pipe, it can do the same. Calling create_local_token is always the wrong thing to do. Andrew Bartlett
* loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell2012-07-187-89/+93
| | | | | | | | | | They use talloc_tos() internally: hoist that up to the callers, some of whom don't want to us talloc_tos(). A simple patch, but hits a lot of files. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* source3/rpc_server/svcctl/srv_svcctl_reg.c: fix stackframe leakRusty Russell2012-07-181-0/+1
| | | | | | | svcctl_init_winreg() doesn't free its stackframe. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3:rpc_server: add support for AES bases netlogon schannelStefan Metzmacher2012-07-171-0/+4
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3: rename sid_check_is_in_our_domain() to sid_check_is_in_our_sam()Michael Adam2012-07-121-7/+7
| | | | | | | | | This does not check whether the given sid is in our domain, but but whether it belongs to the local sam, which is a different thing on a domain member server. Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Thu Jul 12 18:36:02 CEST 2012 on sn-devel-104
* s3: rename sid_check_is_domain() to sid_check_is_our_sam()Michael Adam2012-07-121-6/+6
| | | | | | This does not check whether the given sid is the domain sid, but whether it is the sid of the local sam, which is different for a domain member server.
* s3-lsarpc: Enforce a secure connection for LookupSids3 and LookupNames4.Andreas Schneider2012-07-061-8/+14
| | | | http://thread.gmane.org/gmane.network.protocol.cifs.general/291
* s3-lsarpc: Restrict lsa_LookupNames4 to ncacn_ip_tcp connections.Andreas Schneider2012-07-061-12/+23
| | | | See MS-LAT, Section 2.1 Transport.
* s3-lsarpc: Restrict lsa_LookupSids3 to ncacn_ip_tcp connections.Andreas Schneider2012-07-061-12/+23
| | | | See MS-LAT, Section 2.1 Transport.
* s3-lsarpc: Restrict the transport for ncacn_np functions.Andreas Schneider2012-07-061-0/+42
| | | | See MS-LAT, section 2.1 Transport.
* s3-rpc_server: Make it possible to use more rpc exceptions.Andreas Schneider2012-07-0618-376/+348
|
* s3-printing: Remove deprecated lp_printer_admin().Andreas Schneider2012-07-031-42/+14
|
* s3-param: Rename loadparm_s3_context -> loadparm_s3_helpersAndrew Bartlett2012-06-272-6/+6
| | | | | | | | | | | | | | | | | This helps clarify the role of this structure and wrapper function. The purpose here is to provide helper functions to the lib/param loadparm_context that point back at the s3 lp_ functions. This allows a struct loadparm_context to be passed to any point in the code, and always refer to the correct loadparm system. If this has not been set, the variables loaded in the lib/param code will be returned. As requested by Michael Adam. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104
* s3-printing: pass a talloc ctx to unpack_pjobDavid Disseldorp2012-06-261-1/+1
| | | | Rather than allocating the devicemode on a null context.
* s3-printing: clean up print_job_pause/resume interfaceDavid Disseldorp2012-06-261-8/+4
| | | | | Currently both return a bool and sometimes set a werr pointer argument, always return werror instead.
* s3-printing: rename queue->job sysjobDavid Disseldorp2012-06-261-8/+8
| | | | | | | | | | | | | | | Print jobs maintain two job identifiers, the jobid allocated by the spoolss layer (pj->jobid), and the job identifier defined by the printing backend (pj->sysjob). Printer job queues currently only contain a single job identifier variable (queue->job), the variable is sometimes representative of the spoolss layer job identifier, and more often representative of the printing backend id. This change renames the queue job identifier from queue->job to queue->sysjob, in preparation for a change to only store the printing backend identifier.
* s3:util: rename procid_equal() to serverid_equal()Michael Adam2012-06-211-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Remove unused variables and code.Jeremy Allison2012-06-191-9/+0
|
* Fix more "set but not used" warnings.Jeremy Allison2012-06-191-6/+3
|
* Fix a bunch of "set but not used" warnings.Jeremy Allison2012-06-191-14/+7
|
* s3:rpc_server/lsasd: remove dependency to libgen.h and basename()Stefan Metzmacher2012-06-191-8/+11
| | | | metze
* auth: Use only security_token_is_system to determine that a user is SYSTEMAndrew Bartlett2012-06-191-1/+1
| | | | | | | | | | This removes the duplication on how to detect that a user is system in Samba now that the smbd system account is also only SID_NT_SYSTEM we can use the same check everywhere. Andrew Bartlett Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-spoolss: delete_drivers should be called as the connecting user.Andreas Schneider2012-06-191-1/+1
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3:lib: split things into a conn_tdb.hStefan Metzmacher2012-06-051-0/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jun 5 19:28:35 CEST 2012 on sn-devel-104
* s3:rpc_server: don't do any magic in is_known_pipename() anymoreStefan Metzmacher2012-05-281-12/+3
| | | | | | | | | | The callers have to check if they allow something else than the raw pipe file name. If we allow more than windows allows, we risks Samba specific client behavior. E.g. winbindd only works against Samba servers. metze
* s3:rpc_server: return OBJECT_NAME_NOT_FOUND instead of PIPE_NOT_AVAILABLEStefan Metzmacher2012-05-281-1/+1
| | | | metze
* s3:libsmb: get rid of cli_state_protocolLuk Claes2012-05-281-1/+2
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smbd/msdfs: pass 'allow_broken_path' to get_referred_path()Stefan Metzmacher2012-05-241-4/+7
| | | | | | | | Note the DCERPC code should not be smb2 specific! I wonder why this is at all smb2 specific... metze
* s3:smbd/msdfs: let create_conn_struct() also fake the 'smbd_server_connection'Stefan Metzmacher2012-05-241-2/+8
| | | | metze
* s3:rpc_server/dfs: pass allow_broken_path=true to create_junction()Stefan Metzmacher2012-05-231-2/+4
| | | | | | | | | | | | DCERPC code can't be smb2 specific! I'm not sure if 'true' is the correct value here, but at least it matches the old behavior and the tcp and smb1 cases. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed May 23 21:56:05 CEST 2012 on sn-devel-104
* s3: Fix Coverity ID 242714 Uninitialized scalar variableVolker Lendecke2012-05-101-1/+2
| | | | In an error path we are closing domain_handle without opening it
* s3-spoolss: Set DWORD values correctly.Andreas Schneider2012-05-091-9/+9
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed May 9 11:13:00 CEST 2012 on sn-devel-104
* Fix bug #8873 - self granting privileges in security=ads.Jeremy Allison2012-05-011-4/+12
| | | | | Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue May 1 01:04:46 CEST 2012 on sn-devel-104
* s3:registry: remove usage of reg_objects from srv_spoolss_nt.cGregor Beck2012-04-251-1/+0
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* param: Change from _lp to lp__ as the prefix for internal parameter wrappersAndrew Bartlett2012-04-161-1/+1
| | | | | | | This will make a merge with the lib/param param code easier, as we can then paste lp_ to the front of all parameters unconditionally. Andrew Bartlett
* build: Remove SMB_STRUCT_DIR defineAndrew Bartlett2012-04-051-1/+1
|
* build: Remove sys_closedir wrapperAndrew Bartlett2012-04-051-2/+2
|
* build: Remove sys_opendir wrapperAndrew Bartlett2012-04-051-1/+1
|
* build: Remove sys_open wrapperAndrew Bartlett2012-04-051-3/+3
|
* use usleep rather than sys_usleep in various places, in anticipation of ↵Jelmer Vernooij2012-03-241-1/+1
| | | | usleep moving to libreplace.
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-245-5/+5
| | | | | | | | | The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
* libreplace: Add getpeereid implementation.Jelmer Vernooij2012-03-241-1/+2
|