summaryrefslogtreecommitdiffstats
path: root/source3/rpc_server
Commit message (Collapse)AuthorAgeFilesLines
* s3-netlogon: Fix setting the machinge account password.Andreas Schneider2011-10-271-0/+4
| | | | This bug has been found with uid wrapper.
* Second attempt to fix bug #8384 - Windows XP clients seem to crash smbd ↵Jeremy Allison2011-10-261-1/+1
| | | | | | | | | | | process every once in a while. Don't just use the first entry in back_channels as a talloc context to allocate a long-lived chan entry on - must be NULL. It's already correctly deleted when the last reference goes away. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 26 02:42:35 CEST 2011 on sn-devel-104
* Try and fix bug #8384 - Windows XP clients seem to crash smbd process every ↵Jeremy Allison2011-10-241-6/+17
| | | | | | | | | | | once in a while. Remove the copy of the binding handle from struct notify_back_channel, use the direct pointer in struct rpc_pipe_client instead. Ensure we can't call the functions with a NULL binding handle. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Oct 24 22:56:40 CEST 2011 on sn-devel-104
* idl: Improve MS-PAC IDLSimo Sorce2011-10-241-1/+1
| | | | | | | | | | Change some misleading variable names to reflect the actual function. Add missing field name/types previously marked as unkown. Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Oct 24 19:19:28 CEST 2011 on sn-devel-104
* s3-ntlmssp Remove references to auth_ntlmssp_context from the rpc codeAndrew Bartlett2011-10-214-42/+40
| | | | | | | | | We always dereferenced auth_ntlmssp_state->gensec_security, so now we do not bother passing around the whole auth_ntlmssp_state. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlmssp Remove auth_ntlmssp_want_feature()Andrew Bartlett2011-10-211-2/+2
| | | | | | | | We now just call the gensec_want_feature() directly. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlmssp Remove auth_ntlmssp_negotiated_sign() and ↵Andrew Bartlett2011-10-211-2/+2
| | | | | | | | | | auth_ntlmssp_negotiated_seal() We now just call the gensec_have_feature() directly. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-ntlmssp Remove auth_ntlmssp_update wrapperAndrew Bartlett2011-10-211-2/+2
| | | | | | | | We now just call gensec_update directly. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth remove auth_ntlmssp_session_info()Andrew Bartlett2011-10-211-1/+2
| | | | | | | | Instead, call gensec_session_info() directly. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* ntlmssp: Move ntlmssp code to auth/ntlmsspAndrew Bartlett2011-10-181-1/+1
| | | | | | | | | This brings in the code from both libcli/auth and source4/auth/ntlmssp. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* libcli/auth: Provide a struct loadparm_context to schannel callsAndrew Bartlett2011-10-132-8/+60
| | | | | | This will allow us to pass this down to the tdb_wrap layer. Andrew Bartlett
* s3-group-mapping: Remove fstrings from GROUP_MAP.Simo Sorce2011-10-122-15/+53
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Oct 12 19:28:12 CEST 2011 on sn-devel-104
* s3:rpc_server: convert srvsvc to only use dbwrap wrapper functionsMichael Adam2011-10-111-2/+5
| | | | Avoid direct use of the db_record and db_context structs.
* Fix bug #8509 - Read-only handles on SAMR allow SAMR_DOMAIN_ACCESS_CREATE_USER.Jeremy Allison2011-10-071-3/+8
| | | | | | | | Not a security issue as we also check inside _samr_CreateUser2. Thanks to Andreas Schneider <asn@samba.org> for finding and testing this. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 7 21:51:27 CEST 2011 on sn-devel-104
* s3-samr: Remove fstring in samr.Andreas Schneider2011-09-261-5/+14
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon Sep 26 19:56:04 CEST 2011 on sn-devel-104
* s3-passdb: Cleanup use of fstring and move to talloc.Simo Sorce2011-09-261-15/+37
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3: Remove the smbd_server_conn ref from create_junctionVolker Lendecke2011-09-261-1/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Sep 26 16:33:30 CEST 2011 on sn-devel-104
* s3: Remove the smbd_server_conn ref from get_referred_pathVolker Lendecke2011-09-261-6/+10
|
* s3: Remove the smbd_server_conn ref from create_conn_structVolker Lendecke2011-09-261-6/+6
|
* s3-libnet: allow to use default krb5 ccache in libnet_Join/libnet_Unjoin.Günther Deschner2011-09-211-0/+5
| | | | | | | | | We force using a MEMORY ccache though in the wkssvc server. Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Sep 21 19:13:33 CEST 2011 on sn-devel-104
* rpc_server: Improve debug message for sys_getpeereid().Andreas Schneider2011-09-151-1/+2
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Sep 15 19:23:43 CEST 2011 on sn-devel-104
* s3:rpc_server: let rpcint handles return NT_STATUS_CONNECTION_DISCONNECTEDStefan Metzmacher2011-09-141-2/+2
| | | | | | We should return the same in all places. metze
* s3-lsa: Add conversion for auth info structsSumit Bose2011-09-121-33/+14
| | | | | | | | | | | struct lsa_TrustDomainInfoAuthInfo and struct trustAuthInOutBlob can store the same information for different usage. The added routines can convert one struct into the other. Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Mon Sep 12 15:52:17 CEST 2011 on sn-devel-104
* s3-spoolss: Fix bug #8236 empty notify servername.Andreas Schneider2011-09-031-0/+9
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Sep 3 02:58:42 CEST 2011 on sn-devel-104
* s3-rpc_server: Add missing rng_fault_state in epmapper.Andreas Schneider2011-09-011-0/+2
| | | | | | | | | We need to raise an exception so we need to set the rng_fault_state for epm_Insert and epm_Delete if someone connects over a transport other than NCALRPC. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Sep 1 15:59:50 CEST 2011 on sn-devel-104
* s3-rpc_server: Handle services with multiple pipe names.Andreas Schneider2011-09-011-2/+10
| | | | | The configuration should only use the default pipe name to configure all of them correctly.
* s3-rpc_server: Disable epmapper by default.Andreas Schneider2011-08-311-2/+2
| | | | | | | | | | | | | We need more testing in the real world. We need to be sure that if a Windows client can access port 135 it doesn't require that a service is available via ncacn_ip_tcp. If possible please enable it using the following smb.conf options for testing: rpc_daemon:epmd = fork rpc_server:epmapper = external Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Wed Aug 31 16:29:20 CEST 2011 on sn-devel-104
* s3-lsa: Add _lsa_SetInformationTrustedDomain() and related callsSumit Bose2011-08-311-21/+312
| | | | | | | | | The following LSA calls are added: - _lsa_SetInformationTrustedDomain() - _lsa_SetTrustedDomainInfo() -_lsa_SetTrustedDomainInfoByName() Signed-off-by: Günther Deschner <gd@samba.org>
* s3-lsa: Update _lsa_QueryTrustedDomainInfo()Sumit Bose2011-08-311-8/+63
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-lsa: Fix access mapping in_lsa_OpenTrustedDomain_base()Sumit Bose2011-08-311-1/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-lsa: Fix typo and use right pdb interfaceSumit Bose2011-08-311-1/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-rpc_server: Make sure we switch always the connecting user.Andreas Schneider2011-08-301-13/+11
| | | | | | | | | | We always have a valid session info and if it is a anonymous connection we have a session info of the guest user. This means we should always call become_authenticated_pipe_user() else and anonymous user could do things as root. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Tue Aug 30 20:50:54 CEST 2011 on sn-devel-104
* s3:rpc_server: fix two debug messages in svcctl_add_service()Michael Adam2011-08-291-2/+2
| | | | | | | (copy and paste from eventlog?) Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Aug 29 15:30:33 CEST 2011 on sn-devel-104
* s3-lib: If we create a pipe socket, don't start to listen.Andreas Schneider2011-08-291-0/+16
| | | | | | | | | The create_pipe_sock() function should only create the socket as the name states and not start to listen on it too. We should start to listen on in the individual places as we need different backlog values. Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon Aug 29 13:21:43 CEST 2011 on sn-devel-104
* s3: Fix an uninitialized variableVolker Lendecke2011-08-241-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Aug 24 00:34:04 CEST 2011 on sn-devel-104
* s3: Fix the build on FreeBSDVolker Lendecke2011-08-231-0/+1
| | | | | lsasd.c uses basename(3), which according to susv3 requires libgen.h and without which the FreeBSD build breaks.
* s3-passdb: Keep caches coherentAndreas Schneider2011-08-211-0/+3
| | | | | | | | | | | When deleting a user send a message to all interested parties so they can purge their caches. Otherwise some processes may positively respond with a cached getpwnam, when the user have actully been removed. Without this some tests that remove and then immediately create users are flakey. Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: Listen on \PIPE\lsass.Andreas Schneider2011-08-211-0/+16
| | | | Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: Add missing ncalrpc listeners.Andreas Schneider2011-08-211-0/+66
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-rpc_server: Add create_dcerpc_ncalrpc_socket().Andreas Schneider2011-08-212-12/+29
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-rpc_server: Increase epm monitor wait time.Andreas Schneider2011-08-211-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: Remove useless checkSimo Sorce2011-08-211-16/+3
| | | | | | | | | | If we *really* are a bout to exit (PF_WORKER_EXITING) then the event will not be called as the loop will exit. Otherwise PF_SRV_MSG_EXIT may not be honoured for a long time if we have cients connected, therefore keep handling SIGHUP properly in those cases. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: Listen on parent messagesSimo Sorce2011-08-211-0/+18
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: Send a message to the parent when we accept a connectionSimo Sorce2011-08-211-0/+25
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: User new prefork helpers to simplify code.Simo Sorce2011-08-211-27/+3
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: Fix worker flags handling.Simo Sorce2011-08-211-1/+1
| | | | | | | | | | | | | We can't have a clear idea of wether the worker is IDLE or BUSY. The only things we can tell is if it is Alive, whether it is currently Accepting connections or wether it is Exiting soon. Remove PF_WORKER_IDLE, PF_WORKER_BUSY and replace their use with PF_WORKER_ALIVE. Also properly assign PF_WORKER_ACCEPTING so that users of the API can rely on the flag. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-prefork: do not use a lock_fd, just race on accept()Simo Sorce2011-08-211-18/+5
| | | | | | | | | | | | | | | | | | | We used a lock mimicking what apache does for preforked children. But it doesn't work properly in our case because we do not stop once a request has been served. Clients are allowed to perform multiple requests and keep the connection open. This means that if we allow multiple clients per children, then a child could take the lock and then be asked to do a long or even locking operation by a client it already is serving. This woulkd cause the whole server to deadlock, as the child is now busy and also holding on the lock. Using a race on accept() by having a tevent_fd on the listening socket wait for read events we never deadlock. At most we cause a bit of contention among children. But in the generic case connections are much less frequent for us as clients tend to be long lived. So the little contention we may have is not a big deal. Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* rpc_server: Add forward declaration for dcerpc_transport_t.Andreas Schneider2011-08-211-0/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-waf: Fix build with lsasd.Andreas Schneider2011-08-211-0/+4
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>
* s3-lsasd: Use prefrok utils to manage childrenSimo Sorce2011-08-211-117/+36
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Simo Sorce <idra@samba.org>