1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

10948 Commits

Author SHA1 Message Date
Andrew Bartlett
8ccff3e995 This is C, not C++
(This used to be commit 25d210b90b6c0377046d89a1dce7a32f94fd7859)
2003-03-08 23:39:44 +00:00
Simo Sorce
bebdbcd248 more on idmap
two layers structure with
- local tdb cache
- remote idmap repository

compiles
(This used to be commit 8fb4e210bc7564ed491d121c20d598ba0bfbddff)
2003-03-08 17:29:40 +00:00
Jelmer Vernooij
ad2e7324f0 Add Q&A for people having trouble trying to log in without a proper
samba user database.
(This used to be commit 957c11e40e0aedc24d2dce2aaae9888673d68e01)
2003-03-08 17:29:00 +00:00
Jelmer Vernooij
8742d1ff96 Add notes on increasing performance on AIX, based on an email from William Jojo
(This used to be commit 7dc2b10215c2b015a36e78c3b9b8f13cecfdfeba)
2003-03-08 15:27:54 +00:00
Andrew Bartlett
c08c475cf2 Testparm needs the extra arg to set_local_machine_name() too.
(This used to be commit 30ba31e6355b5dfb902e42d2b5edc71630db2923)
2003-03-08 10:24:48 +00:00
Andrew Bartlett
01289b14a7 Make sure that the 'remote' machine name can only be set once. For some weird
reason, during a Win2003 installation, when you select 'domain join' it sends
one machine name in the name exchange, and litraly 'machinename' during the
NTLMSSP login.

Also fix up winbindd's logfile handling, so that it matches smbd and nmbd.

(This helps me, by seperating the logs by pid).

Andrew Bartlett
(This used to be commit afe5a3832f79131fb74461577f1db0e5e8bf4b6d)
2003-03-08 10:22:50 +00:00
Andrew Bartlett
bbf8961b28 Make it clear that this is a fstrcpy().
(This used to be commit c2a266b7b661d319e13982bfdbc3a86e8502b8a4)
2003-03-08 05:18:08 +00:00
Jeremy Allison
7b2409214f Fix typo in earlier fix, caught by Ranjit @ HP.
Jeremy.
(This used to be commit 13ab94fa73dbaf54da0169bbcf4d027d5c07d207)
2003-03-08 01:16:30 +00:00
Simo Sorce
4a1d2ddd48 some more code
(not tested yet)
(This used to be commit 0d6cec90c13731827abcbc61974efc993e794003)
2003-03-08 00:49:18 +00:00
Simo Sorce
64e49aa3c5 initial work for the new idmpa interface
(This used to be commit 8338e74ac4e5f31150c96f459a67e52090dc6013)
2003-03-07 23:47:59 +00:00
Jeremy Allison
eed8772da1 Use ERROR_NT, not ERROR_DOS as Andrew Bartlett pointed out.
Jeremy.
(This used to be commit c0930e6d15eb68f06453d9b67142ccd7fb1370a0)
2003-03-07 23:34:55 +00:00
Steve French
f944fd6975 Add early prototype of cifs mount helper for Linux
(This used to be commit b20bcf8d336b4b2079eb42342a96d1fe714709de)
2003-03-07 22:29:14 +00:00
Jeremy Allison
24c95539d5 Missed parentheses around complex logic.
Jeremy.
(This used to be commit e81427c2d69be166afad94bc083e750e8f48fba7)
2003-03-07 19:46:51 +00:00
Jeremy Allison
6a141b7963 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 8ec20cbae7ca7e685b1a4186d8482c7405915dc3)
2003-03-07 19:37:27 +00:00
Simo Sorce
8a751c019c Some progress towards gums and tdbsam2
genparser works fine, and it is a marvelous tool to store objects in tdb :)
(This used to be commit 4c6d461a8572f03cd33cba95500cc837638b732c)
2003-03-07 18:26:24 +00:00
Andrew Bartlett
04858cd702 Limit the number of SIDs that may be looked up, in line with existing code
for name->sid.
(This used to be commit 0ebccc0dbeecc10d423529909a2563fbc3bf9857)
2003-03-07 09:29:56 +00:00
Andrew Bartlett
80087e6cfe safe_strcpy() -> fstrcpy() fix, and a cleanup to how rpcclient calls the
IP address resolving code.
(This used to be commit 1f605fe77c56ee2a7838c9f87eedf4bb91ebf688)
2003-03-07 09:25:48 +00:00
Jeremy Allison
cea6fd0b0a Fix noticed by Corny.Bondad@hp.com. Ensure we free up memory on error exit.
Jeremy.
(This used to be commit 1cbd53dc3cd2d56f5e62d42fed5d589efcecb8f8)
2003-03-07 00:34:43 +00:00
Jeremy Allison
3327f13795 Found at Connectathon, .NET RC1 arranges trans/trans2/nttrans parameters
differently to W2K, cope with this.
Jeremy.
(This used to be commit 172f415c9eaa4d310a52794e3dc1a6bc92206ce4)
2003-03-07 00:30:29 +00:00
Jelmer Vernooij
735bcfacda Add documentation on line returned by 'add printer command' script
(This used to be commit d41dbe568ec77e4860678e5ee4fe2ab2f2da507b)
2003-03-06 17:09:07 +00:00
Jelmer Vernooij
389a47fb66 Redirect to printer docs for removed options
(This used to be commit 401a522d88abdb6d6f01707f51b658d4e0497d3d)
2003-03-06 17:05:33 +00:00
Gerald Carter
26b1ed7cc0 add #define for the max device name length in a DEVICEMODE
(This used to be commit 21ec2b6ba3ddba6964f6ddb53f8494e4a8b48a83)
2003-03-06 16:06:12 +00:00
Andrew Bartlett
ca0d82b11c Make smbtorture use the same cli_full_connection() framework as the rest of
Samba.  This fixes things like not doing *SMBSERVER etc.

