summaryrefslogtreecommitdiffstats
path: root/source3/rpc_server
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Fix some && vs & warningsVolker Lendecke2012-03-041-3/+3
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Sun Mar 4 13:31:25 CET 2012 on sn-devel-104
* change low FDs are handled in SambaAndrew Bartlett2012-03-042-6/+0
| | | | | | | | | | | We now only close fds 0, 1, 2 when we are a forked daemon, and take care not to close a file descriptor that we might need for foreground stdin monitoring. This should fix stdout logging in the lsa and epmapper deamons (ie in make test). Andrew Bartlett
* s3: Fix a bogus if (client_len < 0)Volker Lendecke2012-03-031-1/+1
| | | | | | | | | On some platforms socklen_t might be unsigned, so comparing for <0 always returns true. Also, tsocket_address_bsd_sockaddr returns ssize_t. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 3 23:38:31 CET 2012 on sn-devel-104
* s3:rpc_server: initialize struct schannel_state to zeroStefan Metzmacher2012-03-021-2/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Mar 2 08:48:23 CET 2012 on sn-devel-104
* s3-rpc_server Remove unused function auth_generic_server_start()Andrew Bartlett2012-02-232-63/+0
|
* s3-librpc: Use gensec_spnego for DCE/RPC authenticationAndrew Bartlett2012-02-164-416/+3
| | | | | | | | | | | | | This ensures that we use the same SPNEGO code on session setup and on DCE/RPC binds, and simplfies the calling code as spnego is no longer a special case in cli_pipe.c A special case wrapper function remains to avoid changing the application layer callers in this patch. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-waf: add dependency on talloc or it won't build if talloc.h is not in the ↵Matthieu Patou2012-02-101-1/+2
| | | | | | | | | | default include path The problem occurs only if talloc, tdb and ldb are used as system libraries and talloc is not installed in a default. Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri Feb 10 23:27:29 CET 2012 on sn-devel-104
* s3-waf: Fix cups dependency in PRINTING.Andreas Schneider2012-01-251-1/+1
|
* s3-waf: Add missing dependency to RPC_WINREG.Andreas Schneider2012-01-251-1/+1
|
* s3-spoolss: fix incorrect error check typeDavid Disseldorp2012-01-221-1/+1
| | | | | | | NT_STATUS_IS_OK used to check WERROR type. Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Sun Jan 22 05:03:36 CET 2012 on sn-devel-104
* s3-spoolss: fix printer_driver_files_in_use() call orderingDavid Disseldorp2012-01-201-8/+10
| | | | | | | | | | | | | | printer_driver_files_in_use() performs two tasks: it returns whether any of the files in the to-be-deleted driver overlap with other drivers, it also trims such files from the info structure passed in. In processing a DeletePrinterDataEx request with DPD_DELETE_UNUSED_FILES set, printer_driver_files_in_use() must be called to ensure files in use by other drivers are not removed. https://bugzilla.samba.org/show_bug.cgi?id=4942 Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-spoolss: fix printer driver version deletionDavid Disseldorp2012-01-201-167/+111
| | | | | | | | | | Spoolss delete printer driver code currently makes invalid version assumptions based on the architecture requested by the client. Ugly hacks are in place to cover removal of other versions (2 and 3). This change wraps multi version deletion in a simple for loop. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-librpc Remove unused dcesrv_gssapi.[ch] functionsAndrew Bartlett2012-01-185-268/+1
| | | | | | | | | The code from dcesrv_gssapi.c is now in source3/auth/auth_generic.c as an auth callback. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-librpc Remove layer around struct gensec_securityAndrew Bartlett2012-01-181-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-librpc: Simplify SPNEGO code now that all mechs use a struct gensec_securityAndrew Bartlett2012-01-182-16/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-librpc Call SPENGO/GSSAPI via the auth_generic layer and gensecAndrew Bartlett2012-01-182-104/+25
| | | | | | | | | | This simplifies a lot of code, as we know we are always dealing with a struct gensec_security, and allows the gensec module being used to implement GSSAPI to be swapped for AD-server operation. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-librpc Call GSSAPI via the auth_generic layer and gensecAndrew Bartlett2012-01-181-72/+4
| | | | | | | | | | This simplifies a lot of code, as we know we are always dealing with a struct gensec_security, and allows the gensec module being used to implement GSSAPI to be swapped when required for AD-server operation. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* spoolss: fix DPD_DELETE_ALL_FILES error returnDavid Disseldorp2012-01-111-2/+1
| | | | | | | | | If DeletePrinterDriverEx is called with DPD_DELETE_ALL_FILES and files assigned to the to-be-deleted driver overlap with other drivers then an error is returned. Change the error code here to match Windows 2k8r2. Signed-off-by: David Disseldorp <ddiss@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-auth Remove ntlmssp_wrap.h which is no longer requiredAndrew Bartlett2012-01-051-1/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth use gensec directly rather than via auth_generic_stateAndrew Bartlett2012-01-051-32/+24
| | | | | | | | | This is possible because the s3 gensec modules are started as normal gensec modules, so we do not need a wrapper any more. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth Add TALLOC_CTX * to auth_generic_prepare()Andrew Bartlett2012-01-051-2/+2
| | | | | | | | | This makes the long term owner of this memory more clear. So far only the clear cases have been moved from NULL however. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server: Rework pipe_ntlmssp_auth_bind() to be genericAndrew Bartlett2011-12-223-25/+63
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server: Allow gensec mechanisms to return NT_STATUS_OKAndrew Bartlett2011-12-221-2/+2
| | | | | | | | If a kerberos mechanism is added, then it can return OK after just one packet. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server: rename pipe_ntlmssp_verify_final() to ↵Andrew Bartlett2011-12-221-3/+3
| | | | | | pipe_auth_generic_verify_final() Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server: Rename dcesrv_ntlmssp.[ch] to dcesrv_auth_generic.[ch]Andrew Bartlett2011-12-225-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server rename NTLMSSP functions to auth_generic..()Andrew Bartlett2011-12-224-11/+11
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server rename ntlmssp_server_auth_start() -> auth_generic_server_start()Andrew Bartlett2011-12-224-5/+9
| | | | | | | | | By adding an OID parameter we can make this routine generic to any gensec module that may be made available. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server remove unused headerAndrew Bartlett2011-12-221-1/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server request both sign and seal for clarityAndrew Bartlett2011-12-221-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth remove auth_ntlmssp_start(), call auth_generic_start() directlyAndrew Bartlett2011-12-221-2/+2
| | | | | | | | This makes it clear that this can support more than just NTLMSSP. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth rename auth_ntlmssp_prepare() -> auth_generic_prepare()Andrew Bartlett2011-12-221-2/+2
| | | | | | | | | This function handles more than NTLMSSP now, at least when we are an AD DC and so changing the name may avoid some confusion in the future. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth rename auth_ntlmssp_state -> auth_generic_stateAndrew Bartlett2011-12-221-1/+1
| | | | | | | | | This structure handles more than NTLMSSP now, at least when we are an AD DC and so changing the name may avoid some confusion in the future. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-rpc_server request the DCE_STYLE feature in ntlmssp_server_auth_startAndrew Bartlett2011-12-221-0/+4
| | | | | | | | | This is not used or honoured by NTLMSSP, but I hope to make this routine more generic in the future. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-netlogon: use dsgetdcname() instead of get_dc_name()Sumit Bose2011-12-221-2/+7
| | | | | | | | Sometimes the domain parameter might not contain the NetBIOS name of the remote domain but the DNS name. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Dec 22 19:21:21 CET 2011 on sn-devel-104
* s3-netlogon: Add support to authenticate trusted domains.Sumit Bose2011-12-221-0/+13
|
* s3-rpc_server: Pass in our flags to netlogon_creds_server_init().Stefan Metzmacher2011-12-221-1/+1
| | | | metze
* s3-netlogon: Add support for LogonGetCapabilities.Stefan Metzmacher2011-12-221-1/+21
| | | | | | This is also needed to support AES. metze
* s3-rpc_server: Add my copyright for my previous work hereAndrew Bartlett2011-12-221-0/+1
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Thu Dec 22 09:02:57 CET 2011 on sn-devel-104
* s3-rpc_server: Remove old commentAndrew Bartlett2011-12-221-5/+0
|
* s3-rpc: added "rpc_server:default" config optionAndrew Tridgell2011-12-221-4/+12
| | | | | | | | this allows the config to specify a default behaviour (embedded, external or disabled) for unknown pipes. This is needed to allow the s3 smbd server to redirect unknown pipes to the s4 RPC server when using s3 smbd as a file server for a s4 DC. If rpc_server:default is not specified then this change preserves the old behaviour
* s3:smbd: pass smbd_server_connection and a snumused function pointer to ↵Stefan Metzmacher2011-12-151-1/+11
| | | | | | reload_services() metze
* s3:rpc_server/spoolss: remove reload_services check from delete_printer_hook()Stefan Metzmacher2011-12-151-8/+0
| | | | | | | | | | | | | As the spoolss code can run embedded or external relative to the smbd file server process, it's very tricky to verify if a share is still in use. Checking the result of the "deleteprinter command" command should be enough to check for success. We should not return WERR_ACCESS_DENIED if the share is still in use, by the current client, as the primary printer definition is already deleted. metze
* s3:smbd/msdfs: enum_msdfs_links() doesn't need a smbd_server_connection anymoreStefan Metzmacher2011-12-131-2/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Dec 13 17:26:20 CET 2011 on sn-devel-104
* s3:smbd: use connections_snum_used() instead of conn_snum_used() for ↵Stefan Metzmacher2011-12-131-1/+1
| | | | | | | | | load_usershare_shares() Before removing the share security descriptor, we should make sure there're really no active users anymore. metze
* s3:param: don't reference conn_snum_used directly in load_usershare_shares()Stefan Metzmacher2011-12-131-1/+1
| | | | | | This uses the same logic as lp_killunused(). metze
* s3:rpc_server/netlogon: remove unused send_sync_message()Stefan Metzmacher2011-12-131-14/+0
| | | | metze
* s3: Remove a bunch of calls to procid_self()Volker Lendecke2011-12-122-3/+2
| | | | All callers to messaging_[re]init only used procid_self()
* s4-lsarpc handle more info levels in SetInfoTrustedDomain callsAndrew Bartlett2011-12-121-1/+1
| | | | | | | This uses the very helpful conversion functions written for the s3 lsa server and places these in common. Andrew Bartlett
* s3: Use autogenerated open_files.idlVolker Lendecke2011-12-021-0/+1
|
* Fix bug #8561 - Password change settings not fully observed.Jeremy Allison2011-11-161-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Nov 16 00:22:41 CET 2011 on sn-devel-104