1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
https://gitlab.com/samba-team/samba is the Official GitLab mirror of https://git.samba.org/samba.git -- Merge requests should be made on GitLab (not on GitHub)
Go to file
Jeremy Allison 795ec751ac s3: libsmbclient: Fix hard-coded connection error return of ETIMEDOUT.
We shouldn't hard-code the connection error as ETIMEDOUT when
we have a perfectly good NT_STATUS to map from.

Found by the ChromeOS guys trying to connect an SMB2-only client
to an SMB1-only supporting server.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13419

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <Volker.Lendecke@SerNet.DE>

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu May  3 02:42:20 CEST 2018 on sn-devel-144
2018-05-03 02:42:20 +02:00
auth dbwrap: Remove calls to loadparm 2018-04-24 01:53:19 +02:00
buildtools python: bulk replace dict.iteritems to items for py3 2018-04-13 07:27:12 +02:00
coverity coverity: Add modeling file for Coverity scan 2017-02-23 07:11:18 +01:00
ctdb ctdb-scripts: Remove function rewrite_ctdb_options() 2018-05-01 16:20:37 +02:00
dfs_server Avoid including libds/common/roles.h in public loadparm.h header. 2016-01-13 04:43:23 +01:00
docs-xml docs-xml: rewrite the vfs_aio_pthread manpage to reflect the >= 4.0.0 behavior 2018-04-23 10:30:19 +02:00
dynconfig dynconfig: Fix location of the default 'binddns dir' 2017-09-16 00:57:24 +02:00
examples s3: VFS: Remove fsync_fn() from the VFS and all modules. VFS ABI change. 2018-05-02 01:06:27 +02:00
file_server Remove dead code 2018-03-19 20:29:28 +01:00
include
lib lib/tevent: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
libcli libcli/nbt: Additionally accept unicode as string param in Py2 2018-04-30 15:43:19 +02:00
libds/common libds: rename UF_MACHINE_ACCOUNT_MASK to UF_TRUST_ACCOUNT_MASK 2018-03-13 18:59:17 +01:00
libgpo wscript_build: make sure we link extra-python versions of libraries 2018-04-13 07:27:11 +02:00
librpc ndr_string: Do overflow checks in ndr_push/pull_charset 2018-03-28 16:08:16 +02:00
nsswitch nsswitch: Only connect to the priv socket if required 2018-04-24 14:32:10 +02:00
packaging packaging: fix default systemd-dir path. 2018-01-16 21:02:28 +01:00
pidl s4: COM: Remove talloc_autofree_context() from (unused) COM code. 2017-07-26 21:35:21 +02:00
python python/samba: Py2/Py3 compat change '/' to '//' to ensure int result 2018-04-30 18:25:25 +02:00
release-scripts release-scripts/build-manpages-nogit: run make realdistclean at the end 2015-08-17 17:43:36 +02:00
script script/git-hooks: add check-trailing-whitespace 2018-04-26 03:54:38 +02:00
selftest rpc_server: Fix NetSessEnum with stale sessions 2018-04-25 22:49:07 +02:00
source3 s3: libsmbclient: Fix hard-coded connection error return of ETIMEDOUT. 2018-05-03 02:42:20 +02:00
source4 python: Bulk conversion callers of ldb.Dn second param 2018-04-30 15:43:19 +02:00
testdata Added smbc_SetConfiguration which lets the user set the smb.conf for libsmbclient code 2018-01-21 07:08:23 +01:00
testprogs selftest: Ensure tmpkpasswdscript is always under $PREFIX 2018-03-23 02:32:08 +01:00
tests smbd: remove quota support for some ancient OSs 2016-03-17 01:08:32 +01:00
testsuite unittests.lib_util_modules: test module probe with "skel", not "unix" 2018-02-22 01:04:18 +01:00
third_party third_party: Fix size type in cmocka 2018-04-03 20:20:10 +02:00
wintest python:samba: Use 'binddns dir' in samba-tool and samba_upgradedns 2017-09-05 23:58:20 +02:00
.bzrignore
.gitignore gitignore: ignore .gpg-* generated files (for ubuntu 16.04) 2017-06-15 21:40:07 +02:00
.gitlab-ci.yml gitlab-ci: Split up build_samba_others and build_ctdb tasks 2018-03-27 23:03:14 +02:00
.testr.conf testr: Use waf testonly and create a custom directory for new workers. 2014-10-14 06:44:07 +02:00
.travis.yml autobuild: Split up the build further with samba-ad-dc-2 2018-03-27 23:03:14 +02:00
.ycm_extra_conf.py lib:replace: Add FALL_THROUGH support 2018-03-01 04:37:41 +01:00
BUILD_SYSTEMS.txt
callcatcher-exceptions.grep
configure configure: Unload the wrappers so waf configure succeeds. 2014-10-09 19:32:16 +02:00
configure.developer lib: Change socket_wrapper to preloadable version. 2014-04-17 14:56:06 +02:00
COPYING
install_with_python.sh install_with_python: Secure Python download with sha256 checks. 2015-07-24 05:19:05 +02:00
Makefile make perftest: for performance testing 2016-08-31 07:09:26 +02:00
PFIF.txt
README Fix little typo in README file 2015-12-04 06:08:29 +01:00
README.cifs-utils
README.Coding README.Coding: remove reference to non-existent prog_guide4.txt 2018-03-23 07:28:25 +01:00
README.contributing Update mailing list references to point at lists.samba.org 2015-02-10 07:08:28 +01:00
simple-dc-steps.sh dbcheck linked attribute tests: save environment with bad links 2016-07-15 10:01:30 +02:00
VERSION VERSION: Bump version up to 4.9.0pre1... 2018-01-15 02:51:51 +01:00
WHATSNEW.txt WHATSNEW: Add info for 'net ads keytab' and 'net ads setspn' changes 2018-03-02 19:12:08 +01:00
wscript Add a wrapper script as git pre-commit hook 2018-04-26 01:09:27 +02:00
wscript_build packaging: add configure option to preprocess and install systemd files 2018-01-08 03:34:18 +01:00
wscript_build_embedded_heimdal wscript: Build the KDC code if we have the AD DC build enabled 2016-03-17 04:32:28 +01:00
wscript_build_system_heimdal wscript: Build the KDC code if we have the AD DC build enabled 2016-03-17 04:32:28 +01:00
wscript_build_system_mitkrb5
wscript_configure_system_mitkrb5 Remove unsupported colon from configure msg. 2017-12-12 20:37:08 +01:00

