summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* Move dptr code over to TALLOC.Jeremy Allison2012-02-251-18/+9
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 25 03:50:24 CET 2012 on sn-devel-104
* Make dptr_path() and dptr_wcard() const.Jeremy Allison2012-02-243-7/+5
|
* Fix const warnings.Jeremy Allison2012-02-241-2/+2
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Feb 24 23:10:56 CET 2012 on sn-devel-104
* s3: Simplify smb_splice_chainVolker Lendecke2012-02-241-16/+13
| | | | | | | | No code change, just remove a {} block left over as the else branch from the previous commit Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Feb 24 18:07:48 CET 2012 on sn-devel-104
* s3: Simplify smb_splice_chainVolker Lendecke2012-02-241-12/+2
| | | | | first_request won't be true anymore, we always splice fully existing records in smbd
* s3: Simplify smb_splice_chainVolker Lendecke2012-02-241-13/+2
| | | | With the last commit, bytes_padding is not set anymore
* s3: Simplify smb_splice_chainVolker Lendecke2012-02-241-7/+1
| | | | | bytes_alignment used to be used in libsmb, which uses different code now
* s3: Simplify smb_splice_chainVolker Lendecke2012-02-241-25/+11
| | | | | | We use it in smbd/process.c only now. This only splices in finished buffers, both callers used the same arguments. Pull that into the routine itself.
* s3: Turn some SMB_ASSERTS into proper returnVolker Lendecke2012-02-241-2/+6
| | | | We deal with the error properly further up
* s3: Fix a DEBUG msgVolker Lendecke2012-02-241-1/+1
|
* s3:smbd/utmp.c - fix the build on FreeBSD 9 without utmp.hMatthias Dieter Wallnöfer2012-02-231-0/+2
| | | | | | | | | https://bugzilla.samba.org/show_bug.cgi?id=8709 Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Thu Feb 23 19:17:25 CET 2012 on sn-devel-104
* s3: smb_request->vwv can be constVolker Lendecke2012-02-231-1/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Feb 23 12:37:23 CET 2012 on sn-devel-104
* s3: Fix smbd -iVolker Lendecke2012-02-211-0/+1
| | | | | | | We end up in a nested event loop without this. Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Feb 21 17:24:28 CET 2012 on sn-devel-104
* s3: Fix typosVolker Lendecke2012-02-211-2/+2
|
* s3: Remove a pointless else branchVolker Lendecke2012-02-191-2/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sun Feb 19 23:14:15 CET 2012 on sn-devel-104
* s3: get_share_mode_lock_fresh->get_share_mode_lockVolker Lendecke2012-02-191-9/+9
| | | | | | | get_share_mode_lock_fresh is just a confusing name Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sun Feb 19 19:16:41 CET 2012 on sn-devel-104
* s3: get_share_mode_lock->get_existing_share_mode_lockVolker Lendecke2012-02-195-9/+10
|
* Fix a bunch of "unused variable" warnings.Jeremy Allison2012-02-1812-37/+0
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 18 06:22:40 CET 2012 on sn-devel-104
* s3-auth: Add extra error messages on authentication or authorization failureAndrew Bartlett2012-02-171-0/+3
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Replace smbd_server_connection_loop_once() with tevent_loop_once() directly.Jeremy Allison2012-02-171-63/+6
| | | | | | | We no longer need to call poll() directly inside smbd ! Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Feb 17 02:49:13 CET 2012 on sn-devel-104
* lib/util: Remove sys_poll as it is no longer neededAndrew Bartlett2012-02-161-1/+1
| | | | | | | | | | | sys_poll() is only needed if the signal pipe is set up and used, but as no signal handler ever writes to the pipe, this can all be removed. signal based events are now handled via tevent. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-smbd Remove unused code now we always have SPNEGO via gensecAndrew Bartlett2012-02-164-49/+7
| | | | | | | | This was previously needed because SPNEGO was only available in the AD DC. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Rename obscure defined constants.Christopher R. Hertel (crh)2012-02-161-2/+2
| | | | | | | | | | | | | | | Replaced the undescriptive SMB_PORT1 and SMB_PORT2 defined constants with the slightly more descriptive names NBT_SMB_PORT and TCP_SMB_PORT. Also replaced several hard-coded references to the well-known port numbers (139 and 445, respectively) as appropriate. Small changes to clarify some comments regarding the two transport types. Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Feb 16 08:29:41 CET 2012 on sn-devel-104
* s3-smbd: Avoid starting log lines with the word 'error'Andrew Bartlett2012-02-161-2/+10
|
* s3: Add SERVERID_UNIQUE_ID_NOT_TO_VERIFY, bug 8760Volker Lendecke2012-02-151-4/+2
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Feb 15 21:10:22 CET 2012 on sn-devel-104
* s3: files_struct->mode is only written, remove itVolker Lendecke2012-02-142-3/+0
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Feb 14 19:14:29 CET 2012 on sn-devel-104
* s3:smbd/oplock_linux: don't overwrite private_dataStefan Metzmacher2012-02-101-2/+0
| | | | | | | | | | | | | We set ctx->private_data = sconn a few lines above and expect 'sconn' in the signal event handler. Thanks to Christian Ambach <ambi@samba.org> for the bug report. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Feb 10 21:48:18 CET 2012 on sn-devel-104
* s3-smb2: Use the correct indicator if a request was deferredVolker Lendecke2012-02-101-1/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Feb 10 16:44:23 CET 2012 on sn-devel-104
* s3-smb2: Make sure we have a subreq setVolker Lendecke2012-02-101-0/+1
|
* s3-printing: Add new printers to registry.Björn Baumbach2012-02-091-11/+33
| | | | | | | | | This fixes bug #8554, #8612 and #8748. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Feb 9 16:39:04 CET 2012 on sn-devel-104
* Ensure when setting a POSIX ACL, that the uid for aJeremy Allison2012-02-031-0/+60
| | | | | | | | | | SMB_ACL_USER_OBJ ACE (the owner ACE entry) has a duplicate permission entry as an SMB_ACL_USER, and a gid for a SMB_ACL_GROUP_OBJ ACE (the primary group ACE entry) also has a duplicate permission entry as an SMB_ACL_GROUP. If not, then if the ownership or group ownership of this file or directory gets changed, the user or group can lose their access.
* Fix mistaken assignment of gid to uid field.Jeremy Allison2012-02-031-1/+1
|
* Replace bool flags inside ensure_canon_entry_valid() with pointers.Jeremy Allison2012-02-031-11/+12
| | | | This will make the second tweak to the ACL mapping on set easier.
* Replace all malloc/free with talloc on tos.Jeremy Allison2012-02-031-41/+41
|
* s3:smbd:smb2: fix an assignment-instead-of-check bug conn_snum_used()Michael Adam2012-02-011-1/+1
| | | | | | | Accidential "=" instead of "==". Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Feb 1 17:10:15 CET 2012 on sn-devel-104
* s3: Delete streams on directoriesVolker Lendecke2012-01-311-0/+11
|
* s3: Simplify an if-statementVolker Lendecke2012-01-311-1/+1
| | | | | is_ntfs_default_stream_smb_fname already contains all checks that the variable "stream_name" gives us here.
* s3:smbd: inline code in reply_sesssetup_and_X_spnego()Stefan Metzmacher2012-01-311-102/+71
| | | | | | | | | This makes the logic much easier to follow. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jan 31 21:52:45 CET 2012 on sn-devel-104
* s3:smbd: the spnego session setup don't need to copy the in blobStefan Metzmacher2012-01-311-10/+5
| | | | metze
* s3:smbd: rework reply_spnego_ntlmssp to reply_spnego_genericStefan Metzmacher2012-01-311-27/+5
| | | | | | This removes the unused spnego_gen_auth_response() wrapping. metze
* s3:smbd: remove unused code from sesssetup.cStefan Metzmacher2012-01-312-549/+0
| | | | metze
* s3:smbd: remove pending_auth_data logicStefan Metzmacher2012-01-312-269/+0
| | | | | | This is handled by the gensec_spnego module. metze
* s3:smbd: always use the gensec code path in sesssetup.cStefan Metzmacher2012-01-311-67/+32
| | | | | | | The other code pathes are unused, because we always have the spnego gensec module. metze
* s3:smbd: rework smbd_smb2_*_ntlmssp_auth* to smbd_smb2_auth_generic*Stefan Metzmacher2012-01-311-22/+28
| | | | metze
* s3:smbd: always use the gensec code path in smb2_sesssetup.cStefan Metzmacher2012-01-311-460/+7
| | | | | | | The other code pathes are unused, because we always have the spnego gensec module. metze
* libcli/smb: Convert struct smb_trans_enc_state to tallocAndrew Bartlett2012-01-311-34/+11
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-smbd: Use gensec_spnego in smb seal serverAndrew Bartlett2012-01-311-304/+29
| | | | | | | | | This is instead of the inline, manual spnego code currently in use. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Unify stream testing in open_directoryVolker Lendecke2012-01-311-9/+5
| | | | | | | | | | The second if-statement could never have kicked in, assuming the SMB_ASSERT above was right. Jeremy, please check! Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jan 31 20:15:36 CET 2012 on sn-devel-104
* s3: Re-indent an && sequence for better understandingVolker Lendecke2012-01-311-2/+2
|
* s3: Fix "smbcontrol smbd close-share"Volker Lendecke2012-01-311-0/+11
|