1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-18 17:57:55 +03:00

10939 Commits

Author SHA1 Message Date
Simo Sorce
8338e74ac4 initial work for the new idmpa interface -
Jeremy Allison
c0930e6d15 Use ERROR_NT, not ERROR_DOS as Andrew Bartlett pointed out.
Jeremy.
-
Steve French
b20bcf8d33 Add early prototype of cifs mount helper for Linux -
Jeremy Allison
e81427c2d6 Missed parentheses around complex logic.
Jeremy.
-
Jeremy Allison
8ec20cbae7 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.
-
Simo Sorce
4c6d461a85 Some progress towards gums and tdbsam2
genparser works fine, and it is a marvelous tool to store objects in tdb :)
-
Andrew Bartlett
0ebccc0dbe Limit the number of SIDs that may be looked up, in line with existing code
for name->sid.
-
Andrew Bartlett
1f605fe77c safe_strcpy() -> fstrcpy() fix, and a cleanup to how rpcclient calls the
IP address resolving code.
-
Jeremy Allison
1cbd53dc3c Fix noticed by Corny.Bondad@hp.com. Ensure we free up memory on error exit.
Jeremy.
-
Jeremy Allison
172f415c9e Found at Connectathon, .NET RC1 arranges trans/trans2/nttrans parameters
differently to W2K, cope with this.
Jeremy.
-
Jelmer Vernooij
d41dbe568e Add documentation on line returned by 'add printer command' script -
Jelmer Vernooij
401a522d88 Redirect to printer docs for removed options -
Gerald Carter
21ec2b6ba3 add #define for the max device name length in a DEVICEMODE -
Andrew Bartlett
8863ff863c Make smbtorture use the same cli_full_connection() framework as the rest of
Samba.  This fixes things like not doing *SMBSERVER etc.

Andrew Bartlett
-
Andrew Bartlett
d8d2d5e755 more off-by-one safe_strcpy() -
Andrew Bartlett
42b5514404 More safe_strcpy() off-by-one bug fixes. (mostly moves to pstrcpy()/fstrcpy())
Andrew Bartlett
-
Martin Pool
a387c42097 FIXME about crash on failure case. -
Richard Sharpe
460339db22 Add *SMBSERVER fallback code to smbtorture ... -
Richard Sharpe
1128a2fb4c Add code to allow us to specify the port to connect on when performing
a test ...
-
Andrew Bartlett
cdc6139a96 Use new configure test to turn on this automated test for correct string
function usage.

Andrew Bartlett
-
Andrew Bartlett
762d61b37d A couple more fixes for fstrcpy() into a malloced region. In this case it's
all perfectly legit - the region is an fstring in length, but might not
always be, and it is the last peice of code to fail my automated test.

Andrew Bartlett
-
Andrew Bartlett
ce618624b7 Add a test for a useful property of the compiler - we can get link-time
failures for some compile-time properties this way.

Andrew Bartlett
-
Andrew Bartlett
243c9c37a5 also ignore the autom4te-2.53.cache -
Andrew Bartlett
96d1449c42 This file has not been maintained for a while - if we really want this
behaviour we should seperate -g from --enable-developer, and allow developers
to also select --enable-debug if they want.

Andrew Bartlett
-
Martin Pool
b32ae2d83f lp_string: Add note about dodgy StrnCpy use. -
Tim Potter
992b5eb4e0 Use PRINTER_ALL_ACCESS instead of MAXIMUM_ALLOWED_ACCESS in setprinter
command.  From Ronan Waide <waider@waider.ie>.
-
Jeremy Allison
7b945e10a6 More const fixes.
Jeremy.
-
Jeremy Allison
60b0cfc8a5 Writable string const fixes.
Jeremy.
-
Jeremy Allison
9d7ea5585c 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.
-
Andrew Bartlett
6c43327ea2 Fix another 'off by one' bug with safe_strcpy(). It is unclear if the intent
was to limit the string to 31 or 32 characters (excluding the null term), so
I've assumed for now that 32 is fine, as this matches current behaviour (well, current behaviour would crash, but anyway...)

Jerry:  Can you look at this for me?

Andrew Bartlett
-
Andrew Bartlett
bd0c84d60b Another pstrcpy() into malloc()ed buffer fix.
Andrew Bartlett
-
Jeremy Allison
3ad62ebe26 Const warning fixes.
Jeremy.
-
Jeremy Allison
ff3827a62b dlsym takes a const char *.
Jeremy.
-
Jeremy Allison
a670b57c56 Fix "might be used uninitialised" warnings.
Jeremy.
-
Richard Sharpe
c416eec2f2 Do my janitorial duties to encourage others to do so.
Fix lingering large offset problems in smbtar etc.
-
Gerald Carter
342734e3de * always report ourselves as a Windows 2000 print server (even
without ADS support)
* add "MinorVersion" print server data key and comment on "OSVersion"
-
Gerald Carter
7377d671e8 * 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
-
Andrew Bartlett
14d7d8b229 Try the PASSWD environment variable if we don't have one from the command line. -
Andrew Bartlett
03e74be11c Fixes to the vfs_fake_perms modules - we only need to specify the VFS
functions that we actually modify.

Also a better implementation of the stat() and fstat() functions.

Andrew Bartlett
-
Andrew Bartlett
251b91f469 Add const -
Andrew Tridgell
e8ec2b1180 i forgot to commit the privilege db init call -
Jeremy Allison
4a739d914b Added limit to number of jobs enumerated. Set to 0 (means no limit).
Yes I will add the docs....
Jeremy.
-
Andrew Tridgell
50389c0cb2 the new DEVELOPER checks for string overflows have (as expected)
broken a lot of stuff. These two macros are meant to make life easier
when fixing these bugs. I'm guessing we will see more macros like
this (eg. fstrcpy_base)
-
Jeremy Allison
d29c6853dd Ensure added jobs increment total_jobs.
Jeremy.
-
Jelmer Vernooij
3780d12731 Fix HTTP error codes (patch by Vance Lankhaar) -
Andrew Tridgell
7dfd59963d fixed a crash bug in the new winbindd 'sids rule!' code -
Martin Pool
a4b9c5c257 Doxygen janitor: add note that strequal is in fact case-insensitive. -
Andrew Tridgell
ee8a7fdab7 - added help on -P option
- added general options to 'net -h' help
-
Martin Pool
9af0717315 Doxygen janitor -
Martin Pool
42d9ec28cd Doxygen janitor: fix parameter names, grammar, tag names. -