1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

1222 Commits

Author SHA1 Message Date
Gerald Carter
99cdb46208 *lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
(This used to be commit 0fb724b3216eeeb97e61ff12755ca3a31bcad6ef)
2003-01-15 18:57:41 +00:00
Gerald Carter
5fb5950258 small merges from SAMBA_3_0; mostly typos, renames, etc...
(This used to be commit 9ac196dad4893b0ceef13281a140be5d85391e6c)
2003-01-15 18:31:46 +00:00
Gerald Carter
4242eda183 merging some rpcclient and net functionality from HEAD
(This used to be commit 7a4c87484237308cb3ad0d671687da7e0f6e733b)
2003-01-15 17:22:48 +00:00
Andrew Bartlett
58fe4d9c20 Refactor the NTLMSSP code again - this time we use function pointers to
eliminate the dependency on the auth subsystem.  The next step is to add
the required code to 'ntlm_auth', for export to Squid etc.

Andrew Bartlett
(This used to be commit 9e48ab86da40e4c1cafa70c04fb9ebdcce23dfab)
2003-01-15 12:52:38 +00:00
Andrew Bartlett
d645041d63 Merge from HEAD:
- remove useless #else
 - signed/unsigned fixes
 - use an fstring for LM hash buffer.

Andrew Bartlett
(This used to be commit c0fb53c31fd7341745d14640e761affc5dae5230)
2003-01-14 08:26:54 +00:00
Andrew Tridgell
42d9c73424 merge alt_name patch from head
(This used to be commit 20ebdee36d5351731698bdef6602fc73a45b1651)
2003-01-14 03:02:18 +00:00
Andrew Tridgell
6d030555a1 query_alt_name takes a forced unicode string in win2000. It is not
null terminated.

Thanks to Metze for finding this.
(This used to be commit e4ce26332b8f876e25ff9baf06d4767a473e2676)
2003-01-14 02:51:37 +00:00
Richard Sharpe
5bbac9dd80 Make sure that those cleanups actually went in.
(This used to be commit 9a38e378115a1c36d0cd7c41f4c5767c23b4eb3f)
2003-01-13 20:30:28 +00:00
Richard Sharpe
16925589eb Now that I am running config.developer, I decided to get rif of some warnings:
1. reboot in parse_reg and cli_reg was shadowing a definition on FreeBSD
   4.3 from system includes.

2. Added a bit of const to places.

3. Made sure internal functions were declared where needed.
(This used to be commit fd847aa93690eb72f0437a8d22c03b222eb2a016)
2003-01-13 20:04:40 +00:00
Andrew Bartlett
e3293c7181 Updates to our NTLMSSP code:
This tries to extract our server-side code out of sessetup.c, and into a more
general lib.  I hope this is only a temporay resting place - I indend to
refactor it again into an auth-subsystem independent lib, using callbacks.

Move some of our our NTLMSSP #defines into a new file, and add two that I found
in the COMsource docs - we seem to have a double-up, but I've verified from
traces that the NTLMSSP_TARGET_TYPE_{DOMAIN,SERVER} is real.

This code also copes with ASCII clients - not that we will ever see any here,
but I hope to use this for HTTP, were we can get them.  Win2k authenticates
fine under forced ASCII, btw.

Tested with Win2k, NTLMv2 and Samba's smbclient.

Andrew Bartlett
(This used to be commit b6641badcbb2fb3bfec9d00a6466318203ea33e1)
2003-01-13 12:48:37 +00:00
Andrew Bartlett
05f6c8dea1 Don't force the DOS password into a 14 char space, as this would imply null
termination - the password will not be null terminated before hashing if
len >= 14.

related to debian bug #157432

Andrew Bartlett
(This used to be commit c6535836f2e48903aa89a18c11cbb37576fb4a20)
2003-01-13 08:53:54 +00:00
Andrew Bartlett
73b0a2bdf8 Fix a number of client-side fstring/pstring mixups.
Andrew Bartlett
(This used to be commit fe1cc779d5ea77e87dbc0e2edf7c34a354fee6e0)
2003-01-11 12:04:14 +00:00
Andrew Bartlett
48dc324cd1 Merge from HEAD - vl's fix to my const patch. Also update the 'not have_krb5'
case.

