1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

10233 Commits

Author SHA1 Message Date
Andrew Bartlett
ec458fa87e Merge from HEAD - sync up SessionSetup code to HEAD, including Luke Howard's
session key and auth verifier patches.

Andrew Bartlett
(This used to be commit 3f9616a68a)
2003-03-17 22:45:16 +00:00
Andrew Bartlett
395b8937ac Merge from HEAD - doxygen
(This used to be commit 7a2566f2e9)
2003-03-17 22:43:57 +00:00
Andrew Bartlett
45d3e78547 Mege from HEAD - doxygen.
(This used to be commit 04a5cbc896)
2003-03-17 22:42:56 +00:00
Andrew Bartlett
467f1028f4 Merge from (earlier) HEAD - doxygen.
I'm not merging the current HEAD string stuff quite yet.
(This used to be commit 9b8d12e081)
2003-03-17 22:42:01 +00:00
Andrew Bartlett
aa4bfd4711 merge from HEAD - dump tokenGroups as sids.
(This used to be commit f0daa15521)
2003-03-17 22:41:14 +00:00
Andrew Bartlett
cf9fcaa98e pstrcpy_base merges for client-side smbpasswd.
Andrew Bartlett
(This used to be commit 980f2eb7c2)
2003-03-17 22:40:37 +00:00
Andrew Bartlett
c945a9c97f Merge from HEAD:
new 'net ads dn'

doxygen fixes

net help fixes.
(This used to be commit de24fcb097)
2003-03-17 22:33:34 +00:00
Andrew Bartlett
c320f72f43 Merge new statcache.c from HEAD.
(This used to be commit 3b9db928fc)
2003-03-17 22:23:51 +00:00
Volker Lendecke
b20eb4825b Fix memory leak.
Volker
(This used to be commit 115cd4b27f)
2003-03-17 22:10:49 +00:00
Tim Potter
4b0d055106 Fix building --with-smbwrapper.
(This used to be commit 1fb5c92bfb)
2003-03-17 11:54:12 +00:00
Gerald Carter
128e7edaaf fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing
(This used to be commit 7bc5fc729f)
2003-03-14 23:06:06 +00:00
Jeremy Allison
a3d7a1ea20 Fix off by one bug noticed by Andrew Bartlett.
Jeremy.
(This used to be commit 759aab9944)
2003-03-14 02:10:26 +00:00
Jeremy Allison
5ca8254f74 Merge from HEAD. 'win2000 can take much longer than the specified time to respond to a
lock - so to make the torture tests valid I give it a grace time of 10
seconds instead of 2'
Jeremy.
(This used to be commit 41571a69e0)
2003-03-13 07:58:54 +00:00
Jeremy Allison
71e94ca904 Merge from HEAD. 'fixed the unmarshalling of the queryaliasmem SAMR call'
Jeremy.
(This used to be commit 40def80d43)
2003-03-13 07:57:49 +00:00
Tim Potter
14672bed8f Merge of tdb_unlockeys() crash fix.
(This used to be commit 0eee7a4b1e)
2003-03-13 06:54:10 +00:00
Tim Potter
9c9384b774 Merge of added locking functions from HEAD.
(This used to be commit c759392968)
2003-03-13 06:52:23 +00:00
Tim Potter
06c665365e Merge of some commentary for getprinter info levels supported by win2k+
(This used to be commit 3026a5ef15)
2003-03-13 06:51:26 +00:00
Martin Pool
da3b671f77 In Valgrind 1.9.4, the headers have moved to <valgrind/valgrind.h>,
etc.  So check for that as well as the old names when including macros
and conditionally defining -DVALGRIND.
(This used to be commit 054ed6d86d)
2003-03-13 06:48:06 +00:00
Jeremy Allison
dbe2858b86 Change size parameters from signed to unsigned to fix up warnings.
Jeremy.
(This used to be commit 33b11d5eb5)
2003-03-13 00:51:05 +00:00
Jeremy Allison
30d1059b7a Merge of Andrew Bartlett's SID limit fix from HEAD.
Jeremy.
(This used to be commit 98ed7e0cbb)
2003-03-13 00:50:04 +00:00
Andrew Tridgell
a412ed39de fixed a strcat noticed by metze
(This used to be commit 533fe94db9)
2003-03-12 21:02:45 +00:00
Jeremy Allison
a03a4db8ae Ensure we count the length correctly in mangle_map.
Jeremy.
(This used to be commit 8e956bc1d6)
2003-03-12 19:07:49 +00:00
Gerald Carter
fd56ede2b6 adding some initiaial code to sert %a to Win2K3 (using Native LanMan string from .NET RC2)
(This used to be commit e074cab810)
2003-03-12 15:41:39 +00:00
Jeremy Allison
834da49f63 We use unsigned now, so use %u.
Jeremy.
(This used to be commit 65c2a361a4)
2003-03-11 20:58:10 +00:00
Jeremy Allison
71708c9c07 Fix up zero termination. Spotted by Sebastian Krahmer <krahmer@suse.de>.
Jeremy.
(This used to be commit 289e2e25b9)
2003-03-11 18:10:27 +00:00
Martin Pool
d606f8cb1e When opening an existing DB, don't require the hash_size specified to
the open call to be the same as that of the existing tdb.  The
specified hash_size is only used if the tdb needs to be (re)created.

