Richard Sharpe [Wed, 26 Nov 2003 19:15:22 +0000 (19:15 +0000)]
Clean up a comment noticed by Jonathan Shao@Panasas.com and remove an
obsolete comment by Luke Leighton.
John Terpstra [Wed, 26 Nov 2003 18:43:26 +0000 (18:43 +0000)]
Fixing barfed idmap entries and adding not on use of FLAG_HIDE.
Volker Lendecke [Wed, 26 Nov 2003 10:07:07 +0000 (10:07 +0000)]
Implement "net rpc group members": Get members of a domain group in
human-readable format.
Volker
Volker Lendecke [Wed, 26 Nov 2003 09:58:41 +0000 (09:58 +0000)]
Get rid of a const warning
Volker
Jeremy Allison [Tue, 25 Nov 2003 23:25:42 +0000 (23:25 +0000)]
Patch from Jim McDonough for bug #802. Retrieve the correct ACL group bits
if the file has an ACL.
Jeremy.
Andrew Bartlett [Tue, 25 Nov 2003 23:24:14 +0000 (23:24 +0000)]
Add a comment, and a useful debug message.
Jelmer Vernooij [Tue, 25 Nov 2003 19:41:47 +0000 (19:41 +0000)]
Fix build of winbindd with static pdb modules
Gerald Carter [Tue, 25 Nov 2003 19:16:35 +0000 (19:16 +0000)]
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.
Jeremy Allison [Tue, 25 Nov 2003 18:15:52 +0000 (18:15 +0000)]
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 [Tue, 25 Nov 2003 11:25:38 +0000 (11:25 +0000)]
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 [Tue, 25 Nov 2003 02:04:03 +0000 (02:04 +0000)]
Patch for #263 from jpjanosi@us.ibm.com.
Jeremy.
Jeremy Allison [Tue, 25 Nov 2003 00:32:51 +0000 (00:32 +0000)]
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 [Mon, 24 Nov 2003 20:22:12 +0000 (20:22 +0000)]
strequal() returns a BOOL, not an int like strcmp(); this fixes a bug in check_bind_response()
Jeremy Allison [Mon, 24 Nov 2003 20:18:47 +0000 (20:18 +0000)]
Added "passwd chat timeout" parameter. Docs to follow.
Jeremy.
Gerald Carter [Mon, 24 Nov 2003 18:37:19 +0000 (18:37 +0000)]
patch from Matthias Hilbig for bug 467; use the dns name (or IP) as the originating client name when using CUPS
Gerald Carter [Mon, 24 Nov 2003 17:31:38 +0000 (17:31 +0000)]
more access fixes for group enumeration in LDAP; bug 281
Andrew Bartlett [Sun, 23 Nov 2003 00:16:54 +0000 (00:16 +0000)]
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 [Sun, 23 Nov 2003 00:04:29 +0000 (00:04 +0000)]
Add server-side support for variable-length session keys (as used by
DES based krb5 logins).
Andrew Bartlett
Andrew Bartlett [Sat, 22 Nov 2003 23:38:41 +0000 (23:38 +0000)]
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 [Sat, 22 Nov 2003 13:19:38 +0000 (13:19 +0000)]
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 [Sat, 22 Nov 2003 06:16:01 +0000 (06:16 +0000)]
include WWW-Authenticate field in 401 response for bad auth attempt; bug 629
Gerald Carter [Sat, 22 Nov 2003 06:15:28 +0000 (06:15 +0000)]
adding a useful debug
Gerald Carter [Sat, 22 Nov 2003 04:47:34 +0000 (04:47 +0000)]
fix winbind ping call so that SWAT correctly determines if winbindd is running; bug 398
Gerald Carter [Sat, 22 Nov 2003 04:33:36 +0000 (04:33 +0000)]
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 [Fri, 21 Nov 2003 23:01:37 +0000 (23:01 +0000)]
Fix for rename across filesystems. Noticed by Rainer Link <link@foo.fh-furtwangen.de>.
Jeremy.
Jeremy Allison [Fri, 21 Nov 2003 19:20:07 +0000 (19:20 +0000)]
Fix Jerry's no-proto bug :-).
Jeremy.
Gerald Carter [Fri, 21 Nov 2003 19:11:48 +0000 (19:11 +0000)]
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 [Fri, 21 Nov 2003 10:54:33 +0000 (10:54 +0000)]
Update WHATSNEW.txt with text from release branch
Rafal Szczesniak [Thu, 20 Nov 2003 23:56:42 +0000 (23:56 +0000)]
Typo fix.
Jeremy Allison [Wed, 19 Nov 2003 22:57:56 +0000 (22:57 +0000)]
Look at error before using it in debug statement.
Jeremy.
Rafal Szczesniak [Wed, 19 Nov 2003 22:56:02 +0000 (22:56 +0000)]
Added useful information to debug lines.
Patch by metze.
rafal
Gerald Carter [Wed, 19 Nov 2003 18:33:19 +0000 (18:33 +0000)]
changing versionb to pre4
Andrew Tridgell [Wed, 19 Nov 2003 08:14:09 +0000 (08:14 +0000)]
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 [Wed, 19 Nov 2003 08:11:14 +0000 (08:11 +0000)]
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 [Wed, 19 Nov 2003 02:19:34 +0000 (02:19 +0000)]
Group quotas patch from "Heinreichsberger, Helmut" <Helmut.Heinreichsberger@wincor-nixdorf.com>
Jeremy.
Jeremy Allison [Wed, 19 Nov 2003 00:18:45 +0000 (00:18 +0000)]
Correct fix for checking of '$' name termination.
Jeremy.
Rafal Szczesniak [Tue, 18 Nov 2003 19:15:29 +0000 (19:15 +0000)]
Useful debug message. Patch by metze.
rafal
Jeremy Allison [Tue, 18 Nov 2003 02:06:41 +0000 (02:06 +0000)]
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 [Tue, 18 Nov 2003 01:47:27 +0000 (01:47 +0000)]
Ensure we mangle names ending in '.' in hash2 mangling method.
Jeremy.
Jeremy Allison [Mon, 17 Nov 2003 22:07:47 +0000 (22:07 +0000)]
Fix from Andrew Bartlett to fix up the munged-dial problem.
Jeremy.
Volker Lendecke [Mon, 17 Nov 2003 18:00:43 +0000 (18:00 +0000)]
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 [Mon, 17 Nov 2003 16:06:10 +0000 (16:06 +0000)]
* 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 [Mon, 17 Nov 2003 14:15:14 +0000 (14:15 +0000)]
updates from Buchan
Gerald Carter [Fri, 14 Nov 2003 03:32:21 +0000 (03:32 +0000)]
first draft of release notes for 3.0.1pre3
Gerald Carter [Fri, 14 Nov 2003 03:28:03 +0000 (03:28 +0000)]
fix more memory leaks in the LDAP backend code; patches from metze
Gerald Carter [Thu, 13 Nov 2003 20:15:17 +0000 (20:15 +0000)]
* 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 [Thu, 13 Nov 2003 17:35:00 +0000 (17:35 +0000)]
More casty-foo ...
Richard Sharpe [Thu, 13 Nov 2003 17:30:25 +0000 (17:30 +0000)]
Squelch some warnings with more casty-foo.
Richard Sharpe [Thu, 13 Nov 2003 17:27:21 +0000 (17:27 +0000)]
Fix a couple of warnings with casts.
Gerald Carter [Wed, 12 Nov 2003 22:35:50 +0000 (22:35 +0000)]
show locked files for -u <user>; bug 590
Richard Sharpe [Wed, 12 Nov 2003 21:46:39 +0000 (21:46 +0000)]
Add testacl.c ... from Derrell Lipman.
Rafal Szczesniak [Wed, 12 Nov 2003 13:02:25 +0000 (13:02 +0000)]
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 [Wed, 12 Nov 2003 01:51:10 +0000 (01:51 +0000)]
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 [Wed, 12 Nov 2003 01:01:47 +0000 (01:01 +0000)]
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 [Tue, 11 Nov 2003 19:22:00 +0000 (19:22 +0000)]
fix crash bug due to empyrt munged dial string; patch from metze
Jeremy Allison [Mon, 10 Nov 2003 19:33:42 +0000 (19:33 +0000)]
Patch from Andrew Bartlett <abartlet@samba.org> for security=server core
dump if server goes away.
Jeremy.
Richard Sharpe [Mon, 10 Nov 2003 05:34:51 +0000 (05:34 +0000)]
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 [Sun, 9 Nov 2003 17:23:57 +0000 (17:23 +0000)]
Skip over the winbind separator when looking up a user.
Volker
Jelmer Vernooij [Sun, 9 Nov 2003 14:09:27 +0000 (14:09 +0000)]
Add new fields bad_password_count and logon_count
Gerald Carter [Fri, 7 Nov 2003 23:14:09 +0000 (23:14 +0000)]
last update to WHATSNEW
Gerald Carter [Fri, 7 Nov 2003 23:04:06 +0000 (23:04 +0000)]
* only install swat html files once
* revert the change that prevent the guest
account from being added to a passdb backend
since it broke the build farm.
* apply patch from Alex Deiter to fix the
"smbldap_open: cannot access when not root
error" messages when looking up group
information (bug 281)
Jeremy Allison [Fri, 7 Nov 2003 18:32:23 +0000 (18:32 +0000)]
Handle munged dial string. Patch from Aur?lien Degr?mont <adegremont@idealx.com>with memory leak fixes by me.
Jeremy.
Gerald Carter [Fri, 7 Nov 2003 17:33:37 +0000 (17:33 +0000)]
working on release notes for 3.0.1pre2
Tim Potter [Fri, 7 Nov 2003 16:55:40 +0000 (16:55 +0000)]
Set vendor name.
Tim Potter [Fri, 7 Nov 2003 16:54:57 +0000 (16:54 +0000)]
Set vendor string.
Tim Potter [Fri, 7 Nov 2003 16:53:25 +0000 (16:53 +0000)]
Add vendor name to rpm preamble.
Gerald Carter [Fri, 7 Nov 2003 14:39:47 +0000 (14:39 +0000)]
fix for bug 680 (heads up). This gist is to map the
UNIX entity foo to DOMAIN\foo instead of SERVER\foo
on members of a Samba domain when all UNIX accounts
are shared via NIS, et. al.
* allow winbindd to match local accounts to domain SID
when 'winbind trusted domains only = yes'
* remove code in idmap_ldap that searches the user
suffix and group suffix. It's not needed and
provides inconsistent functionality from the tdb backend.
This has been tested. I'm still waiting on some more feedback
but This needs to be in 3.0.1pre2 for widespread use.
Gerald Carter [Fri, 7 Nov 2003 14:32:25 +0000 (14:32 +0000)]
don't allow setting of the guest account
Volker Lendecke [Fri, 7 Nov 2003 10:11:48 +0000 (10:11 +0000)]
Implement %i-Macro for the locally used IP address. With this you can again
have virtual hosts with different configurations on a single smbd even on port
445.
Volker
Volker Lendecke [Fri, 7 Nov 2003 09:03:02 +0000 (09:03 +0000)]
Simple rename of get_socket_addr to get_peer_addr and get_socket_name to
get_peer_name. This is to get closer to the getsockname/getpeername system
functions.
Next step will be the %i macro for the local IP address. I still want to play
%L-games in times of port 445.
Volker
Andrew Bartlett [Fri, 7 Nov 2003 08:36:29 +0000 (08:36 +0000)]
I agree with vl's #if 0 here, and am not quite sure what I was
thinking with regard to the original code.
Let's keep samba simple, and just remove it.
Andrew Bartlett
Andrew Bartlett [Fri, 7 Nov 2003 08:34:43 +0000 (08:34 +0000)]
Remove compleatly wrong comments. (There were correct, 2 years ago...)
Andrew Bartlett
Andrew Bartlett [Fri, 7 Nov 2003 08:29:29 +0000 (08:29 +0000)]
Add newline to debug message
Richard Sharpe [Thu, 6 Nov 2003 23:37:58 +0000 (23:37 +0000)]
A fix to allow configure to find iconv on a number of systems including those
that don't have such support in glibc.
Tim Potter [Thu, 6 Nov 2003 22:11:08 +0000 (22:11 +0000)]
Final round of printf warnings fixes for the moment.
Jeremy Allison [Thu, 6 Nov 2003 22:07:12 +0000 (22:07 +0000)]
Fix bug #471. (const needed in lp_set_name_resolve_order).
Jeremy.
Tim Potter [Thu, 6 Nov 2003 22:02:36 +0000 (22:02 +0000)]
Ignore tallocdump binary. Previous commit was printf warning fixes and an
accidental commit of some other stuff I was working on.
Tim Potter [Thu, 6 Nov 2003 21:55:48 +0000 (21:55 +0000)]
Undo accidentally committed stuff.
Tim Potter [Thu, 6 Nov 2003 21:51:08 +0000 (21:51 +0000)]
Ignore tallocdump binary.
Gerald Carter [Thu, 6 Nov 2003 17:28:44 +0000 (17:28 +0000)]
run krb5 logins through the username map if the winbindd lookup fails; bug 698
Gerald Carter [Thu, 6 Nov 2003 17:23:47 +0000 (17:23 +0000)]
patch from MORIYAMA Masayuki to save LDFLAGS during iconv detection; bug 570
Tim Potter [Thu, 6 Nov 2003 16:58:33 +0000 (16:58 +0000)]
Undo last commit to get things building again.
Gerald Carter [Thu, 6 Nov 2003 05:46:06 +0000 (05:46 +0000)]
bug 624; make sure to set the GUEST SID rather than using the PDB_DEFAULT flag
Richard Sharpe [Thu, 6 Nov 2003 05:44:55 +0000 (05:44 +0000)]
Apply the patch to fix iconv detection for FreeBSD to the Samba 3.0.0 branch
as well.
Volker Lendecke [Wed, 5 Nov 2003 17:38:15 +0000 (17:38 +0000)]
Compile tdbdump by default.
Volker
Tim Potter [Wed, 5 Nov 2003 16:40:13 +0000 (16:40 +0000)]
Patch from James Henstridge to allow rpcclient adddriver command to specify
printer driver version. Closes bug #514.
Gerald Carter [Wed, 5 Nov 2003 04:34:31 +0000 (04:34 +0000)]
make sure that we expand %H (from vl); bug 612
Gerald Carter [Wed, 5 Nov 2003 04:17:21 +0000 (04:17 +0000)]
added note about stripping comments from LDIF; bug 642
Jeremy Allison [Wed, 5 Nov 2003 00:17:14 +0000 (00:17 +0000)]
Fix coredump in cli_get_backup_list.
Jeremy.
Jeremy Allison [Wed, 5 Nov 2003 00:16:01 +0000 (00:16 +0000)]
Fix debug message warning.
Jeremy.
Jeremy Allison [Wed, 5 Nov 2003 00:12:49 +0000 (00:12 +0000)]
Fix for bug #771. Fix packet length for browse list reply.
Jeremy.
Tim Potter [Tue, 4 Nov 2003 22:38:58 +0000 (22:38 +0000)]
Fix crash bug in smbclient completion. Closes bug #659.
Tim Potter [Tue, 4 Nov 2003 21:17:22 +0000 (21:17 +0000)]
Add ldaplibs to pdbedit link line. Fixes bug #651.
Tim Potter [Tue, 4 Nov 2003 20:09:44 +0000 (20:09 +0000)]
Use the actual size of the buffer in strftime instead of a made up value
which just happens to be less than sizeof(fstring). Closes #713.
Tim Potter [Tue, 4 Nov 2003 19:53:37 +0000 (19:53 +0000)]
Fix typo in debug statement.
Tim Potter [Tue, 4 Nov 2003 19:47:40 +0000 (19:47 +0000)]
Generate 64-bit clean printf's for build options.
Jeremy Allison [Tue, 4 Nov 2003 18:24:33 +0000 (18:24 +0000)]
Fix for bug #703, try lowercase netgroups lookups.
Jeremy.
Tim Potter [Tue, 4 Nov 2003 14:59:27 +0000 (14:59 +0000)]
Fix missing bracket in quota quote - my fault.
Tim Potter [Tue, 4 Nov 2003 05:49:23 +0000 (05:49 +0000)]
Use a static string instead of malloced one in winbind_{off,on}() utility
functions.
Jeremy Allison [Mon, 3 Nov 2003 21:05:47 +0000 (21:05 +0000)]
Fix for winbindd on HPUX from albert chin (china@thewrittenword.com)
Jeremy.