1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
Commit Graph

15433 Commits

Author SHA1 Message Date
Andrew Bartlett
3f0d0002ae Add a comment, and a useful debug message.
(This used to be commit df14b0af31)
2003-11-25 23:24:14 +00:00
Jelmer Vernooij
8beace344c Fix build of winbindd with static pdb modules
(This used to be commit 92a138f027)
2003-11-25 19:41:47 +00:00
Gerald Carter
82ef4774d2 allow users to delete jobs with cups printing backend
The changes the name of the job passed off to cups
from "Test Page" to "smbprn.00000033 Test Page" so that
we can get the smb jobid back from lpq.  Working on bug
770.
(This used to be commit 3a84daf24f)
2003-11-25 19:17:20 +00:00
Gerald Carter
055750f090 allow users to delete jobs with cups printing backend
The changes the name of the job passed off to cups
from "Test Page" to "smbprn.00000033 Test Page" so that
we can get the smb jobid back from lpq.  Working on bug
770.
(This used to be commit 5979f4d645)
2003-11-25 19:16:35 +00:00
Jeremy Allison
6ce882ef29 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.
(This used to be commit 4a145531c2)
2003-11-25 18:15:52 +00:00
Jeremy Allison
c8d0bce19f 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.
(This used to be commit 2a00d538da)
2003-11-25 18:15:49 +00:00
Andrew Bartlett
1b6e6c98ba 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
(This used to be commit 48123f7e42)
2003-11-25 11:25:38 +00:00
Jeremy Allison
90d4b84636 Patch for #263 from jpjanosi@us.ibm.com.
Jeremy.
(This used to be commit 6543bca0cb)
2003-11-25 02:04:10 +00:00
Jeremy Allison
b4feed1e50 Patch for #263 from jpjanosi@us.ibm.com.
Jeremy.
(This used to be commit 0f2a50316d)
2003-11-25 02:04:03 +00:00
Jeremy Allison
efdd1ea572 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.
(This used to be commit 8916ddfc39)
2003-11-25 00:32:51 +00:00
Jeremy Allison
b7937e569c 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.
(This used to be commit ab5db8873e)
2003-11-25 00:32:48 +00:00
Gerald Carter
f7bf71a34c strequal() returns a BOOL, not an int like strcmp(); this fixes a bug in check_bind_response()
(This used to be commit 84f0e97e58)
2003-11-24 20:22:41 +00:00
Gerald Carter
4e61fcbef1 strequal() returns a BOOL, not an int like strcmp(); this fixes a bug in check_bind_response()
(This used to be commit 5e062f72ba)
2003-11-24 20:22:12 +00:00
Jeremy Allison
73034f9116 Added "passwd chat timeout" parameter. Docs to follow.
Jeremy.
(This used to be commit 16097f2072)
2003-11-24 20:18:47 +00:00
Jeremy Allison
9ce8270a86 Added "passwd chat timeout" parameter. Docs to follow.
Jeremy.
(This used to be commit 4d49fb806d)
2003-11-24 20:18:44 +00:00
Gerald Carter
3500dfdcdc patch from Matthias Hilbig for bug 467; use the dns name (or IP) as the originating client name when using CUPS
(This used to be commit eae48cda0f)
2003-11-24 18:38:15 +00:00
Gerald Carter
c26aa9fd2d patch from Matthias Hilbig for bug 467; use the dns name (or IP) as the originating client name when using CUPS
(This used to be commit 71333299a6)
2003-11-24 18:37:19 +00:00
Gerald Carter
f5ee9c7b02 more access fixes for group enumeration in LDAP; bug 281
(This used to be commit c4ce92e806)
2003-11-24 17:33:15 +00:00
Gerald Carter
c39f5fea4a more access fixes for group enumeration in LDAP; bug 281
(This used to be commit 68283407e0)
2003-11-24 17:31:38 +00:00
Andrew Bartlett
8ade0cf1b6 (Merge from 3.0)
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
(This used to be commit 58c4963a83)
2003-11-23 00:23:26 +00:00
Andrew Bartlett
13a6b9833e Merge from 3.0:
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.

-

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

Andrew Bartlett
(This used to be commit 1287cf5f92)
2003-11-23 00:22:17 +00:00
Andrew Bartlett
6268505496 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
(This used to be commit 5872c0e26e)
2003-11-23 00:16:54 +00:00
Andrew Bartlett
6b81cc2e0b Add server-side support for variable-length session keys (as used by
DES based krb5 logins).

Andrew Bartlett
(This used to be commit 240b0d178e)
2003-11-23 00:04:29 +00:00
Andrew Bartlett
78404434d0 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
(This used to be commit 9ecf9408d9)
2003-11-22 23:38:41 +00:00
Andrew Bartlett
354c0fbc91 (merge from 3.0)
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...

