summaryrefslogtreecommitdiffstats
path: root/source3/include/proto.h
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:ntlmssp: pass names and use_ntlmv2 to ntlmssp_client_start() and store themStefan Metzmacher2010-03-241-1/+5
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: pass names to ntlmssp_server_start() and store them in ntlmssp_stateStefan Metzmacher2010-03-241-1/+7
| | | | | | | | Inspired by the NTLMSSP merge work by Andrew Bartlett. metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:ntlmssp: make use of C99 types in ntlmssp_sign.cStefan Metzmacher2010-03-241-11/+11
| | | | | | metze Signed-off-by: Günther Deschner <gd@samba.org>
* s3:librpc/rpc: move prototypes to dcerpc.hStefan Metzmacher2010-03-231-18/+0
| | | | metze
* share_info.tdb could use non-canonicalized sharenames.Jeremy Allison2010-03-221-0/+1
| | | | | | | | Fix this by moving canonicalization into lib/sharesec.c. Update the db version to 3. Ensures we always find share names with security descriptors attached. Jeremy.
* s3: Add the "ctdb locktime warn threshold" parameterVolker Lendecke2010-03-221-0/+1
| | | | | This is mainly a debugging aid for post-mortem analysis in case a cluster file system is slow.
* s3:param: add "async smb echo handler" optionStefan Metzmacher2010-03-221-0/+1
| | | | | | | | This will enable an extra forked process that will reply to SMBecho requests, while the main process is blocked by another request. metze
* s3:smbd: add an option to skip signings checks srv_check_sign_mac for ↵Stefan Metzmacher2010-03-221-1/+1
| | | | | | trusted channels metze
* s3: Add "log writeable files on exit" parameterVolker Lendecke2010-03-221-0/+1
| | | | | | | This boolean option controls whether at exit time the server dumps a list of files with debug level 0 that were still open for write. This is an administrative aid to find the files that were potentially corrupt if the network connection died.
* s3: file_walk_table -> files_forallVolker Lendecke2010-03-221-1/+1
| | | | | This is more in line with the rest of the Samba code, like connections_forall etc.
* s3:librpc: remove unused stuffStefan Metzmacher2010-03-191-11/+0
| | | | metze
* s3: Make login_cache_write take a pointerVolker Lendecke2010-03-161-1/+2
|
* s3: Make login_cache_read take a pointer, avoid a mallocVolker Lendecke2010-03-161-1/+1
|
* s3: Remove a typedefVolker Lendecke2010-03-161-2/+2
|
* Pass "connection_struct *conn" into functions that currently use ↵Jeremy Allison2010-03-151-1/+1
| | | | | | | | "current_user.XXX" Will allow me to replace them with accessor functions. Jeremy.
* Add accessor functions for current uid, gid, unix token, NT token and vuid.Jeremy Allison2010-03-151-0/+5
| | | | Jeremy.
* Rever e80ceb1d7355c8c46a2ed90d5721cf367640f4e8 "Remove more uses of "extern ↵Jeremy Allison2010-03-151-6/+1
| | | | | | | | struct current_user current_user;"." As requested by Volker, split this into smaller commits. Jeremy.
* Missed a couple more uses of conn->server_info->ptok that need to be ↵Jeremy Allison2010-03-121-4/+5
| | | | | | | | | get_current_nttok(conn) Centralize the root check into smb1_file_se_access_check() so this is used by modules/vfs_acl_common.c also. Jeremy.
* Remove more uses of "extern struct current_user current_user;".Jeremy Allison2010-03-121-1/+6
| | | | | | | | | | | | | Use accessor functions to get to this value. Tidies up much of the user context code. Volker, please look at the changes in smbd/uid.c to familiarize yourself with these changes as I think they make the logic in there cleaner. Cause smbd/posix_acls.c code to look at current user context, not stored context on the conn struct - allows correct use of these function calls under a become_root()/unbecome_root() pair. Jeremy.
* Move prototype to header of common code for set_sockaddr_portAndrew Bartlett2010-03-111-1/+0
|
* s3: Fix a long-standing problem with recycled PIDsVolker Lendecke2010-03-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a samba server process dies hard, it has no chance to clean up its entries in locking.tdb, brlock.tdb, connections.tdb and sessionid.tdb. For locking.tdb and brlock.tdb Samba is robust by checking every time we read an entry from the database if the corresponding process still exists. If it does not exist anymore, the entry is deleted. This is not 100% failsafe though: On systems with a limited PID space there is a non-zero chance that between the smbd's death and the fresh access, the PID is recycled by another long-running process. This renders all files that had been locked by the killed smbd potentially unusable until the new process also dies. This patch is supposed to fix the problem the following way: Every process ID in every database is augmented by a random 64-bit number that is stored in a serverid.tdb. Whenever we need to check if a process still exists we know its PID and the 64-bit number. We look up the PID in serverid.tdb and compare the 64-bit number. If it's the same, the process still is a valid smbd holding the lock. If it is different, a new smbd has taken over. I believe this is safe against an smbd that has died hard and the PID has been taken over by a non-samba process. This process would not have registered itself with a fresh 64-bit number in serverid.tdb, so the old one still exists in serverid.tdb. We protect against this case by the parent smbd taking care of deregistering PIDs from serverid.tdb and the fact that serverid.tdb is CLEAR_IF_FIRST. CLEAR_IF_FIRST does not work in a cluster, so the automatic cleanup does not work when all smbds are restarted. For this, "net serverid wipe" has to be run before smbd starts up. As a convenience, "net serverid wipedbs" also cleans up sessionid.tdb and connections.tdb. While there, this also cleans up overloading connections.tdb with all the process entries just for messaging_send_all(). Volker
* Fix for bug #7189 - Open txt files with notepad on samba shares creates problem.Jeremy Allison2010-03-051-1/+3
| | | | | | | | | | Ensure we don't use any of the create_options for Samba private use. Add a new parameter to the VFS_CREATE call (private_flags) which is only used internally. Renumber NTCREATEX_OPTIONS_PRIVATE_DENY_DOS and NTCREATEX_OPTIONS_PRIVATE_DENY_FCB to match the S4 code). Rev. the VFS interface to version 28. Jeremy.
* s3-rpcclient: fix rpcclient after spoolss_GetPrinterData{Ex} IDL change.Günther Deschner2010-03-051-1/+2
| | | | Guenther
* s3: Abstract access to sessionid.tdb, similar to conn_tdb.cVolker Lendecke2010-03-011-0/+13
|
* s3: Add connections_forall_read()Volker Lendecke2010-03-011-0/+4
| | | | | | In a cluster, this makes a large difference: For r/w traverse, we have to do a fetch_locked on every record which for most users of connections_forall is just overkill.
* s3: Remove unused count_all_current_connections()Volker Lendecke2010-02-281-1/+0
|
* s3: Make connections_fetch_record() staticVolker Lendecke2010-02-241-2/+0
|
* s3:schannel streamline interfaceSimo Sorce2010-02-231-9/+0
| | | | | Make calling schannel much easier by removing the need to explicitly open the database. Let the abstraction do it instead.
* s3 move the sitename cache in its own fileSimo Sorce2010-02-231-3/+0
|
* s3: Consolidate server_id_self into the equivalent procid_self()Volker Lendecke2010-02-231-1/+0
|
* s3: Convert cli_qpathinfo_basic to use cli_trans()Volker Lendecke2010-02-201-2/+2
|
* s3: Add cli_smb()Volker Lendecke2010-02-201-0/+7
| | | | | | | | | This is a sync wrapper around cli_smb_send/cli_smb_recv. This is a hack to speed up converting libsmb/ away from cli_send_smb/cli_receive_smb. Some routines in libsmb/ are only called in one place in smbtorture for example, where making it async right now is not worth it. With cli_smb_send/cli_smb_recv in place, pushing the asynchronosity out one level is "just" boilerplate code that is easy to do should it become necessary.
* Remove lp_safe_widelinks() -> convert to just lp_widelinks. Suggestion from ↵Jeremy Allison2010-02-111-1/+1
| | | | | | | | Volker. Create widelinks_warning(int snum) to cover the message needed in make_connection. Jeremy.
* Introduce lp_safe_widelinks()Simo Sorce2010-02-111-0/+1
| | | | | This way we avoid any chance that a configuration reload may turn back on wide links when unix extensions are enabled.
* s3:nmbd: change "nmbd:bind explicit broadcast" into "nmbd bind explicit ↵Stefan Metzmacher2010-02-081-0/+1
| | | | | | broadcast" metze
* s3: Make cli_get_fs_volume_info() use cli_trans()Volker Lendecke2010-02-071-1/+2
|
* s3: Remove some unused codeVolker Lendecke2010-02-071-1/+0
|
* s3: Make guest_user_info() staticVolker Lendecke2010-02-051-1/+0
|
* Change uint_t to unsigned int in source3Matt Kraai2010-02-021-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Fix bug #7079 - cliconnect gets realm wrong with trusted domains.Jeremy Allison2010-01-301-0/+2
| | | | | | | | | | | Passing NULL as dest_realm for cli_session_setup_spnego() was always using our own realm (as for a NetBIOS name). Change this to look for the mapped realm using krb5_get_host_realm() if the destination machine name is a DNS name (contains a '.'). Could get fancier with DNS name detection (length, etc.) but this will do for now. Jeremy.
* s3: Add -C (--use-ccache) to popt_common_credentialsVolker Lendecke2010-01-241-0/+3
|
* s3: Remove string_sid_tallocVolker Lendecke2010-01-231-1/+0
| | | | All but one call were pointless, so I think this API should go
* s3: Make "init_smb_request" static to process.cVolker Lendecke2010-01-211-4/+0
|
* s3: Move "yesno" to the only place where it is used: client.cVolker Lendecke2010-01-211-1/+0
|
* s3: Remove unused samr_make_sam_obj_sdVolker Lendecke2010-01-101-1/+0
|
* s3: Remove the typedef for "auth_serversupplied_info"Volker Lendecke2010-01-101-7/+9
|
* s3: Remove the typedef for "auth_usersupplied_info"Volker Lendecke2010-01-101-9/+9
|
* s3: Factor password_in_history() out of check_passwd_history()Volker Lendecke2010-01-071-0/+3
|
* s3:lib/time: remoce null_mtime() - use null_time()Björn Jacke2010-01-071-1/+0
|
* s3:lib/time: remove unused nt_time_equalsBjörn Jacke2010-01-071-1/+0
| | | | we have nt_time_equal doing the same in lib/util/