Andrew Bartlett
(This used to be commit 8129529c4faec5ea630acf70b7514a3efc0fbdcf)
2003-01-04 09:06:46 +00:00
Andrew Bartlett
9de96c6f24 Merge from HEAD - do an nt_errstr(nt_status) *after* assiging nt_status with
the actual error value :-)

Andrew Bartlett
(This used to be commit 123ae99c7d51c62e9f765cd41018dcc1a70cdd22)
2003-01-04 09:01:19 +00:00
Andrew Bartlett
863e9ca2c6 Merge from HEAD - mimir's new gencache based namecache code.
Andrew Bartlett
(This used to be commit f79324f730c400342f445c931b0d75ff756d7cc7)
2003-01-04 08:48:15 +00:00
Andrew Bartlett
634c54310c Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
(This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
2003-01-03 08:28:12 +00:00
Christopher R. Hertel
47a7f0cfb5 Fixed some simple typos, including one that would cause the wrong value
to be printed in a DEBUG() message.
(This used to be commit 96e9fa5f224966531fa8f9cf18cbc4bbb2fe60ed)
2003-01-03 04:35:09 +00:00
Christopher R. Hertel
fe0382f186 Fixed some simple typos, including one that would have resulted in a
DEBUG() message printing the wrong value.
(This used to be commit 42a4e5b851aa7c9fd9dca5a6f8f42e5d91246c76)
2003-01-03 04:32:23 +00:00
Volker Lendecke
94fec25c5f One more const. Andrew, you seem to have krb5 :-)
Volker
(This used to be commit f5494f5ef6a14020bd31541b1f87d48111f60ad8)
2003-01-02 09:40:10 +00:00
Andrew Bartlett
6d66fb308a BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
(This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2003-01-02 09:07:17 +00:00
Richard Sharpe
c105c12d12 Document the size constraints on a write request.
(This used to be commit 5d6c1810330b38e48355078b7a5d53e7b5076f74)
2003-01-01 21:54:00 +00:00
Jeremy Allison
266c1ece12 Merge Richard's write > 4Gb fix.
Jeremy.
(This used to be commit 5431bae8944496f44d8cc6d2c4de86e9feb60f32)
2002-12-30 06:12:13 +00:00
Richard Sharpe
b68e6c9910 Port the fix to cli_setup_write to handle offsets greater than 32-bits from
Samba 2.2.x ...
(This used to be commit 4201038588bab8674b73371a5eac70a412c5dd6c)
2002-12-30 04:25:30 +00:00
Jeremy Allison
98ac4503ac Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit aa8439a49ec4b9f433745fefa1e769e45398f4df)
2002-12-23 23:54:10 +00:00
Jeremy Allison
0fdf60f051 Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit 784d15761c3271bfd602866f8f9f880dac77671c)
2002-12-23 23:53:56 +00:00
Jeremy Allison
7f23546730 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
(This used to be commit 842e08e52a665ae678eea239759bb2de1a0d7b33)
2002-12-20 20:23:06 +00:00
Jeremy Allison
ef8bd7c4f7 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
(This used to be commit 09a218a9f6fb0bd922940467bf8500eb4f1bcf84)
2002-12-20 20:21:31 +00:00
Tim Potter
45a6532727 Fixed bug in debug statement when tconX fails.
(This used to be commit a2159610b9d38cc7cfa7cb877ccee816cd2206b8)
2002-12-20 01:07:09 +00:00
Herb Lewis
41969738a4 merge from 2.2 fix for smbclient large files
(This used to be commit 17f685fdbf5d36f82e3da0a09457f5e248b3f109)
2002-12-19 20:26:44 +00:00
Herb Lewis
c52a34693d merge from 2.2 fix for smbclient large files
(This used to be commit 723c4caf64c56b78052c52fec78c7143ec19e944)
2002-12-19 20:23:45 +00:00
Gerald Carter
98b19b0e5e app_head merge for get_friendly_nt_err()
(This used to be commit 5b311250257b3c45879a85ac46d6b6aa316514bf)
2002-12-17 22:55:49 +00:00
Gerald Carter
846b50cd41 app_head merge for get_friendly_nt_err()
(This used to be commit 3ceff08eb75ecd70dcf10d033c7451d87b659c0b)
2002-12-17 22:53:56 +00:00
cvs2svn Import User
580110a47c This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit bdb5206b45a3e1360cc1a7e9f87299eeaa3c8d9c) 2002-12-12 23:35:56 +00:00
Gerald Carter
f6c4f25e43 merge of get_dc_name()-like code from APP_HEAD; better support password server = DC1 *
(This used to be commit 6b18ca9511ddcf1718f222af3f61491d1e5f3b60)
2002-12-12 23:35:55 +00:00
Jeremy Allison
f7267c1235 Fix write error returning EFBIG - found by Conrad.
Jeremy.
(This used to be commit 2d63fc7760634308cc280e4d745a6f7398f75d20)
2002-12-11 18:52:32 +00:00
Jeremy Allison
f2def025e2 Fix write error returning EFBIG - found by Conrad.
Jeremy.
(This used to be commit e258887f508db3d2c923f393f0104e7cf1bd6545)
2002-12-11 18:52:21 +00:00
Jeremy Allison
3fc4d88d99 Fix client reporting of 64 bit files.
Jeremy.
(This used to be commit 8dcbfa4e770d74d4ce6faaf1a0597d07d0a5cc81)
2002-12-10 23:44:33 +00:00
Jeremy Allison
89ef861b4b Fix client large file reporting.
Jeremy
(This used to be commit 185804ac945e717a5e3d3602e8118b35080f6251)
2002-12-10 23:27:12 +00:00
Jeremy Allison
ccdfed5587 Ensure global_scope() returns "", not the NULL string. Froma tpot fix.
Jeremy.
(This used to be commit 0ff254264e6e43399404595bc87b5bd889e17952)
2002-12-06 19:59:04 +00:00
Jeremy Allison
8c13b09b9d Ensure global_scope() returns "", not the NULL string. Froma tpot fix.
Jeremy.
(This used to be commit 7185b846e41da2bf7edaa7f3edeff1cc1486d28b)
2002-12-06 19:58:27 +00:00
Gerald Carter
2aaf0ea146 cleaning up some friendly error messages
(This used to be commit f978387e789eeaf9b53a21231d4cdc7cf3ea6db3)
2002-12-04 19:03:32 +00:00
Gerald Carter
8a2f73215a cleaning up some friendly error messages
(This used to be commit 0f963685d9da1cd68cf922372c8ddaa769880f27)
2002-12-04 19:03:17 +00:00
Gerald Carter
779ec8d3cf [merge] remove assert(count ==1) for multi-homed PDCs; CR 1277
(This used to be commit 18799c115b05d6662350509f6662dbfceb4b71f5)
2002-12-04 19:01:01 +00:00
Gerald Carter
c73c3e1daa [merge] remove assert(count ==1) for multi-homed PDCs; CR 1277
(This used to be commit 157b5ab198670c6999f22d6b49072fdebc84be0d)
2002-12-04 19:00:29 +00:00
Jeremy Allison
64c9679191 Doing janitorial duty for tpot - memory leak fix.
Jeremy.
(This used to be commit c6da50def80e64226c7e5b310dce30d0490512cb)
2002-12-04 18:40:01 +00:00
Jeremy Allison
0694e965fb Doing janitorial duty for tpot - memory leak fix.
Jeremy.
(This used to be commit 7acf9594210f024e8d0c34259fcc990c6c76c838)
2002-12-04 18:39:50 +00:00
Herb Lewis
e217ba0a70 use the new IVAL_TO_SMB_OFF_T for file_info size member
dir now shows correct size on large files
(This used to be commit 172dccf55e972d4cc40b7e34ce433d49e738fba0)
2002-12-03 20:02:18 +00:00
Herb Lewis
db9686ff89 use the new IVAL_TO_SMB_OFF_T for file_info size member
dir now shows correct size on large files
(This used to be commit ce7d421ba9cfa65e3ed404f18e8b3b4cf4730593)
2002-12-03 20:00:31 +00:00
Andrew Bartlett
f634f24cf8 Dereference the correct thing here, so we don't segfault
(This used to be commit ea18d02036b4e0502e5ecb057c9fe381709a07d8)
2002-12-01 03:12:50 +00:00
Jeremy Allison
fe768c3315 Fixup of ordered cleanup of get_dc_list - bug found by Dominik 'Aeneas' Schnitzer <dominik@schnitzer.at>
Jeremy.
(This used to be commit 7ba051a830a7dc96e3860a87643a3ac99cdf5836)
2002-12-01 00:46:50 +00:00