With this patch in place, tdbtool can open the printing tdbs, which
are created with a hash_size of 5000.  Before it would fail with EIO.
(This used to be commit 7090d9f693)
2003-03-11 04:41:22 +00:00
Martin Pool
4724780212 Patch from Ronan Waide:
> when doing "enumdomusers", rpcclient prints each one preceded by the
> word "group" instead of "user"
(This used to be commit 0e9a2f41df)
2003-03-11 03:41:21 +00:00
Tim Potter
7da4263014 Remove obsolete file.
(This used to be commit 560deeb4ec)
2003-03-11 02:32:03 +00:00
Volker Lendecke
8d563a985b strcpy_base from HEAD and trivial fix for smbclient -L
Volker
(This used to be commit 54c99ee1fb)
2003-03-10 16:54:57 +00:00
Gerald Carter
c44e39065c check a pointer before dereferencing it; not sure why userdata == NULL though
(This used to be commit 944752024b)
2003-03-10 15:04:29 +00:00
Martin Pool
3b4bc027f3 Use "$@" to preserve shell quoting in case somebody passes an escaped
string as a configure parameter.
(This used to be commit 10b2de7ebd)
2003-03-10 03:05:20 +00:00
Jeremy Allison
e613c18ee7 Fix typo in earlier fix, caught by Ranjit @ HP.
Jeremy.
(This used to be commit 11077368ec)
2003-03-08 01:16:33 +00:00
Jeremy Allison
2fd693e13e Use ERROR_NT, not ERROR_DOS as Andrew Bartlett pointed out.
Jeremy.
(This used to be commit 723e9ee31c)
2003-03-07 23:34:51 +00:00
Jeremy Allison
95381baefd Extra const committed by mistake - revert.
Jeremy.
(This used to be commit 183ce97d37)
2003-03-07 19:46:24 +00:00
Jeremy Allison
0f30afc912 Missed parentheses around complex logic.
Jeremy.
(This used to be commit 7f8d3a49b2)
2003-03-07 19:46:00 +00:00
Jeremy Allison
e9f51a6e38 Patch from Michael Steffens. In his own words :
-------------------------------------------------------------------------
I think there are basically two problem:

  1. Windows clients do not always send ACEs for SMB_ACL_USER_OBJ, SMB_ACL_GROUP_OBJ,
     and SMB_ACL_OTHER.
     The function ensure_canon_entry_valid() is prepared for that, but tries
     to "guess" values from group or other permissions, respectively, otherwise
     falling back to minimum r-- for the owner. Even if the owner had full
     permissions before setting ACL. This is the problem with W2k clients.

  2. Function set_nt_acl() always chowns *before* attempting to set POSIX ACLs.
     This is ok in a take-ownership situation, but must fail if the file is
     to be given away. This is the problem with XP clients, trying to transfer
     ownership of the original file to the temp file.

