1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

15165 Commits

Author SHA1 Message Date
Jeremy Allison
4a145531c2 If signing starts successfully, don't just turn it off automatically if
it fails later. Only turn it off automatically if it fails at the start.
Jeremy.
-
Andrew Bartlett
48123f7e42 Do not add NTLM2 to the NTLMSSP flags unconditionally - allow the
defaults specified by the caller to prevail.

Don't use NTLM2 for RPC pipes, until we know how it works in signing or sealing.

Call ntlmssp_sign_init() unconditionally in the client - we setup the
session key, why not setup the rest of the data.

Andrew Bartlett
-
Jeremy Allison
0f2a50316d Patch for #263 from jpjanosi@us.ibm.com.
Jeremy.
-
Jeremy Allison
8916ddfc39 When server signing is set to "auto", if the client doesn't sign just
ignore it. Only fail if signing is set to "required".
Jeremy.
-
Gerald Carter
5e062f72ba strequal() returns a BOOL, not an int like strcmp(); this fixes a bug in check_bind_response() -
Jeremy Allison
16097f2072 Added "passwd chat timeout" parameter. Docs to follow.
Jeremy.
-
Gerald Carter
71333299a6 patch from Matthias Hilbig for bug 467; use the dns name (or IP) as the originating client name when using CUPS -
Gerald Carter
68283407e0 more access fixes for group enumeration in LDAP; bug 281 -
Andrew Bartlett
5872c0e26e Patch by emil@disksites.com <Emil Rasamat> to ensure we always always
free() each auth method. (We had relied on the use of talloc() only, despite providing the free() callback)

Andrew Bartlett
-
Andrew Bartlett
240b0d178e Add server-side support for variable-length session keys (as used by
DES based krb5 logins).

Andrew Bartlett
-
Andrew Bartlett
9ecf9408d9 Add support for variable-length session keys in our client code.
This means that we now support 'net rpc join' with KRB5 (des based)
logins.  Now, you need to hack 'net' to do that, but the principal is
important...

When we add kerberos to 'net rpc', it should be possible to still do
user management and the like over RPC.

(server-side support to follow shortly)

Andrew Bartlett
-
Andrew Bartlett
f3bbc87b0d Changes all over the shop, but all towards:
- NTLM2 support in the server
 - KEY_EXCH support in the server
 - variable length session keys.

In detail:

 - NTLM2 is an extension of NTLMv1, that is compatible with existing
domain controllers (unlike NTLMv2, which requires a DC upgrade).

 * This is known as 'NTLMv2 session security' *

(This is not yet implemented on the RPC pipes however, so there may
well still be issues for PDC setups, particuarly around password
changes.  We do not fully understand the sign/seal implications of
NTLM2 on RPC pipes.)

This requires modifications to our authentication subsystem, as we
must handle the 'challege' input into the challenge-response algorithm
being changed.  This also needs to be turned off for
'security=server', which does not support this.

- KEY_EXCH is another 'security' mechanism, whereby the session key
actually used by the server is sent by the client, rather than being
the shared-secret directly or indirectly.

- As both these methods change the session key, the auth subsystem
needed to be changed, to 'override' session keys provided by the
backend.

- There has also been a major overhaul of the NTLMSSP subsystem, to merge the 'client' and 'server' functions, so they both operate on a single structure.  This should help the SPNEGO implementation.

- The 'names blob' in NTLMSSP is always in unicode - never in ascii.
Don't make an ascii version ever.

- The other big change is to allow variable length session keys.  We
have always assumed that session keys are 16 bytes long - and padded
to this length if shorter.  However, Kerberos session keys are 8 bytes
long, when the krb5 login uses DES.

 * This fix allows SMB signging on machines not yet running MIT KRB5 1.3.1. *

- Add better DEBUG() messages to ntlm_auth, warning administrators of
misconfigurations that prevent access to the privileged pipe.  This
should help reduce some of the 'it just doesn't work' issues.

- Fix data_blob_talloc() to behave the same way data_blob() does when
passed a NULL data pointer.  (just allocate)


REMEMBER to make clean after this commit - I have changed plenty of data structures...
-
Gerald Carter
879d0f15ea include WWW-Authenticate field in 401 response for bad auth attempt; bug 629 -
Gerald Carter
e374ce779e adding a useful debug -
Gerald Carter
04e37283f2 fix winbind ping call so that SWAT correctly determines if winbindd is running; bug 398 -
Gerald Carter
5bf91c79d6 Ensure that items in a list of strings containing whitespace
are written out surrounded by single quotes.  This means that
both double and single quotes are now used to surround
strings in smb.conf.  This is a slight change from the previous
behavior but needed or else things like

    printer admin = +ntadmin, 'VALE\Domain, Admin'

