summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-printing: follow force user/group for driver IODavid Disseldorp2011-03-043-57/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-waf: add wildcard commands from main wscript.Günther Deschner2011-03-041-1/+11
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Mar 4 02:11:11 CET 2011 on sn-devel-104
* s3-nterr: use strcasecmp in nt_status_string_to_code().Günther Deschner2011-03-041-1/+2
| | | | Guenther
* s3-nterr: within nt_errstr() compare codes using NT_STATUS_V().Günther Deschner2011-03-041-1/+2
| | | | | | This is to avoid future very special NT_STATUS_EQUAL semantics within s4. Guenther
* nterr: make sure both nt_err_desc structs are the same.Günther Deschner2011-03-041-0/+3
| | | | Guenther
* nterr: make sure both nt_errs structs are the same.Günther Deschner2011-03-041-4/+16
| | | | Guenther
* s3-nterr: make nt_err_desc static const.Günther Deschner2011-03-041-1/+1
| | | | Guenther
* nterr: remove space indents (use tabs instead), following coding standards.Günther Deschner2011-03-041-12/+12
| | | | Guenther
* nterr: remove trailing whitespace.Günther Deschner2011-03-041-15/+15
| | | | Guenther
* s3-waf: add check for SEEKDIR_RETURNS_VOID.Günther Deschner2011-03-041-0/+5
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Mar 4 01:13:54 CET 2011 on sn-devel-104
* s3-waf: add check for HAVE_FUNCTION_ATTRIBUTE_DESTRUCTOR.Günther Deschner2011-03-041-0/+6
| | | | Guenther
* libreplace: move "struct timespec" checks into libreplace (where timespec is ↵Günther Deschner2011-03-043-33/+0
| | | | | | | | already used). Bjoern, Metze, please check. Guenther
* s3: Use dom_sid_string_buf in sid_to_fstringVolker Lendecke2011-03-031-3/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 3 22:56:57 CET 2011 on sn-devel-104
* s3: Use dom_sid_string in _lsa_lookup_sids_internalVolker Lendecke2011-03-031-4/+1
|
* s3: Remove an obsolete commentVolker Lendecke2011-03-031-3/+1
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-03-031-3/+3
|
* lib/util: LIBCRYPTO is in common already, so add it to samba-util-common.Günther Deschner2011-03-031-1/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Mar 3 18:08:30 CET 2011 on sn-devel-104
* s3-includes: remove global include of system/readline.h.Günther Deschner2011-03-021-1/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 2 23:06:17 CET 2011 on sn-devel-104
* s3-proto: fix some inline comments.Günther Deschner2011-03-021-3/+12
| | | | Guenther
* s3-libds: use already existing ../libds/common/flag_mapping.h header.Günther Deschner2011-03-025-9/+4
| | | | Guenther
* s3: Pass the aio_force operation through vfs_gpfsVolker Lendecke2011-03-021-0/+7
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 2 19:24:27 CET 2011 on sn-devel-104
* s3: Ask GPFS for the IS_OFFLINE operationVolker Lendecke2011-03-021-0/+31
|
* s3: Announce HSM in the gpfs moduleVolker Lendecke2011-03-021-0/+23
|
* s3: Pass smb_filename through the set_offline vfs opVolker Lendecke2011-03-028-12/+36
|
* s3: Pass smb_filename through the is_offline vfs opVolker Lendecke2011-03-028-14/+53
|
* s3: Fix operation names in vfs_full_audit.cVolker Lendecke2011-03-021-2/+2
|
* s3: Print all flags in "smbclient allinfo"Volker Lendecke2011-03-021-1/+25
|
* s3:idmap_cache: remove an leftover wip commentMichael Adam2011-03-021-1/+1
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Mar 2 14:55:20 CET 2011 on sn-devel-104
* s3: adjust loglevel for idmap_cacheGregor Beck2011-03-021-10/+10
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3-sessionid: avoid global include of sessionid.hGünther Deschner2011-03-029-2/+8
| | | | | | | 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-0212-1/+11
| | | | Guenther
* s3: GPFS can't deal with mangled namesVolker Lendecke2011-03-021-0/+7
| | | | In getrealfilename, avoid calling the GPFS function
* s3-printing: vfs_connect prior to driver/dfs IODavid Disseldorp2011-03-023-10/+29
| | | | | | | | | | | | | | | | | | | | | | 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-printing: clean up get_correct_cversion error pathsDavid Disseldorp2011-03-021-18/+16
| | | | Remove an unneeded variable and simplify error paths.
* s3-printing: fix move_driver_to_download_area() error pathsDavid Disseldorp2011-03-023-72/+54
| | | | | | | | | | WERR_ACCESS_DENIED errors are mapped to WERR_UNKNOWN_PRINTER_DRIVER, resulting in incorrect error messages on Windows clients. move_driver_to_download_area() returns the same error status values to the caller via the *perr argument as well as the return value. The create_directory() call is not checked for error.
* 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-0111-36/+29
|
* s3-rpc_server Handle session key as a constant bufferAndrew Bartlett2011-03-011-28/+4
| | | | | | This way, we don't have to check for memory allocation failures. Andrew Bartlett
* lib/util: new merged debug systemAndrew Bartlett2011-03-019-1410/+5
| | | | | | | | | | | | This is the s3 debug system, with a number of changes to tidy it up for common use. The debug class system is simplified by the removal of the ISSET table, the system no longer attempts to cope with assignment of DEBUGLEVEL, and the full class table is always available (rather than just DEBUGLEVEL_CLASS[DBCG_ALL]) from startup. It is also no longer confusingly described as a hack, but as the initial table. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Mar 1 04:32:12 CET 2011 on sn-devel-104
* s3-debug Always use C99 true/false rather than True and FalseAndrew Bartlett2011-03-011-29/+29
| | | | | | | This will help with the merge into the common code. Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Mar 1 02:58:55 CET 2011 on sn-devel-104
* s3-build __FUNCTION__ is always available, always use itAndrew Bartlett2011-03-013-5/+5
| | | | This avoids duplication between FUNCTION_NAME and __FUNCTION__
* lib/util/time: Merge time functions from source3/lib/time.cAndrew Bartlett2011-03-011-63/+0
|
* Fix compiler warning on casting -1 to uint32.Jeremy Allison2011-02-281-3/+3
|
* Fix some typesJelmer Vernooij2011-02-288-12/+12
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Mon Feb 28 23:30:06 CET 2011 on sn-devel-104
* Fix one more warning introduced by changing the size of ↵Jeremy Allison2011-02-281-1/+1
| | | | | | | UNIX_USER_TOKEN->ngroups from size_t to uint32_t. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Feb 28 22:43:50 CET 2011 on sn-devel-104
* 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-torture: fix the build of rpc_open_tcp.Günther Deschner2011-02-281-1/+1
| | | | Guenther
* 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-rpc_client: Move client pipe functions to own header.Andreas Schneider2011-02-2840-94/+186
|