Jeremy Allison [Mon, 29 Mar 2004 23:42:48 +0000 (23:42 +0000)]
Committed test code by mistake... removing.
Jeremy.
Jeremy Allison [Mon, 29 Mar 2004 23:39:13 +0000 (23:39 +0000)]
Setting EA's to zero length deletes them.
Jeremy.
Jeremy Allison [Mon, 29 Mar 2004 22:21:47 +0000 (22:21 +0000)]
Fix get/set of EA's in client library. Added torture test for it.
Jeremy.
Volker Lendecke [Mon, 29 Mar 2004 11:54:34 +0000 (11:54 +0000)]
Without words...
Volker Lendecke [Mon, 29 Mar 2004 11:40:43 +0000 (11:40 +0000)]
Some fixes to expand_msdfs module.
Volker
Andrew Tridgell [Sun, 28 Mar 2004 02:19:58 +0000 (02:19 +0000)]
merge tdb changes from samba4 - this means tdb is now under the LGPL, as discussed and agreed previously
Andrew Bartlett [Sat, 27 Mar 2004 10:32:59 +0000 (10:32 +0000)]
Let the comment match the function...
Andrew Bartlett
Andrew Bartlett [Sat, 27 Mar 2004 08:51:04 +0000 (08:51 +0000)]
Revert bogus part of smb signing commit - when Win2k supports singing/SPNEGO,
it does sign the first packet.
Andrew Bartlett
Andrew Bartlett [Sat, 27 Mar 2004 08:43:09 +0000 (08:43 +0000)]
Add a few comments explaining KEY_EXCH
Andrew Bartlett
Andrew Bartlett [Sat, 27 Mar 2004 07:53:47 +0000 (07:53 +0000)]
Based on the detective work of Jianliang Lu <j.lu@tiesse.com>, allow yet
another NTLMv2 combination.
We should allow the NTLMv2 response to be calculated with either the domain
as supplied, or the domain in UPPER case (as we always did in the past).
As a client, we always UPPER case it (as per the spec), but we also
make sure to UPPER case the domain, when we send it. This should give
us maximum compatability.
Andrew Bartlett
Andrew Bartlett [Sat, 27 Mar 2004 07:51:31 +0000 (07:51 +0000)]
Make it clearer that this error refers to the peer, as this code is in both
the client and server.
Andrew Bartlett
Andrew Bartlett [Sat, 27 Mar 2004 07:33:59 +0000 (07:33 +0000)]
Merge from HEAD the SMB signing patch that I developed a couple of weeks
ago.
This patch re-adds support for 'optional' SMB signing. It also ensures that
we are much more careful about when we enable signing, particularly with
on-the-fly smb.conf reloads.
The client code will now attempt to use smb signing by default, and disable
it if the server doesn't correctly support it.
Andrew Bartlett
Andrew Bartlett [Sat, 27 Mar 2004 05:39:19 +0000 (05:39 +0000)]
Ensure we correctly set cli->nt_pipe_fnum on failure to correctly open the
NT session.
Andrew Bartlett
Andrew Bartlett [Sat, 27 Mar 2004 05:38:20 +0000 (05:38 +0000)]
As I raised (without objection) on the mailing list a while back, this
patch removes the 'unicode' smb.conf option.
Clients are as always free not to negotiate unicode, but Samba will always
accept unicode in smbd.
Setting 'unicode = no' caused me more client BSODs than any other option
I have seen, and I really want to protect some of our more silly users, who
will, no matter what, select and change every option...
Andrew Bartlett
Jeremy Allison [Sat, 27 Mar 2004 02:13:58 +0000 (02:13 +0000)]
Working (tested) client code for setting EA's by filename and fnum.
Now for parsing out the retrieved EA's.
Jeremy.
Jeremy Allison [Fri, 26 Mar 2004 23:02:53 +0000 (23:02 +0000)]
Fix bug #1211. Ensure accept socket is in non-blocking state in case of network
error after select() returns true. (See accept man page on Linux). Patch from
rabies@meep.org (Richard Garnish).
Jeremy.
Volker Lendecke [Fri, 26 Mar 2004 22:26:33 +0000 (22:26 +0000)]
Move the Client-IP based msdfs target expansion to a VFS module.
Volker
Jeremy Allison [Fri, 26 Mar 2004 20:40:30 +0000 (20:40 +0000)]
Always use strchr_m, not strchr on unix character sets.
Jeremy.
Volker Lendecke [Fri, 26 Mar 2004 17:58:30 +0000 (17:58 +0000)]
After briefly talking to jerry, commit this:
Redirect clients to shares based on the the client's IP address. The msdfs
link has the following form:
temp1 -> msdfs:@/data/tmp/redir@\temp
The file /data/tmp/redir has the contents:
192.168.234.128 closest
192.168.234 close
default
Everything in between the @-signs in the link target is replaced by the
substituion in the file.
Jerry, errors in the filename expansion are now answered with
NT_STATUS_OBJECT_NAME_NOT_FOUND
Volker
Gerald Carter [Fri, 26 Mar 2004 15:40:06 +0000 (15:40 +0000)]
source code fix for bug 1095 -- honor the '-l' option
Jim McDonough [Thu, 25 Mar 2004 18:25:41 +0000 (18:25 +0000)]
Use timegm, or our already existing replacement instead of timezone, as
some platforms (FreeBSD in this case) don't define timezone according to
posix. This is what I wanted to do anyway.
Spotted by Andrzej Tobola <san@iem.pw.edu.pl>
Gerald Carter [Thu, 25 Mar 2004 14:41:56 +0000 (14:41 +0000)]
jra's patch -- fix anonymous self referral code to check that a share is an msdfs root first
Tim Potter [Wed, 24 Mar 2004 23:52:11 +0000 (23:52 +0000)]
Path for bugzilla #1152 from Timur Bakeyev. Allow python modules to
build despite libraries added to LDFLAGS instead of LDPATH.
Gerald Carter [Wed, 24 Mar 2004 19:15:17 +0000 (19:15 +0000)]
fixes for prnadmin.dll API
* force the PRINTER_ATTRIBUTE_LOCAL (nor PRINTER_ATTRIBUTE_NETWORK)
* ensure that we return the sec_desc in smb_io_printer_info_2
(allows prnui.dll to restore security descriptors from a data file).
Jim McDonough [Wed, 24 Mar 2004 17:32:55 +0000 (17:32 +0000)]
Fix bugzilla # 1208
Winbind tickets expired. We now check the expiration time, and acquire
new tickets. We couln't rely on renewing them, because if we didn't get
a request before they expired, we wouldn't have renewed them. Also, there
is a one-week limit in MS on renewal life, so new tickets would have been
needed after a week anyway. Default is 10 hours, so we should only be
acquiring them that often, unless the configuration on the DC is changed (and
the minimum is 1 hour).
Stefan Metzmacher [Wed, 24 Mar 2004 13:41:06 +0000 (13:41 +0000)]
change my email address to the samba.org one
metze
Jeremy Allison [Wed, 24 Mar 2004 03:48:08 +0000 (03:48 +0000)]
Added cli_set_ea(), cli_get_ea next...
Jeremy.
Gerald Carter [Mon, 22 Mar 2004 23:12:07 +0000 (23:12 +0000)]
adding commit messages for recent changes
Gerald Carter [Mon, 22 Mar 2004 23:05:02 +0000 (23:05 +0000)]
remove unused variable
Gerald Carter [Mon, 22 Mar 2004 22:57:21 +0000 (22:57 +0000)]
missed one on BUG 1195; make sure to set the private * to NULL
Gerald Carter [Mon, 22 Mar 2004 22:50:27 +0000 (22:50 +0000)]
BUG 1185: use 'winbind cache time' as the reconnect period when seq_num == -1 rather than multiplying it by 8 (the default cache time is 5 minutes now)
Gerald Carter [Mon, 22 Mar 2004 22:49:40 +0000 (22:49 +0000)]
bug 1195: add flag to ADS_STRUCT so we know who owns the main structure's memory (not the members though)
Andrew Bartlett [Sun, 21 Mar 2004 08:43:41 +0000 (08:43 +0000)]
Given how often a panic has to do with malloc() problems, don't tempt
things more by calling SAFE_FREE() just before we exit our panic handler.
Andrew Bartlett
Gerald Carter [Sat, 20 Mar 2004 13:50:03 +0000 (13:50 +0000)]
removing duplicate smbprint example script
Jeremy Allison [Fri, 19 Mar 2004 23:46:48 +0000 (23:46 +0000)]
Fix for #1064 - ensure truncate attribute checking is done correctly on "hidden" dot files.
Jeremy.
Gerald Carter [Fri, 19 Mar 2004 22:24:23 +0000 (22:24 +0000)]
starting WHATSNEW for 3.0.3pre2
Gerald Carter [Fri, 19 Mar 2004 22:06:54 +0000 (22:06 +0000)]
BUG 417: fix %UuGg variables expansion in include lines setging the current_user_info struct in register_vuid() -- shouldn't be any more broken than we were
Gerald Carter [Fri, 19 Mar 2004 18:59:06 +0000 (18:59 +0000)]
removing working when install swat since the installswat.sh is fixed now
Gerald Carter [Fri, 19 Mar 2004 17:48:08 +0000 (17:48 +0000)]
missed some of Derrel's changes
cvs2svn Import User [Fri, 19 Mar 2004 17:36:57 +0000 (17:36 +0000)]
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.
Richard Sharpe [Fri, 19 Mar 2004 17:36:56 +0000 (17:36 +0000)]
Apply some more of Derrell Lipman's changes.
Gerald Carter [Fri, 19 Mar 2004 16:59:59 +0000 (16:59 +0000)]
add --with-libdir and --with-mandir (patch from Guenther Deschner)
Gerald Carter [Fri, 19 Mar 2004 16:58:16 +0000 (16:58 +0000)]
add --with-libdir and --with-mandir (patch from Guenther Deschner)
Gerald Carter [Fri, 19 Mar 2004 16:23:54 +0000 (16:23 +0000)]
bumping version to 3.0.3pre2
Gerald Carter [Fri, 19 Mar 2004 16:22:47 +0000 (16:22 +0000)]
updating release notes & merging Derrel Lipman's libsmbclient patch from HEAD
Gerald Carter [Fri, 19 Mar 2004 16:21:50 +0000 (16:21 +0000)]
cleaning up a few compiler warngings
Gerald Carter [Fri, 19 Mar 2004 15:52:16 +0000 (15:52 +0000)]
wrap cli_tdis() in check to make sure we have a valid cnum
Simo Sorce [Fri, 19 Mar 2004 14:31:09 +0000 (14:31 +0000)]
add privileges support to ldapsam too
Simo Sorce [Fri, 19 Mar 2004 11:28:36 +0000 (11:28 +0000)]
backport from head
Simo Sorce [Fri, 19 Mar 2004 11:27:14 +0000 (11:27 +0000)]
the buffer must be greater then src string len otherwise bad things happen!
Jeremy Allison [Fri, 19 Mar 2004 01:29:18 +0000 (01:29 +0000)]
Fix gcc warnings. Fix mkproto with new type.
Jeremy.
Jeremy Allison [Fri, 19 Mar 2004 01:29:14 +0000 (01:29 +0000)]
Fix gcc warnings. Fix mkproto with new type.
Jeremy.
Jeremy Allison [Thu, 18 Mar 2004 23:45:15 +0000 (23:45 +0000)]
Merge from HEAD for Amanda group.
Apply Craig Barratt's fixes to allow multiple exlusion files and patterns.
Jeremy.
Richard Sharpe [Thu, 18 Mar 2004 22:29:54 +0000 (22:29 +0000)]
Apply Craig Barratt's fixes to allow multiple exlusion files and patterns.
Much of this was applied by hand because of the changes in the code. However,
it builds and smbclient seems to work still. The Amanda folks are testing
and it seems to work there as well.
Jim McDonough [Thu, 18 Mar 2004 20:05:00 +0000 (20:05 +0000)]
merge from 3.0...LDAP password lockout support
Jim McDonough [Thu, 18 Mar 2004 19:22:51 +0000 (19:22 +0000)]
Password lockout for LDAP backend. Caches autolock flag, bad count, and
bad time locally, updating the directory only for hitting the policy limit
or resetting.
This needed to be done at the passdb level rather than auth, because some
of the functions need to be supported from tools such as pdbedit. It was
done at the LDAP backend level instead of generically after discussion,
because of the complexity of inserting it at a higher level.
The login cache read/write/delete is outside of the ldap backend, so it could
easily be called by other backends. tdbsam won't call it for obvious
reasons, and authors of other backends need to decide if they want to
implement it.
Gerald Carter [Thu, 18 Mar 2004 18:10:30 +0000 (18:10 +0000)]
BUG 932: ulrich@holeschak.de (Ulrich Holeschak); fix local password change using pam_smbpass
Gerald Carter [Thu, 18 Mar 2004 18:09:59 +0000 (18:09 +0000)]
BUG 932: ulrich@holeschak.de (Ulrich Holeschak); fix local password change using pam_smbpass
Jeremy Allison [Thu, 18 Mar 2004 17:58:50 +0000 (17:58 +0000)]
Correctness patch from fumiya@miraclelinux.com to count characters correctly,
doesn't affect what got put on the wire.
Jeremy.
Jeremy Allison [Thu, 18 Mar 2004 17:58:47 +0000 (17:58 +0000)]
Correctness patch from fumiya@miraclelinux.com to count characters correctly,
doesn't affect what got put on the wire.
Jeremy.
Richard Sharpe [Thu, 18 Mar 2004 17:11:52 +0000 (17:11 +0000)]
Commit Derrell Lipman's changes and fixes to libsmbclient. The build but
I have not tested them beyond building. I did fix the two instances of
safe_strxxx that were introduced.
Gerald Carter [Thu, 18 Mar 2004 16:50:01 +0000 (16:50 +0000)]
updating release notes in preparation fro 3.0.3pre1
Volker Lendecke [Thu, 18 Mar 2004 07:38:56 +0000 (07:38 +0000)]
Fix sambaUserWorkstations on a Samba DC
Volker Lendecke [Thu, 18 Mar 2004 07:37:39 +0000 (07:37 +0000)]
Fix sambaUserWorkstations for network samlogons against us as DC. Strip
the \\ off the workstation.
Volker
Volker Lendecke [Thu, 18 Mar 2004 07:36:36 +0000 (07:36 +0000)]
Fix sambaUserWorkstations for network samlogons against us as DC. Strip
the \\ off the workstation.
Volker
Volker Lendecke [Thu, 18 Mar 2004 07:33:26 +0000 (07:33 +0000)]
Two little annoyances:
net rpc did not inform you if no smbd is running.
I never liked the error message (!) Success! when we established a trust.
Volker
Volker Lendecke [Thu, 18 Mar 2004 07:32:15 +0000 (07:32 +0000)]
Two little annoyances:
net rpc did not inform you if no smbd is running.
I never liked the error message (!) Success! when we established a trust.
Volker
Jeremy Allison [Thu, 18 Mar 2004 02:17:23 +0000 (02:17 +0000)]
Added a varient of Volker's patch to fix the "self-referrals as anonymous user"
problem.
Jeremy.
Jeremy Allison [Thu, 18 Mar 2004 02:17:20 +0000 (02:17 +0000)]
Added a varient of Volker's patch to fix the "self-referrals as anonymous user"
problem.
Jeremy.
Jeremy Allison [Wed, 17 Mar 2004 19:23:48 +0000 (19:23 +0000)]
Remove excess logging when probing for the length of the next mb char.
Jeremy.
Jeremy Allison [Wed, 17 Mar 2004 19:23:44 +0000 (19:23 +0000)]
Remove excess logging when probing for the length of the next mb char.
Jeremy.
Gerald Carter [Wed, 17 Mar 2004 17:39:00 +0000 (17:39 +0000)]
asu/syntax/pc_netlink doesn't fill in the pipe name in the rpc_bind response so dont check for it
Gerald Carter [Wed, 17 Mar 2004 17:38:38 +0000 (17:38 +0000)]
asu/syntax/pc_netlink doesn't fill in the pipe name in the rpc_bind response so dont check for it
Gerald Carter [Wed, 17 Mar 2004 17:13:36 +0000 (17:13 +0000)]
BUG 758 -- patch from jpeach@sgi.com (James Peach); fix pdma build
Gerald Carter [Wed, 17 Mar 2004 17:13:26 +0000 (17:13 +0000)]
BUG 758 -- patch from jpeach@sgi.com (James Peach); fix pdma build
Jeremy Allison [Wed, 17 Mar 2004 02:08:31 +0000 (02:08 +0000)]
Change check_path_syntax() to use the new next_mb_char_size() function
to make it generic. Remove the mb-codepage "blacklist". Alexander, please
check this fix as it reverts your blacklist changes, but I'm hoping it
fixes the problem in a more generic way for all charsets. I'm not trying
to trample on your (excellent!) work here, just make things more generic
without special cases.
Jeremy.
Jeremy Allison [Wed, 17 Mar 2004 02:08:27 +0000 (02:08 +0000)]
Change check_path_syntax() to use the new next_mb_char_size() function
to make it generic. Remove the mb-codepage "blacklist". Alexander, please
check this fix as it reverts your blacklist changes, but I'm hoping it
fixes the problem in a more generic way for all charsets. I'm not trying
to trample on your (excellent!) work here, just make things more generic
without special cases.
Jeremy.
Jeremy Allison [Tue, 16 Mar 2004 21:59:20 +0000 (21:59 +0000)]
Add function next_mb_char_size() that returns a size_t of the number of
bytes in the mb character at a pointer. Will be useful in fixing check_path_syntax()
to not use a "blacklist". Also re-added my (C) to reply.c. I mean, really - I've
been adding code to the file for over 10 years and I recognise many of the
fuctions as mine ! :-).
Jeremy.
Jeremy Allison [Tue, 16 Mar 2004 21:59:11 +0000 (21:59 +0000)]
Add function next_mb_char_size() that returns a size_t of the number of
bytes in the mb character at a pointer. Will be useful in fixing check_path_syntax()
to not use a "blacklist". Also re-added my (C) to reply.c. I mean, really - I've
been adding code to the file for over 10 years and I recognise many of the
fuctions as mine ! :-).
Jeremy.
Gerald Carter [Tue, 16 Mar 2004 20:32:14 +0000 (20:32 +0000)]
merges from 3.0
Gerald Carter [Tue, 16 Mar 2004 20:28:47 +0000 (20:28 +0000)]
fix overlapping memory bug when copying username
Gerald Carter [Tue, 16 Mar 2004 19:44:40 +0000 (19:44 +0000)]
BUG 748 - patch from jpeach@sgi.com (James Peach); relax arg parsing to sambalp script
Gerald Carter [Tue, 16 Mar 2004 19:43:04 +0000 (19:43 +0000)]
BUG 768 - patch from jpeach@sgi.com (James Peach); accept profileing arg to init script
Gerald Carter [Tue, 16 Mar 2004 19:06:30 +0000 (19:06 +0000)]
BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinrich Mislik)
Gerald Carter [Tue, 16 Mar 2004 19:06:03 +0000 (19:06 +0000)]
BUG 979 -- fix quota display on AIX; patch from Heinrich.Mislik@univie.ac.at (Heinrich Mislik)
Gerald Carter [Tue, 16 Mar 2004 18:54:09 +0000 (18:54 +0000)]
BUG 1182: patch from john.klinger@lmco.com (John Klinger) to reanable the -n 'no cache' option for winbindd
Alexander Bokovoy [Tue, 16 Mar 2004 17:21:06 +0000 (17:21 +0000)]
Fix check_path_syntax() for multibyte encodings which have no '\' as second byte.
This is intermediate fix as discussed with Jeremy until we move check_path_syntax() to UCS2 internally where all
ambiguity is resolved. Please add other encodings into charcnv.c with such property.
Alexander Bokovoy [Tue, 16 Mar 2004 17:18:57 +0000 (17:18 +0000)]
Fix check_path_syntax() for multibyte encodings which have no '\' as second byte.
This is intermediate fix as discussed with Jeremy until we move check_path_syntax() to UCS2 internally where all
ambiguity is resolved. Please add other encodings into charcnv.c with such property.'
'
Gerald Carter [Tue, 16 Mar 2004 17:07:18 +0000 (17:07 +0000)]
merging print change notify fix from HP appliance. Also might address some one the issues in BUG 1007
Gerald Carter [Tue, 16 Mar 2004 17:06:11 +0000 (17:06 +0000)]
merging print change notify fix from HP appliance. Also might address some one the issues in BUG 1007
Gerald Carter [Tue, 16 Mar 2004 16:44:54 +0000 (16:44 +0000)]
BUG 1165, 1126: Fix bug with secondary groups (security = ads) and winbind use default domain = yes
Gerald Carter [Tue, 16 Mar 2004 16:41:54 +0000 (16:41 +0000)]
BUG 1165, 1126: Fix bug with secondary groups (security = ads) and winbind use default domain = yes
Richard Sharpe [Tue, 16 Mar 2004 06:56:20 +0000 (06:56 +0000)]
Make sure we don't clobber the stack when response consists of the empty
string.
Jeremy Allison [Tue, 16 Mar 2004 00:10:34 +0000 (00:10 +0000)]
Avoid mb conversion overflow when sending an announcement.
Jeremy.
Jeremy Allison [Tue, 16 Mar 2004 00:10:30 +0000 (00:10 +0000)]
Avoid mb conversion overflow when sending an announcement.
Jeremy.
Jeremy Allison [Mon, 15 Mar 2004 21:53:59 +0000 (21:53 +0000)]
Use "unix netbios name" type unstring - 64 bytes long to manipulate netbios
names in nmbd. Allows conversion from dos codepage mb strings (ie. SJIS) to
expand to utf8 size on read.
Jeremy.
Jeremy Allison [Mon, 15 Mar 2004 21:45:45 +0000 (21:45 +0000)]
Use "unix netbios name" type unstring - 64 bytes long to manipulate netbios
names in nmbd. Allows conversion from dos codepage mb strings (ie. SJIS) to
expand to utf8 size on read.
Jeremy.
Gerald Carter [Mon, 15 Mar 2004 16:20:22 +0000 (16:20 +0000)]
removing extra comma in --with-fhs
Gerald Carter [Mon, 15 Mar 2004 16:20:03 +0000 (16:20 +0000)]
removing extra comma in --with-fhs
Gerald Carter [Mon, 15 Mar 2004 16:17:51 +0000 (16:17 +0000)]
more fixes from 3.0