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

11547 Commits

Author SHA1 Message Date
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 0e9a2f41df932585bbff2a1a53d3dadc9a3dac62)
2003-03-11 03:41:21 +00:00
Tim Potter
7da4263014 Remove obsolete file.
(This used to be commit 560deeb4ece9dd4a65e10b0aae20f8ab1fe0d24c)
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 54c99ee1fbaf4541fb3fa10a9b764da1367af6d3)
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 944752024ba6ab762b12c29ee867e37401dac12b)
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 10b2de7ebd204a940bd15bff9cca611e4ba8dcd3)
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 11077368ec30313c2e7ee1d23f9f348910aa36bf)
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 723e9ee31cc1f5eb4b7aefefd58f7f13d0abda05)
2003-03-07 23:34:51 +00:00
Jeremy Allison
95381baefd Extra const committed by mistake - revert.
Jeremy.
(This used to be commit 183ce97d3719080b1b01932b96206b8ee4c5f5b0)
2003-03-07 19:46:24 +00:00
Jeremy Allison
0f30afc912 Missed parentheses around complex logic.
Jeremy.
(This used to be commit 7f8d3a49b2cebab4b94db3cda54b3923442378c8)
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 1d3b8c528bebfa1971d1affe454a03453335786e)
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 05a8a61af83a6d85ddbb70749c8cd0abe9eb8180)
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 5e2755508f08ecf561348d4edf0a4064732c5213)
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 52ef84b53495db1eac6ecfb0b926ef8df7ea5cc5)
2003-03-06 16:09:11 +00:00
Gerald Carter
fb9e22d6c8 merging some packaging fixes from SAMBA_2_2
(This used to be commit 214decbda680f23691f0d633d4a29c2c7e17de6b)
2003-03-05 16:57:01 +00:00
Gerald Carter
b8298b5948 changing reference to irc.openprojects.net
(This used to be commit b467e9ce1d68e269c6956520a5ffce73e115714e)
2003-03-05 15:32:50 +00:00
Jeremy Allison
211dd28a7a More const fixes.
Jeremy.
(This used to be commit fa93763248f2043395e4cfc70b8afd81e28b2b75)
2003-03-05 01:34:34 +00:00
Jeremy Allison
d45fe965ef Writable string const fixes.
Jeremy.
(This used to be commit c832e95c2f4daf175954a60f3c56420cf2f35b45)
2003-03-05 01:30:15 +00:00
Jeremy Allison
6626fef5d4 Fix for little-used lpq parser.
Jeremy.
(This used to be commit 75b36459ab1797bdff98ed91d7870bd48adebb54)
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 3cc2ace7718ac1162494b81fa21d4cc9de021d1c)
2003-03-05 00:54:16 +00:00
Gerald Carter
dab5d29153 forgot that i should run autogen.sh as part of release
(This used to be commit ebd134c0ce0d4db51822a4c29a0de768fcfa261f)
2003-03-04 20:23:28 +00:00
Gerald Carter
af6b467d39 make sure to call autogen.sh
(This used to be commit 7558ee9d47beab11099d0a9d89b2e74dc58c9935)
2003-03-04 19:55:04 +00:00
Gerald Carter
7c03402c8a preparing for release of 3.0alpha22
(This used to be commit f5c9895f83277f01282587697c84d31dc77102f6)
2003-03-04 19:39:19 +00:00
Gerald Carter
7342b1cc84 fixing a few typos & regenerating pages
(This used to be commit 89bc3f1f7c10ab7c7fb8d2437c7e3d07f3e6f4fa)
2003-03-04 19:34:30 +00:00
Gerald Carter
1485e795fc fixing a few typos
(This used to be commit 9639e01dbc1dde65623b41be8a1137e1c1dc2d46)
2003-03-04 19:22:54 +00:00
Gerald Carter
b2913fe42e updating whatsnew for alpha22
(This used to be commit 755bb317dbfbbe054ec7cc88485119fcc7006504)
2003-03-04 19:18:23 +00:00
Richard Sharpe
e3fdd289f5 More janitorial duties, fixing the BIG_UINT changes for large offsets.
(This used to be commit 1af39523cc3b2313f3e8acd4f2e5338182ec0b13)
2003-03-03 23:00:22 +00:00
Jeremy Allison
28074d957a Const warning fixes.
Jeremy.
(This used to be commit 30e8ae8e030b5dccaef9612dca24907be547acdf)
2003-03-03 20:12:37 +00:00
Jeremy Allison
52d1dd46d2 Fix const warning.
Jeremy.
(This used to be commit dedc18212a5174b6abac60ede9828f9b726a6c2d)
2003-03-03 19:56:57 +00:00
Jeremy Allison
8ce11aee91 dlysym takes a const char *.
Jeremy.
(This used to be commit 54e5413a9267b7279cbde0ec129478a5a9c3116c)
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 e1383368169faa50b9e612c9f71f92f790698b48)
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 e8939165b77c9e2ea8b3cef2e85885b9812c7184)
2003-03-03 16:32:03 +00:00
Jeremy Allison
ba3ccc2928 Added limit to number of jobs enumerated. Set to 0 (means no limit).
Yes I will add the docs....
Jeremy.
(This used to be commit e1b0001c8df9e9823b42a372ca675188570b252a)
2003-03-01 02:39:12 +00:00
Jeremy Allison
0bf15545dd Ensure added jobs increment total_jobs.
Jeremy.
(This used to be commit a75d9fc4e1c26e3ae15a97508f6f1cf69fe54148)
2003-03-01 00:49:00 +00:00
Jelmer Vernooij
938f37afc2 Fix HTTP error codes (patch by Vance Lankhaar)
(This used to be commit e660b0b8d034c6cb9771601c64b952380d136ca1)
2003-02-28 08:48:26 +00:00
Martin Pool
2fa05e62c5 Remove reference to "mainpage.dox" and CodingStandards, which have
been removed.