The problem with NT4 clients (no ACEs are transferred to the temp file, thus
are lost after moving the temp file to the original name) is a client problem.
It simply doesn't attempt to.

I have played around with that using posic_acls.c from 3.0 merged into 2.2.
As a result I can now present two patches, one for each branch. They
basically modify:

  1. Interpret missing SMB_ACL_USER_OBJ, SMB_ACL_GROUP_OBJ, or SMB_ACL_OTHER
     as "preserve current value" instead of attempting to build one ourself.
     The original code is still in, but only as fallback in case current values
     can't be retrieved.

  2. Rearrange set_nt_acl() such that chown is only done before setting
     ACLs if there is either no change of owning user, or change of owning
     user is towards the current user. Otherwise chown is done after setting
     ACLs.

It now seems to produce reasonable results. (Well, as far as it can. If
NT4 doesn't even try to transfer ACEs, only deliberate use of named default
ACEs and/or "force group" or the crystal ball can help :)
-------------------------------------------------------------------------
Jeremy.
(This used to be commit 1d3b8c528b)
2003-03-07 19:37:31 +00:00
Jeremy Allison
97d25a7374 Fix noticed by Corny.Bondad@hp.com. Ensure we free up memory on error exit.
Jeremy.
(This used to be commit 05a8a61af8)
2003-03-07 00:35:24 +00:00
Jeremy Allison
442a55b6b4 Found at Connectathon, .NET RC1 arranges trans/trans2/nttrans parameters
differently to W2K, cope with this.
Jeremy.
(This used to be commit 5e2755508f)
2003-03-07 00:30:47 +00:00
Gerald Carter
ccb58b303a add #define for the max device name length in a DEVICEMODE
(This used to be commit 52ef84b534)
2003-03-06 16:09:11 +00:00
Jeremy Allison
211dd28a7a More const fixes.
Jeremy.
(This used to be commit fa93763248)
2003-03-05 01:34:34 +00:00
Jeremy Allison
d45fe965ef Writable string const fixes.
Jeremy.
(This used to be commit c832e95c2f)
2003-03-05 01:30:15 +00:00
Jeremy Allison
6626fef5d4 Fix for little-used lpq parser.
Jeremy.
(This used to be commit 75b36459ab)
2003-03-05 00:54:47 +00:00
Jeremy Allison
6f4aee34d9 Connectathon fix. W2K -> W2K over port 445 doing a tconX does the full
\\server\share syntax, not just a "share" tconX syntax. This broke interop
with a vendor.
Jeremy.
(This used to be commit 3cc2ace771)
2003-03-05 00:54:16 +00:00
Gerald Carter
7c03402c8a preparing for release of 3.0alpha22
(This used to be commit f5c9895f83)
2003-03-04 19:39:19 +00:00
Richard Sharpe
e3fdd289f5 More janitorial duties, fixing the BIG_UINT changes for large offsets.
(This used to be commit 1af39523cc)
2003-03-03 23:00:22 +00:00
Jeremy Allison
28074d957a Const warning fixes.
Jeremy.
(This used to be commit 30e8ae8e03)
2003-03-03 20:12:37 +00:00
Jeremy Allison
52d1dd46d2 Fix const warning.
Jeremy.
(This used to be commit dedc18212a)
2003-03-03 19:56:57 +00:00
Jeremy Allison
8ce11aee91 dlysym takes a const char *.
Jeremy.
(This used to be commit 54e5413a92)
2003-03-03 19:52:27 +00:00
Gerald Carter
cc7f40f4b7 * always report ourselves as a Windows 2000 print server (even
without ADS support)
* add "MinorVersion" print server data key and comment on "OSVersion"
(This used to be commit e138336816)
2003-03-03 17:32:55 +00:00
Gerald Carter
d95f1e4260 * CR1868: only send a change notify message if we have something
that changed that the client is monitoring.

* couple of comments abnout how we need to validate driver names
  on SetPrinter() and AddPrinter()

* up the debug level on some overly verbose dev mode parsing messages
(This used to be commit e8939165b7)
2003-03-03 16:32:03 +00:00