Jeremy Allison
4df4aca784
Ensure auth requests from the same machine are completely serialized.
...
NT4.x DC's require this.
Jeremy.
(This used to be commit d162b6285d549370a24a926ab1c46cef7e7f630a)
2002-04-22 22:44:44 +00:00
Gerald Carter
dde9187728
merge from SAMBA_2_2
...
(This used to be commit 5e381abbbfaa15f3ebd89cba3cd9bb6de8e4ff4e)
2002-04-22 18:47:36 +00:00
Christopher R. Hertel
0fb9ea9fa4
My seven-year-old daughter calls me 'Captain Pedantic'. I don't know which
...
is freakier... the name or the fact that a seven-year-old knows what it
means.
Small change to correct the value we place in the DGM_LENGTH field of
NBT Datagram messages. We have been counting the full datagram, but it's
fairly clear in the RFCs that we should only count the source name,
destination name, and payload. We've been overcharging by 14 bytes
(the size of the NBT DGM header).
This fix brings us in line with what Windows does, and what the RFCs
say should be done. I'm a little surprised that this didn't cause any
bugs or error messages. I guess no one actually checks this field.
(This used to be commit 3156c020e5b6f12a448d58669977ad4449789460)
2002-04-22 03:08:33 +00:00
Andrew Tridgell
86cf3b9f11
try to cope better with the take ownership operation for foreign SIDs
...
what we do is map to the authenticated user when the sid is unmappable
and dos filemodes are enabled
(This used to be commit b6c2ef4f54e7b42125f8c89ee5a62b0ba6b52f59)
2002-04-20 07:28:46 +00:00
Tim Potter
5c261ce93d
Return exception text if getprinter level not [0..3]
...
(This used to be commit c02a7a71d6ddae711c84094e410d1117efc031f0)
2002-04-20 07:17:36 +00:00
Jeremy Allison
ca2e14ddc3
We cannot set errno=0 in any of the wrapper calls as this breaks UNIX error
...
returns to the client.
Jeremy.
(This used to be commit 1d66e53a64ec2878293e6d74a852b736ddab8f21)
2002-04-19 21:45:02 +00:00
Jeremy Allison
16e1ff4f3a
Added Martin's lpq parse fixes from 2.2.
...
Jeremy.
(This used to be commit 3853234c2649c501e9876f940f802be86cb6383d)
2002-04-19 17:59:13 +00:00
Jeremy Allison
4f4d25d3e1
Fix different args to sys_fcntl without going varargs....
...
Jeremy.
(This used to be commit 65742067e07195048edcee46dae95a58a4a50950)
2002-04-19 17:30:27 +00:00
Jeremy Allison
8bc0e73a43
Fixed one more sendto.
...
Jeremy.
(This used to be commit 7adcc930ca56bf879b5e73b74bca19ac2353f1c0)
2002-04-19 17:22:32 +00:00
Jeremy Allison
baf8e2e712
When opening a tdb fails - don't expect to be able to do tdb_errstr ! (Doh!).
...
Jeremy.
(This used to be commit 9209d8e718e860e6a58937376cbb437b6b7adbbb)
2002-04-19 17:10:56 +00:00
Jean-François Micouleau
2ad27d872c
add NetUserEnum and NetGroupEnum lanmap API calls, untested. I don't have
...
anymore a SNAP/DELL NAS to test.
from Kevin Stefanik.
J.F.
(This used to be commit d0ce52230b456108ad91361b51e30d9a9cb25dff)
2002-04-19 13:41:43 +00:00
Jean-François Micouleau
8295173206
DEBUG cleanup.
...
J.F.
(This used to be commit 1ece80a6b70ab26eb1a8484134b536efa007f6f9)
2002-04-19 13:39:52 +00:00
Jeremy Allison
b63be4e1ab
Added sys_fcntl (not to be used everywhere). Added sys_read/sys_write
...
for transfer_file.
Jeremy.
(This used to be commit c7ff521bab838c070931f2b0ece4be3371fbcdbf)
2002-04-19 03:05:38 +00:00
Andrew Tridgell
fc78c773f8
fixed trust relationships in ADS winbindd after breaking them with my BDC changes ...
...
(This used to be commit 8096032663690eafb6bb8b4f405d6231389d4f80)
2002-04-19 03:00:29 +00:00
Jeremy Allison
e762f93821
Fixed sendto in oplock code.
...
Jeremy.
(This used to be commit 64974fa334fd757ff5cfd1bd32d7300bf8a6208c)
2002-04-19 02:20:04 +00:00
Jeremy Allison
87fc828012
Fix oplock recvfrom.
...
Jeremy.
(This used to be commit 68c0eb5ca7bc96cfdc8df07bd84f3e49de024b81)
2002-04-19 02:16:54 +00:00
Jeremy Allison
e41915d7c8
Fix send and recvfrom.
...
Jeremy.
(This used to be commit 8cbc24c3bd0e2d2349625c3b5d2e12ac092ec5a8)
2002-04-19 02:15:10 +00:00
Jeremy Allison
302b581ddc
First cut at fix for the EINTR problem... More needs to be done I think.
...
Jeremy.
(This used to be commit 48475a7a697242b9fd7b1aec24389afb112569c4)
2002-04-19 02:08:52 +00:00
Andrew Tridgell
dcb572e0b2
fixed a namequery bug caused by my recent string length patches
...
(This used to be commit b2329039d255928faf53474ee7ab06b6353b9fbe)
2002-04-19 00:16:18 +00:00
Richard Sharpe
ba309aaffa
Back out the wrong changes I made yesterday ...
...
(This used to be commit 6d52aa1fc892b48d72a790800ee00d6d7bdc4844)
2002-04-18 18:36:17 +00:00
Andrew Tridgell
c0a9919430
fixed the fallback to a BDC for ADS connections
...
(This used to be commit 3e58a1ee83ea0b4347ce24e566445cc6cb67bb3a)
2002-04-18 06:56:44 +00:00
Andrew Tridgell
6a9bc86d62
nicer strndup() function
...
(This used to be commit 546764f3cbbefaad312386280dd2ebbbe5b4446d)
2002-04-18 03:59:02 +00:00
Tim Potter
b0fbd72b41
Started working on setprinter code.
...
(This used to be commit 38d2b1794a0942ac4c2787f06bc5e546508c2515)
2002-04-18 03:35:05 +00:00
Tim Potter
eaf7e2b374
make proto
...
(This used to be commit a721843197d39c0edc6c464214123be3300d0b91)
2002-04-18 03:24:02 +00:00
Andrew Tridgell
5b8135e038
- fixed the is_mangled() interface to handle multiple components
...
- fixed the no-extension case of reverse mangling
(This used to be commit 64a2ae5cee4ffc5ae3c902705b6e1050f649e3a5)
2002-04-18 02:13:55 +00:00
Jeremy Allison
e9be6c4db4
Fix found by Li Shao @ HP - XP clients don't bother to set the devmode_ptr
...
in the SetPrinter() call - they send it in the devmode_ctr instead.
Jeremy.
(This used to be commit f988a1af034b4cea2412171a257a752192afaece)
2002-04-18 01:48:45 +00:00
Richard Sharpe
4e5e548170
Fix smbtorture so it can handle collisions etc ...
...
(This used to be commit ba4d6c76aabd3d1fd8dc1e2335baf50c58d636a7)
2002-04-17 22:50:02 +00:00
Jeremy Allison
82b573678d
Fixed the AFP_Resource:$DATA filename creation bug.
...
Jeremy.
(This used to be commit b6c466e8800c03d154381c02a3893f338430b82d)
2002-04-17 21:59:55 +00:00
Jeremy Allison
37d67c3345
libsmb/cli_netlogon.c: Fixed confusing debug messages.
...
param/loadparm.c: Added missing debugs that would have helped me find a misconfiguration
I lost a day on....
Jeremy.
(This used to be commit 6e9572379784c77f3c4e6a95e18a9641880a8ffc)
2002-04-17 17:34:38 +00:00
Jeremy Allison
5e2547e4db
Fix unused warnings with deleted code.
...
Jeremy.
(This used to be commit 255c68856eeccf75b152e15be66130175907188c)
2002-04-17 16:58:12 +00:00
Tim Potter
67d99a88c4
Fixed command line argument parsing.
...
(This used to be commit 28c1fae4d89399ec4d15bfb3ccd17d8b5b0495fc)
2002-04-17 06:43:47 +00:00
Andrew Tridgell
0e6ac42b4d
disabled the traversal of the brlock database at startup and
...
shutdown. I have just helped debug a very large Solaris server where
the traversal was taking so long that the clients timed out, created a
new process which in turn did a traversal!
we will need to find some other way of doing a brlock.tdb cleanup (if
its even needed at all)
(This used to be commit 2728d131356313db0d6341b0a01d6625d13367c3)
2002-04-17 05:43:05 +00:00
Andrew Tridgell
e35ac78c49
make suure we get the return value from the pull_*() functions right
...
for both null terminated and buffer length terminated strings
(This used to be commit e8fbf853e0eed61bb7405be731f18fb2426f8dc4)
2002-04-17 02:37:46 +00:00
Simo Sorce
1416106736
sync with 2.2
...
(This used to be commit 18d5ffd835165d2570443c979d9157e2388b37d8)
2002-04-16 22:56:08 +00:00
Andrew Tridgell
7c0301d100
stricter conditions on termination in strings
...
this was a very nasty bug with filename corruption and NT4 clients. The
exact termination conditions are quite critical ...
(This used to be commit a538efe7d00e7a61df194ca1c22e0583dcbb7a4a)
2002-04-16 22:55:39 +00:00
Simo Sorce
a32940d53e
Fix incorrect zpadlen handling in fmtfp.
...
Thanks to Ollie Oldham <ollie.oldham@metro-optix.com> for spotting it.
few mods to make it easier to compile the tests.
addedd the "Ollie" test to the floating point ones.
(This used to be commit 415f9d92bc0a37d38b81a653a4b4c5f0fefa2fe8)
2002-04-16 22:38:04 +00:00
Gerald Carter
eebe9749e0
few fixes and regenerate
...
(This used to be commit 0ffda9ffad2073a5995ce34fde5c3b5fc4859b90)
2002-04-16 16:52:20 +00:00
Gerald Carter
1d49e9bc71
merges from SAMBA_2_2
...
(This used to be commit 91929afbb0cad422cc6d05f9a10ba5c3d797d779)
2002-04-16 16:49:08 +00:00
Jean-François Micouleau
7a661ac63c
we did not initialise global_myname and global_myworkgroup which lead to
...
duplicate entries in secrets.tdb and false SID generated.
took me *hours* to understand.
J.F.
(This used to be commit bfc3a25b776a5a66e1bd0e2c60c101cea87ef4d5)
2002-04-16 15:49:24 +00:00
Andrew Tridgell
4fd802c444
fixed a problem with the smb_buf() macro on some compilers
...
(This used to be commit 66d6d4810ab7b0a1bf2039c387938aad69e01569)
2002-04-16 13:10:54 +00:00
Andrew Tridgell
f70836df9e
ignore a few more files
...
(This used to be commit 1c92fab4050f21b4c5cc962e0b80b5c551b24745)
2002-04-16 12:27:54 +00:00
Andrew Tridgell
bb8dbb7732
reran configure after adding a test for strnlen()
...
(This used to be commit 78ead781261d397ace22640e3820d0f4fe17722c)
2002-04-16 12:24:42 +00:00
Andrew Tridgell
b66932e1a5
fixed the handling of STR_TERMINATE
...
(This used to be commit dbc6b137a83cf9fe0558625dd32f92f15296fba6)
2002-04-16 12:07:12 +00:00
Andrew Tridgell
02f84c6bd0
i forgot to commit these parts of the string handling patch earlier. Sorry.
...
(This used to be commit bac0093a9713416b1679d1bc167b70f02b06ef78)
2002-04-16 10:40:23 +00:00
Andrew Tridgell
e7b729e0d9
make sure we don't walk past the end of the current SMB buffer when
...
pulling a string
this might explain a serious filename corruption bug that Quantum QA spotted
(This used to be commit a877eae24becad9e0cd5b33ffe0916a20d5ba227)
2002-04-16 06:15:28 +00:00
Andrew Tridgell
a95d731fa4
make sure that we leave the tree unused after disconnecting
...
(This used to be commit e75e4ad7d3af5beee48b3001fd904eede8df033f)
2002-04-15 23:48:39 +00:00
Tim Potter
37e4471dea
Stubs for connect, domain, user, group and alias policy objects.
...
Wrote samr connect fn.
(This used to be commit f2155aa3f4608b14777092002c39358b816dbea5)
2002-04-15 23:33:09 +00:00
Gerald Carter
4d917cd8f5
merge from SAMBA_2_2
...
(This used to be commit fedc11cab16dbecfdae858fc48d629b9172c0fb8)
2002-04-15 13:35:18 +00:00
Andrew Bartlett
6d239fc97f
Another patch from jelmer:
...
Doco for pdbedit and (ugly, but the best we could come up with) fix
for compiling pdbedit on some non-gcc compilers.
Andrew Bartlett
(This used to be commit 80adf1dbb56cf8bdbfbcc2c8c7b670c0a23c97f8)
2002-04-15 08:50:36 +00:00
Tim Potter
b84cce809b
Skeleton for SAMR module.
...
(This used to be commit 70bd1a0f94412236bf6603f16947336cb75c6415)
2002-04-15 07:29:47 +00:00