This is the release version of Samba, the free SMB and CIFS client and
server and Domain Controller for UNIX and other operating
systems. Samba is maintained by the Samba Team, who support the
original author, Andrew Tridgell.

>>>> Please read THE WHOLE of this file as it gives important information
>>>> about the configuration and use of Samba.

NOTE: Installation instructions may be found
      for the file/print server and domain member in:
      docs/htmldocs/Samba3-HOWTO/install.html

      For the AD DC implementation a full HOWTO is provided at:
      http://wiki.samba.org/index.php/Samba4/HOWTO

This software is freely distributable under the GNU public license, a
copy of which you should have received with this software (in a file
called COPYING). 


WHAT IS SMB/CIFS?
=================

This is a big question. 

The very short answer is that it is the protocol by which a lot of
PC-related machines share files and printers and other information
such as lists of available files and printers. Operating systems that
support this natively include Windows 9x, Windows NT (and derivatives), 
OS/2, Mac OS X and Linux.  Add on packages that achieve the same 
thing are available for DOS, Windows 3.1, VMS, Unix of all kinds, 
MVS, and more.  Some Web Browsers can speak this protocol as well 
(smb://).  Alternatives to SMB include Netware, NFS, Appletalk, 
Banyan Vines, Decnet etc; many of these have advantages but none are 
both public specifications and widely implemented in desktop machines 
by default.

The Common Internet File system (CIFS) is what the new SMB initiative
is called. For details watch http://samba.org/cifs.


WHY DO PEOPLE WANT TO USE SMB?
==============================

1. Many people want to integrate their Microsoft desktop clients
   with their Unix servers.

2. Others want to integrate their Microsoft (etc) servers with Unix
   servers. This is a different problem to integrating desktop 
   clients.

3. Others want to replace protocols like NFS, DecNet and Novell NCP,
   especially when used with PCs.


WHAT CAN SAMBA DO?
==================

Please refer to the WHATSNEW.txt included with this README for
a list of features in the latest Samba release.

Here is a very short list of what samba includes, and what it does. 
For many networks this can be simply summarized by "Samba provides 
a complete replacement for Windows NT, Warp, NFS or Netware servers."

- a SMB server, to provide Windows NT and LAN Manager-style file and print 
  services to SMB clients such as Windows 95, Warp Server, smbfs and others.

- a Windows Domain Controller (NT4 and AD) replacement.

- a file/print server that can act as a member of a Windows NT 4.0
  or Active Directory domain.

- a NetBIOS (rfc1001/1002) nameserver, which amongst other things gives 
  browsing support. Samba can be the master browser on your LAN if you wish.

- a ftp-like SMB client so you can access PC resources (disks and
  printers) from UNIX, Netware, and other operating systems

- a tar extension to the client for backing up PCs

- limited command-line tool that supports some of the NT administrative
  functionality, which can be used on Samba, NT workstation and NT server.

For a much better overview have a look at the web site at
http://samba.org/samba, and browse the user survey.

Related packages include:

- cifsvfs, an advanced Linux-only filesystem allowing you to mount 
  remote SMB filesystems from PCs on your Linux box. This is included 
  as standard with Linux 2.5 and later.

- smbfs, the previous Linux-only filesystem allowing you to mount remote SMB
  filesystems from PCs on your Linux box. This is included as standard with
  Linux 2.0 and later.



CONTRIBUTIONS
=============

1. To contribute via GitHub
  - fork the official Samba team repository on GitHub
      * see https://github.com/samba-team/samba
  - become familiar with the coding standards as described in README.Coding
  - make sure you read the Samba copyright policy
      * see https://www.samba.org/samba/devel/copyright-policy.html
  - create a feature branch
  - make changes
  - when committing, be sure to add signed-off-by tags
      * see https://wiki.samba.org/index.php/CodeReview#commit_message_tags
  - send a pull request for your branch through GitHub
  - this will trigger an email to the samba-technical mailing list
  - discussion happens on the samba-technical mailing list as described below
  - more info on using Git for Samba development can be found on the Samba Wiki
      * see https://wiki.samba.org/index.php/Using_Git_for_Samba_Development

2. If you want to contribute to the development of the software then
please join the mailing list. The Samba team accepts patches
(preferably in "diff -u" format, see http://samba.org/samba/devel/ 
for more details) and are always glad to receive feedback or 
suggestions to the address samba@lists.samba.org.  More information
on the various Samba mailing lists can be found at http://lists.samba.org/.

You can also get the Samba sourcecode straight from the git repository - see
http://wiki.samba.org/index.php/Using_Git_for_Samba_Development.

If you like a particular feature then look through the git change-log
(on the web at http://gitweb.samba.org/?p=samba.git;a=summary) and see
who added it, then send them an email.

Remember that free software of this kind lives or dies by the response
we get. If no one tells us they like it then we'll probably move onto
something else.

MORE INFO
=========

DOCUMENTATION
-------------

There is quite a bit of documentation included with the package,
including man pages, and lots of .html files with hints and useful
info. This is also available from the web page. There is a growing
collection of information under docs/.

A list of Samba documentation in languages other than English is
available on the web page.

If you would like to help with the documentation, please coordinate
on the samba@samba.org mailing list.  See the next section for details 
on subscribing to samba mailing lists.


MAILING LIST
------------

Please do NOT send subscription/unsubscription requests to the lists!

There is a mailing list for discussion of Samba.  For details go to
<http://lists.samba.org/> or send mail to <samba-subscribe@lists.samba.org>

There is also an announcement mailing list where new versions are
announced.  To subscribe go to <http://lists.samba.org/> or send mail
to <samba-announce-subscribe@lists.samba.org>.  All announcements also
go to the samba list, so you only need to be on one.

For details of other Samba mailing lists and for access to archives, see
<http://lists.samba.org/>


MAILING LIST ETIQUETTE
----------------------

A few tips when submitting to this or any mailing list.

1. Make your subject short and descriptive. Avoid the words "help" or
   "Samba" in the subject. The readers of this list already know that
   a) you need help, and b) you are writing about samba (of course,
   you may need to distinguish between Samba PDC and other file
   sharing software). Avoid phrases such as "what is" and "how do
   i". Some good subject lines might look like "Slow response with
   Excel files" or "Migrating from Samba PDC to NT PDC".