Andrew Bartlett
(This used to be commit 8863ff863c1da42aa6b8718f315c608d9d9067c6)
2003-03-06 10:37:51 +00:00
Andrew Bartlett
6684c85714 more off-by-one safe_strcpy()
(This used to be commit d8d2d5e75503ae2b6532a25e4c9bbcdf20cc60af)
2003-03-06 08:24:39 +00:00
Andrew Bartlett
192148bab3 More safe_strcpy() off-by-one bug fixes. (mostly moves to pstrcpy()/fstrcpy())
Andrew Bartlett
(This used to be commit 42b5514404bc7e33306c11344c6c934a1f83d295)
2003-03-06 07:55:48 +00:00
Martin Pool
7a3cc345e0 FIXME about crash on failure case.
(This used to be commit a387c4209735f8e4c826cad7cb10c5349b2041ec)
2003-03-06 07:36:08 +00:00
Richard Sharpe
6149dfd3e7 Add *SMBSERVER fallback code to smbtorture ...
(This used to be commit 460339db2246b0213252ee34f507eb8e55ecbecb)
2003-03-05 23:55:11 +00:00
Richard Sharpe
48e3bf2e95 Add code to allow us to specify the port to connect on when performing
a test ...
(This used to be commit 1128a2fb4c16681e669efe605ff7d7161a2f7acd)
2003-03-05 23:29:36 +00:00
Andrew Bartlett
487a056285 Use new configure test to turn on this automated test for correct string
function usage.

