summaryrefslogtreecommitdiffstats
path: root/source3/smbd
Commit message (Collapse)AuthorAgeFilesLines
...
* s3: Remove talloc_autofree_context() from change_to_guest()Volker Lendecke2010-09-261-1/+1
| | | | pass is freed at the exit of this routine
* s3: Remove talloc_autofree_context() from serverid_parent_init()Volker Lendecke2010-09-261-1/+1
|
* s3: Remove talloc_autofree_context() from messaging_tdb_parent_init()Volker Lendecke2010-09-261-1/+1
|
* s3: Avoid an explicit ZERO_STRUCTVolker Lendecke2010-09-261-3/+1
|
* s3: Lift talloc_autofree_context() from make_auth_context_fixed()Volker Lendecke2010-09-261-2/+2
|
* s3: Lift talloc_autofree_context() from make_auth_context_subsystem()Volker Lendecke2010-09-262-2/+2
|
* Fix bug 7694 - Crash bug with invalid SPNEGO token.Jeremy Allison2010-09-231-1/+2
| | | | | | | | | | | Found by the CodeNomicon test suites at the SNIA plugfest. http://www.codenomicon.com/ If an invalid SPNEGO packet contains no OIDs we crash in the SMB1/SMB2 server as we indirect the first returned value OIDs[0], which is returned as NULL. Jeremy.
* Thank goodness for code reviews. Volker caught - this should be ↵Jeremy Allison2010-09-221-1/+1
| | | | | | | | lp_posix_pathnames() not lp_unix_extensions(). Jeremy.
* Fix bug #7693 - smbd changing mode of files on renameJeremy Allison2010-09-222-8/+10
| | | | | | | When using "map archive", don't change the archive bit on renames or writes with UNIX extensions turned on. Jeremy.
* s3:registry: move prototype from reg_init_full.c to its own header.Michael Adam2010-09-211-0/+1
|
* s3-util_sid: use shared dom_sid_compare_auth and dom_sid_equal_X functions.Günther Deschner2010-09-201-17/+18
| | | | Guenther
* s3-build: only include ctdbd_conn.h where needed.Günther Deschner2010-09-202-0/+2
| | | | Guenther
* s3-build: only include async headers where needed.Günther Deschner2010-09-201-0/+1
| | | | Guenther
* libcli/auth/ntlmssp Be clear about talloc parents for session keysAndrew Bartlett2010-09-161-0/+1
| | | | | | | | | | The previous API was not clear as to who owned the returned session key. This fixes a valgrind-found use-after-free in the NTLMSSP key derivation code, and avoids making allocations - we steal and zero instead. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Fix all sid_parse returns to be checked. Tidy up some checks and errorJeremy Allison2010-09-151-5/+12
| | | | | | messages. Jeremy.
* s3-smbd: prevent call_nt_transact_ioctl() crash in FSCTL_FIND_FILES_BY_SID case.Günther Deschner2010-09-161-1/+4
| | | | | | Jeremy, please check. Guenther
* Add check for invalid data size.Jeremy Allison2010-09-151-1/+8
| | | | Jeremy.
* s3-rpc_server: Moved ncacn_np declarations in common header file.Simo Sorce2010-09-152-0/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-rpc_server: Convert rpc_connect_spoolss_pipe into a generic interface.Simo Sorce2010-09-152-10/+60
| | | | | This way we have one common way to open internal pipes whether they are shortcircuited or piped to an external process.
* Fix bug 7409 - Thousands of reduce_name: couldn't get realpath.Jeremy Allison2010-09-131-1/+1
| | | | | | | Don't log this at level 1 - every EACCES will generate one. Thanks to muehlfeld@medizinische-genetik.de for pointing this out. Jeremy.
* s3-privs Convert from user_has_privileges() -> security_token_has_privilege()Andrew Bartlett2010-09-111-4/+2
| | | | | | | | | This new call is available in the merged privileges code, and takes an enum as the parameter, rather than a bitmask. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3:auth Remove NT_USER_TOKENAndrew Bartlett2010-09-114-4/+4
| | | | | | | | | The all UPPER case typedef is no longer the preferred Samba style and this makes it easier to see that this is the IDL-derivied structure Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3-auth Change struct nt_user_token -> struct security_tokenAndrew Bartlett2010-09-111-4/+4
| | | | | | | | This common structure is defined in security.idl Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* Add check missing from previous patch after talloc_strdup().Jeremy Allison2010-09-101-0/+3
| | | | Jeremy.
* Factor out the recent changes into a function - check_parent_exists().Jeremy Allison2010-09-101-77/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix this to ensure that if "start" is manipulated, then "dirpath" is changed also. Ensures that when the path: /a/long/file/name/path.txt is processed, we first stat: /a/long/file/name/path.txt and if this fails, we try to stat: /a/long/file/name if this path exists (the normal case when creating a new entry in a directory) then we no longer do the individual path name walk, but only do case insensitive lookup on the last component. If the stat fails we do the full pathname walk as normal in 3.5.x and below. Metze, examine this change for your back-port. Jeremy.
* s3-spoolss: Don't leak memory on the session counter list.Andreas Schneider2010-09-101-1/+8
| | | | Thanks Günther, please check.
* More paranoia to ensure SD's can't be set on read-only shares.Jeremy Allison2010-09-091-0/+4
| | | | Jeremy.
* s3-msdfs: Make auth_serversupplied_info const.Andreas Schneider2010-09-091-1/+1
|
* Don't rely on the underlying ACL modules to enforce share levelJeremy Allison2010-09-082-0/+10
| | | | | | security when setting ACLs, check at the call level as well. Jeremy.
* Optimization suggested by Metze. Without this patch,Jeremy Allison2010-09-081-1/+97
| | | | | | | | | | | | | | | | | | | | | | FindFirst with 'path\to\some\dir\with\files\*' triggers the following stat calls path\to\some\dir\with\files\* => ENOENT path\ path\to\ path\to\some\ path\to\some\dir\ path\to\some\dir\with\ path\to\some\dir\with\files\ path\to\some\dir\with\files\* => ENOENT With this patch we get : path\to\some\dir\with\files\* => ENOENT path\to\some\dir\with\files = OK Jeremy.
* s3: use monotonic clock for aio timeoutBjörn Jacke2010-09-071-2/+2
|
* s3: On Solaris, iov_len is an intVolker Lendecke2010-09-051-1/+3
| | | | We can't use &iov.iov_len passing it to a size_t *
* s3: messaging_ctdbd_connection() was only called with procid_self()Volker Lendecke2010-08-312-3/+2
| | | | Eventually we'll get this right...
* s3: use fine grained time in netprot responseBjörn Jacke2010-08-311-3/+4
|
* s3-auth Rename NT_USER_TOKEN user_sids -> sidsAndrew Bartlett2010-08-313-6/+6
| | | | This is closer to the struct security_token from security.idl
* s3: Fix a segfault in the printer code using create_conn_structVolker Lendecke2010-08-301-1/+7
|
* s3: Fix some uninitialized variable warningsVolker Lendecke2010-08-302-6/+6
|
* s3-smbd: use make_server_info_krb5() in smb2 too.Simo Sorce2010-08-301-75/+8
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-smbd: use make_server_info_krb5()Simo Sorce2010-08-301-79/+11
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-smbd: User helper function to resolve kerberos user for smb2Simo Sorce2010-08-301-125/+30
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3-smbd: Use helper function to resolve kerberos userSimo Sorce2010-08-301-123/+27
| | | | Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Fix an uninitialized variableVolker Lendecke2010-08-291-1/+1
|
* s3: Fix the build without clusterVolker Lendecke2010-08-291-0/+4
|
* s3: Remove smbd_server_fd()Volker Lendecke2010-08-292-8/+1
| | | | | | | | | This breaks the perfcol_onefs() build. Tim, Steve, this use of smbd_server_fd is replacable by calls into substitute.c. I don't have a onefs environment around to build a fix, so I've decided to insert an #error, making it not compile. The fix should be pretty obvious, you can get the socket data via "%I" and "%i" substitutions.
* s3: Remove two uses of smbd_server_fd()Volker Lendecke2010-08-292-2/+2
| | | | | Actually, this is a bit cheating. But those two files depend on smbd_server_conn anyway, it does not make things worse.
* s3: Remove smbd_server_fd() from smbd_register_ipsVolker Lendecke2010-08-291-3/+4
|
* s3: Lift smbd_server_fd() from msg_release_ip()Volker Lendecke2010-08-291-4/+4
|
* s3: Lift smbd_server_fd() from release_ip()Volker Lendecke2010-08-291-11/+27
|
* s3: Remove a use of smbd_server_fd() in smbd main()Volker Lendecke2010-08-291-2/+1
| | | | | The effect this might have is that we set the socket options a bit later in inetd mode.
* s3: Pass sconn to check_reloadVolker Lendecke2010-08-291-4/+4
| | | | This removes a use of smbd_server_fd()