Andrew Bartlett
(This used to be commit 57a895aaab)
2003-11-22 13:29:02 +00:00
Andrew Bartlett
fcbfc7ad06 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...
(This used to be commit f3bbc87b0d)
2003-11-22 13:19:38 +00:00
Gerald Carter
a2b82b408b debug and swat fixes from 3.0
(This used to be commit 52c1973f39)
2003-11-22 06:17:46 +00:00
Gerald Carter
7d9fb45339 include WWW-Authenticate field in 401 response for bad auth attempt; bug 629
(This used to be commit 879d0f15ea)
2003-11-22 06:16:01 +00:00
Gerald Carter
4f65a3bd03 adding a useful debug
(This used to be commit e374ce779e)
2003-11-22 06:15:28 +00:00
Gerald Carter
177ff4d64c fix winbind ping call so that SWAT correctly determines if winbindd is running; bug 398
(This used to be commit cb12d519cc)
2003-11-22 04:49:32 +00:00
Gerald Carter
8a53eed206 fix winbind ping call so that SWAT correctly determines if winbindd is running; bug 398
(This used to be commit 04e37283f2)
2003-11-22 04:47:34 +00:00
Gerald Carter
3c101594dd 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.
(This used to be commit 59e9d6e301)
2003-11-22 04:35:36 +00:00
Gerald Carter
11f4893145 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.
(This used to be commit 5bf91c79d6)
2003-11-22 04:33:36 +00:00
Jeremy Allison
d66def408e Fix for rename across filesystems. Noticed by Rainer Link <link@foo.fh-furtwangen.de>.
Jeremy.
(This used to be commit 598d9d3e5f)
2003-11-21 23:01:37 +00:00
Jeremy Allison
1a125f5e40 Fix for rename across filesystems. Noticed by Rainer Link <link@foo.fh-furtwangen.de>.
Jeremy.
(This used to be commit f68c2ff0f3)
2003-11-21 23:01:34 +00:00
Jeremy Allison
bf0c18d418 Fix Jerry's no-proto bug :-).
Jeremy.
(This used to be commit 2b39e3f12a)
2003-11-21 19:20:51 +00:00
Jeremy Allison
bdea2e8a47 Fix Jerry's no-proto bug :-).
Jeremy.
(This used to be commit 48153f7a07)
2003-11-21 19:20:07 +00:00
Gerald Carter
579cafe744 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
(This used to be commit b1d5173b16)
2003-11-21 19:12:33 +00:00
Gerald Carter
478bb592a3 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
(This used to be commit 12a06dd980)
2003-11-21 19:11:48 +00:00
Alexander Bokovoy
244df1e63e Update WHATSNEW.txt with text from release branch
(This used to be commit 56fc6962fb)
2003-11-21 10:54:33 +00:00
Rafal Szczesniak
382e96a614 Typo fix.
(This used to be commit 5054a1731e)
2003-11-20 23:56:42 +00:00
Rafal Szczesniak
ad88390a40 Typo fix.
(This used to be commit d1394f02cb)
2003-11-20 23:54:13 +00:00
Rafal Szczesniak
2a22bd3038 Added useful information to debug lines.
Patch by metze.


rafal
(This used to be commit 91e1be66b1)
2003-11-19 23:14:21 +00:00
Jeremy Allison
8614cc504e Look at error before using it in debug statement.
Jeremy.
(This used to be commit 69550332f3)
2003-11-19 22:57:56 +00:00
Jeremy Allison
f5e68bcfa1 Look at error before using it in debug statement.
Jeremy.
(This used to be commit 42114b75f2)
2003-11-19 22:57:53 +00:00
Rafal Szczesniak
a63010bae7 Added useful information to debug lines.
Patch by metze.


rafal
(This used to be commit 2eef3c7bc1)
2003-11-19 22:56:02 +00:00
Gerald Carter
885140bcb7 changing versionb to pre4
(This used to be commit 8c46576f64)
2003-11-19 18:33:19 +00:00
Andrew Tridgell
dec5b6c40d 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
(This used to be commit 8d848de45d)
2003-11-19 08:14:09 +00:00
Andrew Tridgell
53dfaac5fb 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.
(This used to be commit 702b35da0a)
2003-11-19 08:11:14 +00:00
Jeremy Allison
2d41ca7198 Group quotas patch from "Heinreichsberger, Helmut" <Helmut.Heinreichsberger@wincor-nixdorf.com>
Jeremy.
(This used to be commit 06c9e91630)
2003-11-19 02:19:34 +00:00