get written to smb.conf by SWAT.
-
Jeremy Allison
598d9d3e5f Fix for rename across filesystems. Noticed by Rainer Link <link@foo.fh-furtwangen.de>.
Jeremy.
-
Jeremy Allison
48153f7a07 Fix Jerry's no-proto bug :-).
Jeremy.
-
Gerald Carter
12a06dd980 make sure we don't append the ldap suffix when writing out the ldap XXX suffix values in SWAT; based on tpot's original patch; bug 328 -
Alexander Bokovoy
56fc6962fb Update WHATSNEW.txt with text from release branch -
Rafal Szczesniak
5054a1731e Typo fix. -
Jeremy Allison
69550332f3 Look at error before using it in debug statement.
Jeremy.
-
Rafal Szczesniak
2eef3c7bc1 Added useful information to debug lines.
Patch by metze.


rafal
-
Gerald Carter
8c46576f64 changing versionb to pre4 -
Andrew Tridgell
8d848de45d added a wbtest program that shows how to access winbindd extended nss
functionality directly from an application.

This is under a liberal license as we want application vendors to be
able to use the example code
-
Andrew Tridgell
702b35da0a as discussed on irc, this is a small patch that allows a few more
winbind functions to be accessed via NSS. This provides a much cleaner
way for applications that need (for example) to provide name->sid
mappings to do this via NSS rather than having to know the winbindd
pipe protocol (as this might change).

This patch also adds a varient of the winbindd_getgroups() call called
winbindd_getusersids() that provides direct SID->SIDs listing of a
users supplementary groups. This is enough to allow non-Samba
applications to do ACL checking.

A test program for the new functionality will be committed shortly.

I also added the 'wbinfo --user-sids' option to expose the new
function in wbinfo.
-
Jeremy Allison
06c9e91630 Group quotas patch from "Heinreichsberger, Helmut" <Helmut.Heinreichsberger@wincor-nixdorf.com>
Jeremy.
-
Jeremy Allison
ec23396452 Correct fix for checking of '$' name termination.
Jeremy.
-
Rafal Szczesniak
8b06364b53 Useful debug message. Patch by metze.
rafal
-
Jeremy Allison
87eb336d65 Remove unneeded second open for filename ending in '.' now we know it's
a mangled name. Added const. Fix inspired by Andrew Bartlett ideas.
Jeremy.
-
Jeremy Allison
fc2af591f5 Ensure we mangle names ending in '.' in hash2 mangling method.
Jeremy.
-
Jeremy Allison
703b1b76e2 Fix from Andrew Bartlett to fix up the munged-dial problem.
Jeremy.
-
Volker Lendecke
029dcb351b This fixes a bug when establishing trust against a german W2k3 AD server. In
the bind response to WKSSVC it does not send \PIPE\ntsvcs as NT4 (did not
check w2k) but \PIPE\wkssvc. I'm not sure whether we should make this check at
all, so making it a bit more liberal should hopefully not really hurt.

Volker
-
Gerald Carter
a7685a0697 * make sure we only enumerate group mapping entries
(not /etc/group) even when doing local aliases

* remove "hide local users" parameter; we have this
  behavior built into 3.0
-
Gerald Carter
bd0813e609 updates from Buchan -
Gerald Carter
d4cbd00dfe first draft of release notes for 3.0.1pre3 -
Gerald Carter
e079c8842a fix more memory leaks in the LDAP backend code; patches from metze -
Gerald Carter
fd98af75d6 * Fix from SATOH Fumiyasu for bug 660 (failing to view print
jobs) by only enforce the 'max reported print jobs' parameter
  when it is non-zero.

* Fixed bug 338 by making sure that data values are written
  out when we are marshalling an EnumPrinterDataEx() reply.
  This probably fixes other bugs reported against point-n-print
  feature in 3.0.0
-
Richard Sharpe
00d5136ea0 More casty-foo ... -
Richard Sharpe
d165a49d86 Squelch some warnings with more casty-foo. -
Richard Sharpe
58d7a51c57 Fix a couple of warnings with casts. -
Gerald Carter
d72d77c427 show locked files for -u <user>; bug 590 -
Richard Sharpe
af42af75a4 Add testacl.c ... from Derrell Lipman. -
Rafal Szczesniak
d6857d191c Omit html documentation tree because it has been moved to the separate
module. Install though, in case one recreates the tree as it was before.


rafal
-
Andrew Tridgell
b3e024ce1d a small include file rearrangement that doesn't affect normal
compilation, but that allows Samba3 to take advantage of pre-compiled
headers in gcc if available.
-
Andrew Tridgell
ef01aedfb4 added support for "make pch" to build a precompiled header. Note that
this is not called by default and I don't think it should be - I think
the programmer should specifically ask for pch generation when they
want it.
-
Gerald Carter
ccd5665a65 fix crash bug due to empyrt munged dial string; patch from metze -
Jeremy Allison
e61324cc6a Patch from Andrew Bartlett <abartlet@samba.org> for security=server core
dump if server goes away.
Jeremy.
-
Richard Sharpe
63d7698208 Fix a problem with configure on *BSD systems. Make sure we add -liconv etc
to LDFLAGS. One of the problems with configure/autoconf is that there seems
to be no separation of LDLFAGS etc in configure from the LDFLAGS it is
building for the Makefile.
-
Volker Lendecke
6b457d0c5c Skip over the winbind separator when looking up a user.
Volker
-