Put subdirectory names in file list, so we get lib/util_chr.c, not
just util_chr.c.
(This used to be commit 732d94b83e2dd14bad92c2f7947cf905b9128a2f)
2003-02-28 04:02:16 +00:00
Jim McDonough
82429c98f8 Move net ads lookup improvements over from HEAD
(This used to be commit 507e5738fb7c50969bee269527be5dc6e450b77f)
2003-02-28 03:35:45 +00:00
Jeremy Allison
e0989e1304 *Excellent* patch from Michael Steffens <michael_steffens@hp.com> to limit
the unix domain sockets used by winbindd (also solves FD_SETSIZE problem
in winbindd to boot !). Adds a "last_access" field to winbindd connections,
and will close the oldest idle connection once the number of open connections
goes over WINBINDD_MAX_SIMULTANEOUS_CLIENTS (defined in local.h as 200
currently).
Jeremy.
(This used to be commit 7a586552a3aeb4a26495f0965af4bd027456a011)
2003-02-28 00:25:55 +00:00
Gerald Carter
19995a40c1 don't forget the NULL
(This used to be commit 4aa611958ebedfafbb9bfc1070b7d632272e1aaf)
2003-02-27 23:54:58 +00:00
Gerald Carter
e4c8e7ad8a and the winner of "i should have just written it in assembly
is..."

don't use pstrcpy() when you are not dealing with pstrings.
(This used to be commit e1b21381f3b5cf6f97c101642e9286df9987998e)
2003-02-27 23:21:37 +00:00
Gerald Carter
1738f7c2b7 don't pass NULL pointers to strcmp()
(This used to be commit 9b0a49a0bc177f9637f197b3ab4613f25db1b43d)
2003-02-27 21:37:30 +00:00
Gerald Carter
0d30cdf66c additional fix for CR 601
* distinguish WinXP from Win2k
  * add a 1/3 of a second delay in OpenPrinter
    in order to trigger a LAN/WAN optimization in
    2k clients.
(This used to be commit c7712fa054d21b4884a78b7ea6c0fb8b3d637c6b)
2003-02-27 21:22:36 +00:00
Martin Pool
ff5d95f0ef Doxygen merge from head
(This used to be commit 38fa2898967f607a17fd7fbd324f2940a05fb551)
2003-02-27 05:57:21 +00:00
Martin Pool
03ae31248e Merge 1.100 patch from HEAD:
init_valid_table: Fix a memory leak that would lose the
dynamically-created valid table every time the configuration was
reloaded.
(This used to be commit 3ff4845bc43736bfa091419c80b9a0ebdc9d156e)
2003-02-27 05:20:23 +00:00
Jeremy Allison
fb3e4b8797 Fix to allow blocking lock notification to be done rapidly (no wait
for smb -> smb lock release). Adds new PENDING_LOCK type to lockdb
(does not interfere with existing locks).
Jeremy.
(This used to be commit 766928bbba1e597c9c2b12458dd8d37e6080593e)
2003-02-27 01:04:34 +00:00
Andrew Bartlett
1502667e92 Merge adding -Wwrite-strings to our CFLAGS when --enable-developer is set
(This used to be commit 1cba3ceae1637974272e595260933985d84942d4)
2003-02-26 12:37:04 +00:00
Tim Potter
3330b61006 Link wbinfo with popt_common.o
(This used to be commit eac4b7ef2989acb50e3d27e7198285dd198017ec)
2003-02-26 00:10:22 +00:00
Tim Potter
681c932a75 Merge of exit path cleanup for EnumDomainUsers.
(This used to be commit c2e9673328b2d989f13626632442f095727a03c6)
2003-02-26 00:06:59 +00:00
Tim Potter
2057d3c39f Merge of python prototype header removal.
(This used to be commit 19676de275f1cb1feaf4f65acfafc1aed3b6ec67)
2003-02-26 00:02:07 +00:00
Tim Potter
841ccd6950 Merge: newline on debug message.
(This used to be commit df49463e62e4be7535485b668f00db287ff581f3)
2003-02-25 23:54:40 +00:00
Tim Potter
a03c5f2394 Merge: add popt_common_version to command line options table.
(This used to be commit 8de62f7896a53084e87b95c013d8693214c8ab85)
2003-02-25 23:54:23 +00:00