summaryrefslogtreecommitdiffstats
path: root/source3/rpc_server
Commit message (Collapse)AuthorAgeFilesLines
* s3-printing: safe a ton of roundtrips by reusing existing winreg ↵Günther Deschner2011-07-071-148/+191
| | | | | | | | binding_handles. Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: use winreg_internal functions.Günther Deschner2011-07-071-73/+73
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: add winreg_internal functions.Günther Deschner2011-07-073-1/+540
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: add winreg_printer_binding_handle and remove most of ↵Günther Deschner2011-07-072-4772/+12
| | | | | | | | srv_spoolss_util.c. Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: move driver_info_ctr_to_info8 to init_spoolss.hGünther Deschner2011-07-071-0/+1
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-printing: move os2 related functions to printing/nt_printing_os2.c.Günther Deschner2011-07-071-0/+1
| | | | | | Guenther Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
* s3-waf: Fix linking bugs causing segfaults.Andreas Schneider2011-07-071-1/+1
| | | | | | | | As auth_util.c is linked several times the static variables have different address on different calls. This leads to segfaults. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Jul 7 16:50:05 CEST 2011 on sn-devel-104
* s3: Remove some unused variablesVolker Lendecke2011-07-051-4/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jul 5 18:40:11 CEST 2011 on sn-devel-104
* s3: Return "granted" from share_access_checkVolker Lendecke2011-07-051-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Fix an enum/int mixupVolker Lendecke2011-07-041-9/+10
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jul 4 18:47:59 CEST 2011 on sn-devel-104
* s3-samr Send IP address only to PAM remote hostname hook on password setAndrew Bartlett2011-07-041-44/+12
| | | | | | | | The previous behaviour was to attempt to do a reverse hostname lookup, where enabled. This new behaviour matches the new behaviour in the modules called by auth stack. Andrew Bartlett
* s3-rpc_server: Remove client_id and server_id from pipes struct.Andreas Schneider2011-07-042-60/+0
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-epmapper: Replace server_id in the epmapper.Andreas Schneider2011-07-041-4/+17
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-spoolss: Replace client_id in the spoolss server.Andreas Schneider2011-07-041-8/+63
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-samr: Replace client_id in samr server.Andreas Schneider2011-07-041-7/+72
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-rpc_server: Replace client_id in dcerpc gssapi server.Andreas Schneider2011-07-043-8/+27
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-rpc_server: Remove unused client_id in srv_pipe.c.Andreas Schneider2011-07-041-3/+0
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-auth: Pass the remote_address down to user_info.Andreas Schneider2011-07-041-0/+2
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-auth: Added remote_address to ntlmssp server.Andreas Schneider2011-07-045-2/+21
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-rpc_server: Migrate rpc function to tsocket_address.Andreas Schneider2011-07-047-40/+93
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-rpc_server: Add local and remote address to pipes struct.Andreas Schneider2011-07-041-30/+43
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* param: Finish conversion from lp_wins_support() -> lp_we_are_a_wins_server()Andrew Bartlett2011-07-021-1/+1
| | | | | | | | | Jermey started this in 1997 with 0aa493cc0303aa4177f289b9e4c797c8fa180672 (avoiding the duplicate function makes it easier to generate the struct loadparm_globals). Andrew Bartlett
* s3-printing: split out printing migration code into a smaller library.Günther Deschner2011-07-011-1/+1
| | | | Guenther
* s3-waf: add some missing tdb dependencies.Günther Deschner2011-06-281-1/+1
| | | | Guenther
* s3-param Remove 'announce version' parameterAndrew Bartlett2011-06-232-10/+10
| | | | | | | | The only users I can find of this on the internet involve confused users, and our own documentation recommends never setting this. Don't confuse our users any longer. Andrew Bartlett
* s3-spoolss: Fix some valgrind warnings.Andreas Schneider2011-06-212-8/+8
| | | | | | | | | These are in/out values and need to be initialized. Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Jun 21 18:58:30 CEST 2011 on sn-devel-104
* lib/util Remove samba-util-common!Andrew Bartlett2011-06-211-12/+12
| | | | | | | All of this code is now in common, so we don't need the second '-common' library any more! Andrew Bartlett
* tdb_traverse/tdb_traverse_read: check returns for negative, not -1.Rusty Russell2011-06-201-1/+1
| | | | | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for < 0 instead of == -1. Also, there's no tdb_traverse_read in TDB2: we don't try to make traverse reliable any more, so there are no write locks anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3:rpc_server/svcctl: fix valgrind bug in _svcctl_QueryServiceObjectSecurity()Stefan Metzmacher2011-06-161-1/+1
| | | | | | | | | | | r->out.buffer needs to stay in its size, as it will be marshalled completely. As it's preallocated and initialized with zeros, we just need to copy the payload into it, even if it's smaller than the offered buffer size. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jun 16 14:15:47 CEST 2011 on sn-devel-104
* s3:rpc_server/svcctl: fix valgrind bugs in _svcctl_QueryServiceConfig2W()Stefan Metzmacher2011-06-161-9/+5
| | | | | | | | | | | r->out.buffer needs to stay in its size, as it will be marshalled completely. As it's preallocated and initialized with zeros, we just need to copy the payload into it. If we always marshall the return buffer, we already have the needed buffer size and don't need to call ndr_size_* functions. metze
* s3:rpc_server/svcctl: don't allocate return values on a temporary stackframeStefan Metzmacher2011-06-161-5/+3
| | | | | | | | | | | And always initialize the whole return structure. This caused samba3.posix_s3.rpc.svcctl to be flakey. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Jun 16 11:34:34 CEST 2011 on sn-devel-104
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-097-26/+26
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_MEMDUP isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2011-06-093-35/+35
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_P() to talloc_zero()Andrew Bartlett2011-06-099-54/+54
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_P isn't standard talloc.
* s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett2011-06-092-14/+14
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-098-27/+27
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-093-18/+18
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* s3-spoolss: fix -Wunused-but-set-variable build warning in ↵Günther Deschner2011-06-081-0/+4
| | | | | | | | _spoolss_EnumPrintProcDataTypes(). We were in fact ignoring the error code here. Guenther
* s3: Fix a valgrind errorVolker Lendecke2011-06-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For me this fixes ==1950== Invalid read of size 4 ==1950== at 0x81EBED5: GUID_equal (uuid.c:239) ==1950== by 0x81E51AB: ndr_syntax_id_equal (ndr_misc.c:35) ==1950== by 0x82EB0D1: get_iface_from_syntax (rpc_common.c:160) ==1950== by 0x82EB25E: get_pipe_name_from_syntax (rpc_common.c:179) ==1950== by 0x8509E4F: close_policy_by_pipe (rpc_handles.c:322) ==1950== by 0x8507941: close_internal_rpc_pipe_hnd (rpc_ncacn_np.c:109) ==1950== by 0x468270: _talloc_free_internal (talloc.c:826) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x80E6487: sam_trusted_domains (winbindd_samr.c:406) ==1950== Address 0x687ea4 is 20 bytes inside a block of size 40 free'd ==1950== at 0x58CDC: free (in /usr/local/lib/valgrind/vgpreload_memcheck-x86-freebsd.so) ==1950== by 0x8507812: free_pipe_rpc_context_internal (rpc_ncacn_np.c:74) ==1950== by 0x8507936: close_internal_rpc_pipe_hnd (rpc_ncacn_np.c:106) ==1950== by 0x468270: _talloc_free_internal (talloc.c:826) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x467EE0: _talloc_free_internal (talloc.c:1268) ==1950== by 0x80E6487: sam_trusted_domains (winbindd_samr.c:406) ==1950== by 0x80C2F85: trusted_domains (winbindd_cache.c:2820) ==1950== by 0x80D5188: winbindd_dual_list_trusted_domains (winbindd_misc.c:162) ==1950== by 0x80E987F: wb_child_request_trigger (winbindd_dual.c:437) ==1950== Andreas, Guenther, please check! Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 5 13:19:39 CEST 2011 on sn-devel-104
* Fix bug where format arguments were reversed. Please compile with -Wall !Jeremy Allison2011-06-011-2/+2
|
* s3-epmapper: Register ports on IPv4 too.Andreas Schneider2011-06-012-2/+2
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Jun 1 13:14:53 CEST 2011 on sn-devel-104
* s3-rpc_server: Remove unused variable pipes_open.Andreas Schneider2011-06-011-4/+2
|
* s3-rpc_server: Remove syntax from pipes_struct.Andreas Schneider2011-06-012-2/+0
|
* s3-rpc_server: Fixed debug messages of srv_pipe_hnd.Andreas Schneider2011-06-011-5/+5
|
* s3-rpc_server: Fixed debug messages for rpc_handles.Andreas Schneider2011-06-011-6/+7
|
* s3-rpc_server: Fix debug messages.Andreas Schneider2011-06-011-46/+20
|
* s3-rpc_server: Don't segfault if there are not handles to free.Andreas Schneider2011-06-011-0/+4
|
* s3-rpc_server: Remove guessing of the syntax id.Andreas Schneider2011-06-015-51/+11
| | | | | This is only a wild guess. We don't know to which rpc service the client wants to talk until we read the the rpc bind packet.
* s3-rpc_server: Use the correct syntax id for debugging.Andreas Schneider2011-06-011-8/+11
|