2. If you include the original message in your reply, trim it so that
   only the relevant lines, enough to establish context, are
   included. Chances are (since this is a mailing list) we've already
   read the original message.

3. Trim irrelevant headers from the original message in your
   reply. All we need to see is a) From, b) Date, and c) Subject. We
   don't even really need the Subject, if you haven't changed
   it. Better yet is to just preface the original message with "On
   [date] [someone] wrote:".

4. Please don't reply to or argue about spam, spam filters or viruses
   on any Samba lists. We do have a spam filtering system that is
   working quite well thank you very much but occasionally unwanted
   messages slip through. Deal with it.

5. Never say "Me too." It doesn't help anyone solve the
   problem. Instead, if you ARE having the same problem, give more
   information. Have you seen something that the other writer hasn't
   mentioned, which may be helpful?

6. If you ask about a problem, then come up with the solution on your
   own or through another source, by all means post it. Someone else
   may have the same problem and is waiting for an answer, but never
   hears of it.

7. Give as much *relevant* information as possible such as Samba
   release number, OS, kernel version, etc...

8. RTFM. Google. groups.google.com.


WEB SITE
--------

A Samba WWW site has been setup with lots of useful info. Connect to:

http://samba.org/

As well as general information and documentation, this also has searchable 
archives of the mailing list and a user survey that shows who else is using
this package.