summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
* s3-libsmb: put namequery headers to nmblib.hGünther Deschner2011-03-301-0/+1
| | | | | | | We might find a better name for it and merge other namequery related things as well here... Guenther
* s3-locking: move locking prototypes out of proto.h.Günther Deschner2011-03-301-0/+1
| | | | | | Will later become part of locking.h Guenther
* s3: include smbd/smbd.h where needed.Günther Deschner2011-03-3081-0/+81
| | | | Guenther
* s3-smbd: add smbd.h and move smbd prototypes to smbd/proto.h.Günther Deschner2011-03-302-0/+1157
| | | | Guenther
* s3: move filename_util.c out of source3/smbd to source3/lib.Günther Deschner2011-03-301-206/+0
| | | | Guenther
* s3-passdb: use passdb headers where needed.Günther Deschner2011-03-3010-0/+10
| | | | Guenther
* s3-build: only include transfer_file.h where needed.Günther Deschner2011-03-302-0/+2
| | | | Guenther
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-3020-0/+20
| | | | Guenther
* s3-includes: only include system/passwd.h when needed.Günther Deschner2011-03-303-0/+3
| | | | Guenther
* s3-trans2: only include trans2.h where needed.Günther Deschner2011-03-305-0/+5
| | | | Guenther
* lib/util/util_pw: share sys_get{pw,gr} group of calls.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3-spoolssd: Start the spoolss service correctly.Andreas Schneider2011-03-291-1/+1
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-spoolssd: Pass down event and messanging context.Andreas Schneider2011-03-291-2/+4
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3:spoolssd Start spoolss from smbdSimo Sorce2011-03-291-0/+15
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Fix Coverity ID 2329: RESOURCE_LEAKVolker Lendecke2011-03-271-0/+1
|
* s3: Fix Coverity ID 2330: RESOURCE_LEAKVolker Lendecke2011-03-271-0/+1
|
* Revert "Fix bug 8021 - Incorrect string termination in volume/volume_name ↵Jeremy Allison2011-03-261-1/+1
| | | | | | | | | | | | | | for TRANS2-QUERY_FS_INFO/Info Volume." This reverts commit 042aafb87df6c05877b8fc7ef0d44877689d860a. I need to test against OS/2 to see if this is something Win28K breaks for older clients before allowing this. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Mar 26 01:19:55 CET 2011 on sn-devel-104
* Fix bug 8021 - Incorrect string termination in volume/volume_name for ↵Volodymyr Khomenko2011-03-241-1/+1
| | | | | | | TRANS2-QUERY_FS_INFO/Info Volume. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 24 23:07:09 CET 2011 on sn-devel-104
* charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2011-03-246-6/+6
| | | | | | | | | convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
* s3-globals: silence build warning in smbd_messaging_context().Günther Deschner2011-03-231-0/+1
| | | | Guenther
* s3-safe_string: Add checked_strlcpy()Andrew Bartlett2011-03-231-1/+1
| | | | | | | | | | This is strlcpy, just with an extra check of the parameters with sizeof(), use only where that works. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Mar 23 03:39:35 CET 2011 on sn-devel-104
* s3-lib Remove the clobber_region() code.Andrew Bartlett2011-03-231-3/+2
| | | | | | | | | | | | | | | | | | This code wrote to the full buffer in fstrcpy(), pstrcpy() and other fixed-length string manipulation functions. The hope of this code was to find out at run time if we were mixing up pstring and fstring etc, and to record where this came from. It has a runtime performance impact (particularly if compiled with --enable-developer). It is being removed because of the complexity it adds, and the distinct lack of bugs that this complexity has been credited in finding. The macro-based compile-time checking of string sizes remains. Andrew Bartlett
* s3-config: say which config file we failed to openAndrew Tridgell2011-03-231-1/+1
| | | | saves having to strace it to work that out
* fault: get fault.c ready for use by s4Andrew Tridgell2011-03-231-1/+1
| | | | | this moves the s3 specific dumpcore code into source3/lib/dumpcore.c, and uses a function pointer to setup which smb_panic call to use
* s3-fault: removed the cont_fn from fault_setup()Andrew Tridgell2011-03-222-6/+1
| | | | | | | | | | cont_fn() was supposed to be a way to continue after a seg fault. It could never be called however, as smb_panic() from fault_report() could never return, as dump_core() never returns at the end of smb_panic() Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Mar 22 05:07:58 CET 2011 on sn-devel-104
* s3:smbd: access checks should not depend on share mode flagsStefan Metzmacher2011-03-211-1/+0
| | | | metze
* s3:smbd: remove uses of "./" in unlink_internals()Stefan Metzmacher2011-03-191-4/+0
| | | | | | | Commit 78b931ce6c840ade646c1c6030fa2d6acb77208b tried to do that, but didn't have any effect. metze
* SMB2 renames return SHARING_VIOLATION if there is any existing oplock on a file.Jeremy Allison2011-03-181-0/+6
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Mar 18 23:39:49 CET 2011 on sn-devel-104
* The searches struct is still being used and idled in SMB2 - move it to the ↵Jeremy Allison2011-03-182-31/+33
| | | | | | | | | | | global section until we decide if we want to idle SMB2 directory handles. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Mar 18 01:13:53 CET 2011 on sn-devel-104
* Fix crash bug on smbd shutdown when using FOPENDIR() found by Volker.Jeremy Allison2011-03-171-1/+13
| | | | | | | | The key was allowing the dptr_idle code to be triggered. We were closing the dirp->dir handle without updating the underlying fd in the open fsp. Jeremy.
* s3: Expose num_opens via api_RNetSessionEnumVolker Lendecke2011-03-171-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 17 22:05:10 CET 2011 on sn-devel-104
* s3-build: only include asn1 headers where actually needed.Günther Deschner2011-03-163-0/+3
| | | | Guenther
* s3: Fix Coverity ID 2140, DEADCODEVolker Lendecke2011-03-161-1/+1
| | | | | | | This routine was never executed after f0dcc90f because "netname" was always NULL. Jeremy, please check!
* s3-msdfs: avoid global inclusion of msdfs.h.Günther Deschner2011-03-161-0/+1
| | | | Guenther
* s3-libsmb: move smb encryption structs into own header.Günther Deschner2011-03-161-0/+1
| | | | Guenther
* s3-smbd: Increase debug level von context messages.Andreas Schneider2011-03-092-7/+7
|
* s3-rpc_server: Start the Endpoint Mapper Dameon if enabled.Andreas Schneider2011-03-081-0/+15
| | | | | | Endpoint Mapper is still disabled by default! Signed-off-by: Günther Deschner <gd@samba.org>
* s3-printing: follow force user/group for driver IODavid Disseldorp2011-03-041-56/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configuring force user/group settings for the print$ share currently has unexpected results, this is explained by how the driver upload/add process takes place. Consider the following example: [print$] path = /print-drv write list = $DRIVER_UPLOAD_USER force group = ntadmin - the client connects to the [print$] share and uploads all driver files to the /print-drv/W32X86 directory. - This is permitted, as /print-drv/W32X86 is owned by group ntadmin, and the "force group = ntadmin" takes effect for the [print$] session. - Once all files are uploaded, the client connects to the [ipc$] share and issues an AddPrinterDriverEx spoolss request. - In handling this request move_driver_to_download_area() is called, which attempts to create the directory /print-drv/W32X86/3 - The create directory fails, as it is done as the user connected to the [ipc$] share which does not have permission to write to the driver directory. The [print$] "force group = ntadmin" has no effect. This is a regression from previous behaviour prior to the commit: 783ab04 Convert move_driver_to_download_area to use create_conn_struct. https://bugzilla.samba.org/show_bug.cgi?id=7921 Signed-off-by: Andreas Schneider <asn@samba.org>
* s3: Pass smb_filename through the set_offline vfs opVolker Lendecke2011-03-022-3/+3
|
* s3: Pass smb_filename through the is_offline vfs opVolker Lendecke2011-03-022-3/+4
|
* s3-sessionid: avoid global include of sessionid.hGünther Deschner2011-03-021-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 2 12:58:12 CET 2011 on sn-devel-104
* s3-lanman: talk to srvsvc dcerpc server in api_RNetSessionEnum().Günther Deschner2011-03-021-10/+63
| | | | Guenther
* s3-server_id: only include server_id where needed.Günther Deschner2011-03-023-0/+3
| | | | Guenther
* s3-printing: vfs_connect prior to driver/dfs IODavid Disseldorp2011-03-021-10/+24
| | | | | | | | | | | | | | | | | | | | | | samba3.posix_s3.rpc.spoolss.driver fails with the xattr_tdb vfs module loaded as a part of make test. The (now checked) create_directory() call in move_driver_to_download_area() fails, uncovering another bug in the printer driver upload code path. move_driver_to_download_area() creates a new conn_struct for manipulating files in [print$]. The VFS layer is plumbed through with the call to create_conn_struct(), however SMB_VFS_CONNECT() is never called. Many vfs modules expect state stored at connect time with SMB_VFS_HANDLE_SET_DATA() to be available on any IO operation and fail if this is not the case. This fix adds a call to SMB_VFS_CONNECT() in create_conn_struct() prior to IO. https://bugzilla.samba.org/show_bug.cgi?id=7976 Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Mar 2 01:16:30 CET 2011 on sn-devel-104
* s3: remove superfluous debug messages from msg_idmapGregor Beck2011-03-021-4/+0
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Mar 2 00:30:41 CET 2011 on sn-devel-104
* s3-auth struct security_unix_token replaces UNIX_USER_TOKENAndrew Bartlett2011-03-016-8/+8
|
* Fix warning introduced by changing the size of UNIX_USER_TOKEN->ngroups from ↵Jeremy Allison2011-02-281-1/+1
| | | | size_t to uint32_t.
* s3-smbd: Pass tevent context to messaging functions.Andreas Schneider2011-02-281-4/+11
| | | | | Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Mon Feb 28 19:00:08 CET 2011 on sn-devel-104
* s3: Eliminate sys_select from fd_is_readableVolker Lendecke2011-02-281-10/+4
|
* s3: Use poll in smbdVolker Lendecke2011-02-282-20/+23
|