summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* debug: log early messages to stdout, and keep it openAndrew Bartlett2011-07-201-2/+8
| | | | | | | | | The --log-stdout option was compromised by the log file descriptors being closed once the file process forked. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systemsJeremy Allison2011-07-192-9/+9
| | | | | | | | | | Remove int toupper_ascii(int c); int tolower_ascii(int c); int isupper_ascii(int c); int islower_ascii(int c); and replace with their _m equivalents, as they are identical.
* s3-smbd: Pass event and messaging context to smbd_parent_housekeeping().Andreas Schneider2011-07-141-3/+5
|
* s3-smbd: Pass ev_ctx to remove_child_pid().Andreas Schneider2011-07-141-3/+5
|
* s3-smbd: Pass msg_ctx to smbd_accept_connection.Andreas Schneider2011-07-141-4/+8
|
* s3-smbd: Pass ev_ctx to smbd_setup_sig_chld_handler().Andreas Schneider2011-07-141-5/+5
|
* s3-smbd: Pass ev_ctx and msg_ctx to smbd_accept_connection().Andreas Schneider2011-07-141-3/+13
|
* s3-smbd: Pass ev_ctx and msg_ctx to open_sockets_smbd().Andreas Schneider2011-07-141-7/+9
|
* s3-smbd: Pass ev_ctx to smbd_parent_loop().Andreas Schneider2011-07-141-3/+4
|
* s3-smbd: Create ev_ctx and msg_ctx and use it.Andreas Schneider2011-07-141-26/+38
|
* s3:smbd: s/SMBkeepalive/NBSSkeepaliveStefan Metzmacher2011-07-122-12/+12
| | | | metze
* s3:smbd: use PROTOCOL_SMB2_02 instead PROTOCOL_SMB2Stefan Metzmacher2011-07-123-3/+3
| | | | metze
* s3:smb2_create: use smbd_calculate_access_mask() instead of ↵Stefan Metzmacher2011-07-111-1/+6
| | | | | | | | | smbd_check_open_rights() metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jul 11 22:45:01 CEST 2011 on sn-devel-104
* s3:smb2_tcon: return the correct maximal_access on the shareStefan Metzmacher2011-07-111-1/+1
| | | | metze
* s3:smbd: return the real share access mask in the SMBtconX responseStefan Metzmacher2011-07-111-3/+1
| | | | metze
* s3:smbd: use smbd_calculate_access_mask() also for fake_filesStefan Metzmacher2011-07-111-0/+13
| | | | metze
* s3:smbd: check the share level access mask in smbd_calculate_access_mask()Stefan Metzmacher2011-07-111-0/+17
| | | | | | | | | I think we should reject invalid access early, before we might create new files. Also smbd_check_open_rights() is only called if the file existed. metze
* s3:smbd: make smbd_calculate_access_mask() non-staticStefan Metzmacher2011-07-112-14/+20
| | | | metze
* s3:smbd/msdfs: let create_conn_struct() check the share security descriptorStefan Metzmacher2011-07-111-0/+30
| | | | metze
* Move smbd_smb2_request_check_tcon() smbd_smb2_request_check_session() next ↵Jeremy Allison2011-07-084-121/+130
| | | | | | | to their only user and make them static. Add comments. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jul 8 21:01:40 CEST 2011 on sn-devel-104
* s3:smb2_server: add some comments about change_to_user() and ↵Stefan Metzmacher2011-07-081-2/+98
| | | | | | | | | change_to_root_user() metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jul 8 13:45:46 CEST 2011 on sn-devel-104
* lib/param: Merge struct loadparm_service into commonAndrew Bartlett2011-07-081-1/+1
| | | | | | | | | | | | | | | | | This is handled by a common header and a .c file that is included into both loadparm.c files. In the process, _lp functions were renamed to lp__ to allow the common function definition declarations to be used by source3 and source4 (which have different macro definitions). The only parameter to change type is 'strict_locking' which was a bool, and is now an int, to accommodate the 'Auto' value from source3. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Jul 8 12:35:56 CEST 2011 on sn-devel-104
* lib/util Move bitmap.c to lib/utilAndrew Bartlett2011-07-084-0/+4
|
* Fix bug #8293 - SMB2 doesn't rotate the log files often enough.Jeremy Allison2011-07-083-3/+21
| | | | | | | | | | Move the num_requests field out of the smb1 struct into the generic struct smbd_server_connection struct. Use it to count SMB2 requests as well as SMB1 and ensure that check_log_size() is called every 50 SMB2 requests. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jul 8 01:14:53 CEST 2011 on sn-devel-104
* s3:smb2_server: call change_to_root_user() or smbd_smb2_request_check_tcon()Stefan Metzmacher2011-07-071-3/+26
| | | | | | | | | | | | | | | | | | | | | | | | | For all requests which don't operate on a tcon, we should call change_to_root_user(), to match the SMB1 behavior. For SMB1 we do the following operations without AS_USER: /* 0x70 */ { "SMBtcon",reply_tcon,0}, /* 0x71 */ { "SMBtdis",reply_tdis,DO_CHDIR}, /* 0x72 */ { "SMBnegprot",reply_negprot,0}, /* 0x73 */ { "SMBsesssetupX",reply_sesssetup_and_X,0}, /* 0x74 */ { "SMBulogoffX",reply_ulogoffX, 0}, /* ulogoff doesn't give a valid TID */ /* 0x75 */ { "SMBtconX",reply_tcon_and_X,0}, ... /* 0x2b */ { "SMBecho",reply_echo,0}, ... /* 0xa4 */ { "SMBntcancel",reply_ntcancel, 0 }, For SMB2tdis we still call smbd_smb2_request_check_tcon() as close_cnum() calls change_to_root_user() when needed. metze Signed-off-by: Jeremy Allison <jra@samba.org>
* s3:smbd fix a compile warning on AIX 5.3Christian Ambach2011-07-051-1/+1
| | | | | | | use the correct alias instead of FD directly Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Tue Jul 5 19:51:42 CEST 2011 on sn-devel-104
* s3: Fix bug 8102Volker Lendecke2011-07-051-0/+8
| | | | | | | | | | We can't allow open with access that has been denied via the share security descriptor Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jul 5 16:21:54 CEST 2011 on sn-devel-104
* s3: Calculate&store the maximum share access maskVolker Lendecke2011-07-051-22/+15
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Return "granted" from share_access_checkVolker Lendecke2011-07-052-10/+14
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:smb2 fix smbd crash on premature end of smb2 conn (Bug 8286)Christian Ambach2011-07-041-3/+3
| | | | | | | | | | | | | when smbd tries to clean up locks after a premature end of a smb2 connection, lock_db has already been freed and so it crashes this patch changes the order in which items are freed so that lock_db is still around when it is needed Jeremy, Metze, please check Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Mon Jul 4 20:00:26 CEST 2011 on sn-devel-104
* s3:smb2_server: there's no reason to check the session id twice on a ↵Stefan Metzmacher2011-07-041-5/+0
| | | | | | | | | smb2_tcon request metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jul 4 17:34:13 CEST 2011 on sn-devel-104
* s3:smb2_create: call 'return' after smbd_server_connection_terminate()Stefan Metzmacher2011-07-041-0/+1
| | | | | | | This is not strictly needed in the fork process model, but we hopefully support other models in future. metze
* s3-lib Move event_add_idle() to source3/lib/events.cAndrew Bartlett2011-07-042-87/+0
| | | | | | This allows libauth not to depend on smbd_base. Andrew Bartlett
* s3-smbd: Remove client_address from smbd_server_connection struct.Andreas Schneider2011-07-041-1/+0
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-smbd: Remove obsolete smbd_set_server_fd().Andreas Schneider2011-07-042-36/+6
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-smbd: Replace client_id in smbd session setup.Andreas Schneider2011-07-042-2/+3
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-smbd: Replace client_id in smbd session.Andreas Schneider2011-07-041-7/+9
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-smbd: Replace client_id in smbd service.Andreas Schneider2011-07-041-6/+21
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-smbd: Replace client_id in smbd reply.Andreas Schneider2011-07-041-1/+10
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-smbd: Exit cleanly if we can't create an address string.Andreas Schneider2011-07-041-1/+3
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-smbd: Replace client_id in smbd connection.Andreas Schneider2011-07-041-1/+9
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-smbd: Replace client_id in smbd process.Andreas Schneider2011-07-042-6/+33
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-auth: Pass the remote_address down to user_info.Andreas Schneider2011-07-042-8/+20
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-auth: Added remote_address to ntlmssp server.Andreas Schneider2011-07-043-17/+51
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-rpc_server: Migrate rpc function to tsocket_address.Andreas Schneider2011-07-043-20/+19
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3:smbd do not panic when CTDB is unhealthy (Bug #8278)Christian Ambach2011-06-301-0/+9
| | | | | | | | when CTDB is unhealthy, log a message and exit cleanly instead of creating a core file Autobuild-User: Christian Ambach <ambi@samba.org> Autobuild-Date: Thu Jun 30 13:18:12 CEST 2011 on sn-devel-104
* Second part of fix for bug #8219 - SMB Panic from Windows 7 Client.Jeremy Allison2011-06-291-1/+1
| | | | | | | | | | | | Pass in the correct vector to the signing algorithm in an async response - we must start with vector[1] which has the SMB2_HDR_BODY length, not vector[0] which is the 4 byte packet length. Also note we're passing in 2 vectors not 3. Metze please review. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jun 29 20:09:21 CEST 2011 on sn-devel-104
* param: Merge param headers into lib/param/loadparm.hAndrew Bartlett2011-06-294-0/+4
| | | | | | | This defines a common table format, so we can in future define a common table. Andrew Bartlett
* Fix bug #8219 - SMB Panic from Windows 7 ClientJeremy Allison2011-06-291-0/+8
| | | | | | | | | Caused by referencing an uninitialized variable in the duplicated struct smbd_smb2_request when sending a signed intermediate reply. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Jun 29 04:37:28 CEST 2011 on sn-devel-104
* s3-smbd Remove set but unused variablesAndrew Bartlett2011-06-281-9/+0
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Jun 28 10:43:26 CEST 2011 on sn-devel-104