summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-spoolss: Consistently fail OpenPrinterEx with "" printernameAndrew Bartlett2012-03-131-0/+4
| | | | | | | | | | | | samba3.rpc.spoolss.printserver has become a flakey test recently, and this papers over the real problem. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org> Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Mar 13 17:51:00 CET 2012 on sn-devel-104
* s3-rpc: Decrypt with the proper session key in CreateTrustedDomainEx2.Alexander Bokovoy2012-03-135-79/+120
| | | | | | | | | | | | | | | | On LSA and SAMR pipes session_key is truncated to 16 byte when doing encryption/decryption. However, this was not done for trusted domain-related modifying operations. As result, Samba 4 client libraries do not work against Samba 3 while working against Windows 2008 r2. Solved this by introducing "session_extract_session_key()" function that allows to specify intent of use of the key. Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Tue Mar 13 12:23:44 CET 2012 on sn-devel-104
* s3:torture: fix segfault in LOCAL-TALLOC-DICTStefan Metzmacher2012-03-131-1/+3
| | | | | | talloc_dict_set() expects a pointer to an talloc'ed pointer. metze
* s3:torture: talloc_dict_traverse() returns the number of entriesStefan Metzmacher2012-03-131-2/+7
| | | | metze
* s3: Improve statvfs supportBrad Smith2012-03-112-9/+14
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sun Mar 11 14:18:04 CET 2012 on sn-devel-104
* tdb_wrap: Move to specific directory.Jelmer Vernooij2012-03-107-7/+7
| | | | | | | | | | It's a bit confusing to mix low-level and high-level libraries. We had multiple libraries in one directory, and there were have circular dependencies with other libraries outside that directory (in this case, samba-hostconfig). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104
* selftest: fix running additional smbclient test for non-spnego session setupAndrew Bartlett2012-03-101-1/+1
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Sat Mar 10 20:46:05 CET 2012 on sn-devel-104
* s3: fix build on AIXBjörn Jacke2012-03-101-1/+2
| | | | | Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Sat Mar 10 19:07:20 CET 2012 on sn-devel-104
* s3: Add smb_request_doneVolker Lendecke2012-03-104-60/+103
| | | | | | | | | | | This is used to enable async chained command sequences. A synchronous reply_xxx command does not need to take are anymore about and_x chaining. The async commands (pipe r/w at this moment) must do so however. When finished, they must inform the main chain engine that they are finished with a smb_request_done call. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 10 17:14:05 CET 2012 on sn-devel-104
* s3: Remove unused smb_request->doneVolker Lendecke2012-03-102-8/+0
|
* s3: Remove unused smb_request->chain_outbufVolker Lendecke2012-03-102-6/+0
|
* s3: Remove "req_wct_ofs()"Volker Lendecke2012-03-104-22/+2
| | | | This is fixed up in construct_reply_chain
* s3: Fix the read&x offset within a chainVolker Lendecke2012-03-101-0/+32
|
* s3: Remove chain_replyVolker Lendecke2012-03-106-289/+0
| | | | <insert your favourite tombstone ascii art here>
* s3: Replace chain_replyVolker Lendecke2012-03-102-3/+143
| | | | | | | | | | | This is a new implementation of our andx handling code. The old code was quite involved in that it was called from within the reply_ handlers. This leads to pretty complex faking of smb_request structures to give them the same environment, independent of whether they are called directly or from within chain_reply. chain_reply needs to go because it blocks really async handling of chained requests.
* s3: Add a new set of andx chain handling routinesVolker Lendecke2012-03-107-2/+599
| | | | This is in preparation of getting rid of chain_reply.
* s3: Make sure the andX chains are ended correctlyVolker Lendecke2012-03-105-0/+33
| | | | Normally chain_reply took care of this. This will go away soon.
* s3: Fix a 64-bit warningVolker Lendecke2012-03-101-1/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sat Mar 10 15:27:09 CET 2012 on sn-devel-104
* Ensure the right tsocket.h is included.Jeremy Allison2012-03-101-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Mar 10 03:47:04 CET 2012 on sn-devel-104
* Fix up Christian Ambach's multi-credit code - the CreditCharge field is a ↵Jeremy Allison2012-03-091-2/+2
| | | | 16-bit int read, not a 32-bit one.
* s3:smb2_server validate message ids with largemtuChristian Ambach2012-03-091-27/+56
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb2_server verify creditchargeChristian Ambach2012-03-096-0/+37
| | | | | | | for all requests that have max_???? checks, also do a check of the creditcharge the client has sent (when using largemtu) Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb2_server add function to verify creditchargeChristian Ambach2012-03-092-0/+42
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb2_server: announce LargeMTU for SMB2.1Christian Ambach2012-03-091-4/+27
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb2_server increase defaults for read/write/trans sizes to 1MBChristian Ambach2012-03-091-3/+3
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb2_server: add supports_multicredit to sconnChristian Ambach2012-03-091-0/+1
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smb2_server use the correct variables for max read/writeChristian Ambach2012-03-091-2/+2
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: asprintf->talloc_asprintfVolker Lendecke2012-03-091-4/+6
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 9 19:01:06 CET 2012 on sn-devel-104
* s3: Replace a SMB_ASSERT with an error returnVolker Lendecke2012-03-091-1/+5
|
* s3: Remove some superfluous ()Volker Lendecke2012-03-091-1/+1
|
* auth/ntlmssp: Remove gensec_security element from gensec_ntlmssp_stateAndrew Bartlett2012-03-091-3/+3
| | | | | | This just means there is one less pointer to ensure we initialise. Andrew Bartlett
* s3-auth: Remove single-implementation plugin layerAndrew Bartlett2012-03-085-19/+50
| | | | | | | | The ->get_ntlm_challenge and ->check_ntlm_password elements of struct auth_context were only ever initialised to a single value. Make it easier to follow by just calling the function directly. Andrew Bartlett
* s3-auth: Follow auth_ntlmssp and use auth4_context for Session SetupAndrew Bartlett2012-03-084-55/+32
| | | | | | | | | | This patch ensures consistency in behaviour between NTLMSSP and NTLM session setup handlers. By calling the same layer that auth_ntlmssp calls, we can not only allow redirection of all authentication to the AD DC, we ensure that map to guest and username map handling is consistent, even in the file server alone. Andrew Bartlett
* selftest: add more tests for different authentication codepathsAndrew Bartlett2012-03-081-0/+4
|
* Change default protocol to SMB2_02.Jeremy Allison2012-03-071-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 7 22:41:21 CET 2012 on sn-devel-104
* s3: piddir creation fix part 2.Ira Cooper2012-03-072-0/+8
| | | | | | | Since the piddir got moved from the lockdir by default, the default piddir wasn't getting created, stopping some configurations from running. Signed-off-by: Jeremy Allison <jra@samba.org>
* addns: Fix the Solaris/Illumos build.Ira Cooper2012-03-071-0/+1
| | | | | | uuid_t is not defined without including sys/uuid.h, configure+waf checks added. Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: piddir creation fix.Ira Cooper2012-03-071-0/+3
| | | | | | | Since the piddir got moved from the lockdir by default, the default piddir wasn't getting created stopping some configurations from running. Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-rpc_server: Do not register embedded ncacn_np endpoints by defaultAndrew Bartlett2012-03-071-1/+8
| | | | | | | | | | | | | | The end point mapper is primarily in support of lsasd, and the key SAMR, LSA and NETLOGON services being accessed over TCP/IP. The end point mapper does not appear to be used for the well-known mappings to named pipes, and we have a problem with how to safely register the embedded pipes. For now, disable this to avoid re-registration storms in production, until we sort out a better way. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 7 14:27:38 CET 2012 on sn-devel-104
* s3-rpc_server: Register embedded RPC services after starting lsasd and spoolssdAndrew Bartlett2012-03-071-4/+4
| | | | | | | This ensures that these services are not accidentally registered in these child processes. Andrew Bartlett
* s3-rpc_server: Do not setup ncalrpc pipes and TCP for embedded rpc serversAndrew Bartlett2012-03-071-108/+38
| | | | | | | | | | | | | Embedded RPC services are those not launched in the preforked lsasd and spoolssd children. The reason that these child processes were created is that is is not possible to correctly listen for ncalrpc and TCP connections without creating a child process. Therefore, we should not have these embedded RPC services to listen on these sockets just because the endpoint mapper has been enabled. Andrew Bartlett
* s3-smbd make change_to_user_by_session staticAndrew Bartlett2012-03-072-4/+2
|
* s3:selftest: ask smbtorture4 for smb2 testsGregor Beck2012-03-071-2/+9
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Mar 7 01:34:05 CET 2012 on sn-devel-104
* s3:smbd: keep 'num_files' and 'files' directly under smbd_server_connectionStefan Metzmacher2012-03-062-8/+9
| | | | | | | | | | The plan is to have files_struct as some kind of low level abstraction for a smb1/smb2 opens, that can be used by SMB_VFS modules. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Mar 6 23:04:01 CET 2012 on sn-devel-104
* s3:smbd: keep 'num_connections' and 'connections' directly under ↵Stefan Metzmacher2012-03-065-154/+52
| | | | | | | | | smbd_server_connection The plan is to have connection_struct as some kind of low level abstraction for a smb1/smb2 tree connects, that can be used by SMB_VFS modules. metze
* s3:smbd: keep 'num_users' and 'users' directly under smbd_server_connectionStefan Metzmacher2012-03-064-20/+17
| | | | | | | The plan is to have users_struct as some kind of low level abstraction for a smb1/smb2 session, that can be used by SMB_VFS modules. metze
* s3:msdfs: set the 'cnum' field to invalid for faked connection_structsStefan Metzmacher2012-03-061-0/+1
| | | | metze
* s3: Move a talloc_strdup out of the main code pathVolker Lendecke2012-03-061-15/+31
| | | | | | | This is only used for AS_GUEST requests Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Mar 6 14:29:50 CET 2012 on sn-devel-104
* s3: Fix some format string warningsVolker Lendecke2012-03-061-9/+13
| | | | | | We were printing nmb->header.name_trn_id with %hu, which denotes a short. However, header.name_trn_id is an int for the better or worse.
* s3-rpc_server: Remove remaining code for embedded endpoint mapperAndrew Bartlett2012-03-051-23/+0
| | | | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon Mar 5 23:14:33 CET 2012 on sn-devel-104