1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

9882 Commits

Author SHA1 Message Date
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
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
Jeremy Allison
e2366787ae 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 4a739d914bb87a3c8d071dfd0f275a9aab1cf90a)
2003-03-01 02:39:14 +00:00
Andrew Tridgell
4e5439438c 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)
(This used to be commit 50389c0cb2504d7941ec691af21d6a20ae5c5de7)
2003-03-01 01:07:18 +00:00
Jeremy Allison
728da472c2 Ensure added jobs increment total_jobs.
Jeremy.
(This used to be commit d29c6853dd0c43825b3775020076f34faa5cd329)
2003-03-01 00:48:09 +00:00
Jelmer Vernooij
3467ed21dd Fix HTTP error codes (patch by Vance Lankhaar)
(This used to be commit 3780d127313ad9f4411751d34fd6e1d96b1422cf)
2003-02-28 08:47:22 +00:00
Andrew Tridgell
7972855b81 fixed a crash bug in the new winbindd 'sids rule!' code
(This used to be commit 7dfd59963dba921907893b9d1bffe797e9d8b4ad)
2003-02-28 06:03:35 +00:00
Martin Pool
e443560789 Doxygen janitor: add note that strequal is in fact case-insensitive.
(This used to be commit a4b9c5c2576c80a5f60d47d178b9b8c50d348893)
2003-02-28 05:34:19 +00:00
Andrew Tridgell
e7ff3803a3 - added help on -P option
- added general options to 'net -h' help
(This used to be commit ee8a7fdab7f5aa6f4a64f2eea90f0d44ae0f388a)
2003-02-28 04:36:08 +00:00
Martin Pool
481b4e6d6c Doxygen janitor
(This used to be commit 9af07173152c5e861d13b33a8d4aee8167a50b66)
2003-02-28 04:21:55 +00:00
Martin Pool
f5f59e866e Doxygen janitor: fix parameter names, grammar, tag names.
(This used to be commit 42d9ec28cd55dbcfda546c84fb842938aeda544d)
2003-02-28 04:17:30 +00:00
Martin Pool
4125dfca83 Doxygen janitor: rpc_resolve_dc parameter is spelled "trust_passwd"
(This used to be commit 9dbc3dcfe0bccf1f76930ae86970b48ba5ed1e91)
2003-02-28 04:11:28 +00:00
Martin Pool
22d482dade Doxygen janitor: check_domain_match parameter is spelled
"auth_context".
(This used to be commit 571c3ce19344276aac1af56d2f69fcc5523f36eb)
2003-02-28 04:09:58 +00:00
Martin Pool
7ca743713b Fix comment typo
(This used to be commit d2fd52c1b50f2d1abad84668911b04c72fdc4b8d)
2003-02-28 04:06:56 +00:00
Martin Pool
290098e39e 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 aa2efaab1ffc77bec051cd206000951c72adeccc)
2003-02-28 03:59:47 +00:00
Martin Pool
921e569ed5 Add a comment about the meaning of samba's internal character set and
how this interacts with it.
(This used to be commit eb876ee9cf24eda04e0856899b232d060c669c0c)
2003-02-28 03:51:25 +00:00
Martin Pool
37e39f5be4 Add simple test harness that exposes StrCaseCmp for testing.
(This used to be commit ab77beca041595bc3bd70de3a6e1b49159a4964b)
2003-02-28 03:34:18 +00:00
Jim McDonough
db47e9450a cleanup some compiler warnings
(This used to be commit 87cebe797f06fab4a5d0077fd78b2183ff7333a5)
2003-02-28 03:29:03 +00:00
Jim McDonough
a001b706bd Improve net ads lookup:
- More info is printed
- (grand)child domains handled properly

Thanks to Anthony Liguori (aliguori@us.ibm.com)
(This used to be commit 3dbcb4d93f7c192eb2ccea5941a3843b5de1190e)
2003-02-28 03:21:22 +00:00
Jeremy Allison
9f0ae6fad2 *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 a82caefda49396641e8650db8a7ef51752ba6c41)
2003-02-28 00:26:20 +00:00
Gerald Carter
17c417e6e6 don't forget the NULL
(This used to be commit f80610120483c929afbec83d2b8649cb3e5111b0)
2003-02-27 23:52:37 +00:00
Gerald Carter
3a7d807ec9 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 7d547f50f914747291acc71fd3544ad92ce91f0e)
2003-02-27 23:24:26 +00:00