Andrew Bartlett
(This used to be commit cdc6139a9646b267a9921fc11fa532640a2e4c7f)
2003-03-05 09:40:08 +00:00
Andrew Bartlett
d5da58df9c 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
(This used to be commit 762d61b37d053568b6346e249ba7ef594320153a)
2003-03-05 09:36:41 +00:00
Andrew Bartlett
ce7f54e953 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
(This used to be commit ce618624b7df797e228f8ef0f19820b318c62ae9)
2003-03-05 09:33:43 +00:00
Andrew Bartlett
b4e60e5d7b also ignore the autom4te-2.53.cache
(This used to be commit 243c9c37a53501b96df6286517e03eb09efcc620)
2003-03-05 08:49:56 +00:00
Andrew Bartlett
7703af373d 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
(This used to be commit 96d1449c42597ea22c538a004960b26925c641fc)
2003-03-05 08:48:08 +00:00
Martin Pool
f98e4e24b1 lp_string: Add note about dodgy StrnCpy use.
(This used to be commit b32ae2d83fd0b4dd2c313cd0727bd276564cec0c)
2003-03-05 05:19:35 +00:00
Tim Potter
4c8091ef9c Use PRINTER_ALL_ACCESS instead of MAXIMUM_ALLOWED_ACCESS in setprinter
command.  From Ronan Waide <waider@waider.ie>.
(This used to be commit 992b5eb4e05fbf99d91d7235b9a002957533f95b)
2003-03-05 05:14:19 +00:00
Jeremy Allison
7a9987481e More const fixes.
Jeremy.
(This used to be commit 7b945e10a6c636c0b0aabc841803bf44405cb2ae)
2003-03-05 01:34:37 +00:00
Jeremy Allison
1cdafbf17e Writable string const fixes.
Jeremy.
(This used to be commit 60b0cfc8a5b6275d3460ebc6bf17d0f08e25b67e)
2003-03-05 01:30:26 +00:00
Jeremy Allison
fe45e6d79a 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 9d7ea5585c873156ede4b56e43a0d4d75077283a)
2003-03-05 00:54:07 +00:00
Andrew Bartlett
c502756113 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
(This used to be commit 6c43327ea2b50820ea4f623c889dc4525d58baa3)
2003-03-04 09:33:34 +00:00
Andrew Bartlett
7f15d5828f Another pstrcpy() into malloc()ed buffer fix.
Andrew Bartlett
(This used to be commit bd0c84d60b703e89081838a7cfa1eb1b4f45ad0a)
2003-03-03 23:53:35 +00:00
Jeremy Allison
6a58faf462 Const warning fixes.
Jeremy.
(This used to be commit 3ad62ebe26d8c6b82f8618eea11d104b3ab0ec18)
2003-03-03 20:12:07 +00:00
Jeremy Allison
f434f039e6 dlsym takes a const char *.
Jeremy.
(This used to be commit ff3827a62b37342b13fd8b4eafd256d91428c02b)
2003-03-03 19:53:04 +00:00
Jeremy Allison
56d0621264 Fix "might be used uninitialised" warnings.
Jeremy.
(This used to be commit a670b57c563b220c2ede1dac4ce1e9c71c866498)
2003-03-03 19:36:16 +00:00
Richard Sharpe
3042cfb7fa Do my janitorial duties to encourage others to do so.
Fix lingering large offset problems in smbtar etc.
(This used to be commit c416eec2f2a38eebfcda5868999d474628037f1e)
2003-03-03 17:43:33 +00:00
Gerald Carter
03a4c1907f * 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 342734e3de71c7dc8e3d24fd66dae58cf647a569)
2003-03-03 17:33:57 +00:00
Gerald Carter
21be9e7776 * 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 7377d671e8a95ac2ab0452f564b18b2a098699cb)
2003-03-03 16:34:19 +00:00
Andrew Bartlett
04efc2dcf7 Try the PASSWD environment variable if we don't have one from the command line.
(This used to be commit 14d7d8b22993ca7f1c273a7baaccb09c8fa04ef9)
2003-03-03 09:16:21 +00:00
Andrew Bartlett
1cf9038512 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
(This used to be commit 03e74be11cf76167ed211398016274cbaba5847b)
2003-03-03 09:12:40 +00:00
Andrew Bartlett
aa543f1345 Add const
(This used to be commit 251b91f46988053eccc53f814a23ed5ca787c852)
2003-03-03 08:35:49 +00:00
Andrew Tridgell
9043696121 i forgot to commit the privilege db init call
(This used to be commit e8ec2b118071ce1d8cbfbcebce3781ac753c5c22)
2003-03-01 10:47:38 +00:00