1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

2112 Commits

Author SHA1 Message Date
Jeremy Allison
9b8cbdfc2b Fix OOPS when dealing with mangled names reported by several users.
This was my bug when removing a redundant strlen.
Jerry - last showstopper I knew about.
Jeremy.
(This used to be commit 6e6769c20643f784d1b5023df3071a35d2e5bf89)
2003-09-15 21:19:43 +00:00
Jeremy Allison
dd50c0ed68 A *curse* upon the person who #ifdefed out the mangle debug statements
by default ! This is code that really needs to be able to be looked at
on a customer system if it's misbehaving !
Jeremy
(This used to be commit d512650340b3d28db763d018a6b05f6edf165bf0)
2003-09-15 18:53:01 +00:00
Tim Potter
abdc2695e2 Fixed typo in debug.
(This used to be commit e2b5dd7d9b351984c40876f3c86f2a006e0eec42)
2003-09-15 12:22:34 +00:00
Jeremy Allison
b5f07b9ca8 Fix for bug #273 - smbd crash on machine account change.
Someone only half changed the code to use dc_name
instead of remote machine... Found via back trace from Dariush Forouher
<dariush@forouher.de>.
Jeremy.
(This used to be commit 963b24ac1a721a8b0d348b578f25b1d8cb7e2124)
2003-09-10 18:34:57 +00:00
Jeremy Allison
5daacc87b5 Protect against core dump if ioctl for print job sends invalid fid. Found
by Iskantharajah T <is@tracetec.com.my>.
Jeremy.
(This used to be commit a9f9dd71da41801c975303a385ff229788c9498a)
2003-09-08 20:27:28 +00:00
Gerald Carter
e56192d0cf make sure we substitute basic variables in read/write list
(This used to be commit 52bea54d35e7fb32c7ed7b067c13afe53761affb)
2003-09-08 15:24:01 +00:00
Volker Lendecke
1c38391c70 Nobody complained on the team-list, so commit it ...
This implements some kind of improved AFS support for Samba on Linux with
OpenAFS 1.2.10. ./configure --with-fake-kaserver assumes that you have
OpenAFS on your machine. To use this, you have to put the AFS server's KeyFile
into secrets.tdb with 'net afskey'. If this is done, on each tree connect
smbd creates a Kerberos V4 ticket suitable for use by the AFS client and
gives it to the kernel via the AFS syscall. This is meant to be very
light-weight, so I did not link in a whole lot of libraries to be more
platform-independent using the ka_SetToken function call.

Volker
(This used to be commit 5775690ee8e17d3e98355b5147e4aed47e8dc213)
2003-09-07 16:36:13 +00:00
Jeremy Allison
966b0fc7c9 More cachegrind tuning, plus fix an error message.
Jeremy.
(This used to be commit 8cb9ec5d533085d40fc6bfe4ca9647d80bf41ac7)
2003-09-05 21:30:50 +00:00
Jeremy Allison
94f59f5492 More tuning from cachegrind. Change most trim_string() calls to trim_char(0,
as that's what they do. Fix string_replace() to fast-path ascii.
Jeremy.
(This used to be commit f35e9a8b909d3c74be47083ccc4a4e91a14938db)
2003-09-05 19:59:55 +00:00
Gerald Carter
5a74bdd7aa fix bug 397: use a variant of alloc_sub_basic() for string lists.
(This used to be commit 62d5611df0cf86c267d7fe820822d4d019ae28bd)
2003-09-05 05:32:32 +00:00
Jeremy Allison
3c1c2ddf9a Fix UNIX passwd sync properly. I've finally understood
the as_root parameter has bugger all to do with who you *currently*
are, and everything to do with who you run the script as. Doh !
Jeremy.
(This used to be commit 17a241d9f788b63fec091001cb72d34c09cf32a4)
2003-09-04 18:02:17 +00:00
Jeremy Allison
245fbf7efb Used cachegrind to track down some bottlenecks.
Removed calls to clobber_region when not compiling with developer as
they were hiding speed problems.
Added fast path to convert_string() when dealing with ascii -> ascii,
ucs2-le to ascii and ascii to ucs2-le with values <= 0x7F. This
gives a speedup of 22% on my nbench tests.
Next I will do this on convert_string_allocate.
Jeremy.
(This used to be commit ef140d15ea0d76a3e7cdcadbfd3e917c210a9411)
2003-09-04 01:12:39 +00:00
Jeremy Allison
fcdebdae6f Fix bug found by tridge in 2.2.x. Ensure that %U substitution is
restored on next valid packet if a logon fails. This has relevence
if people are using su.exe within logon scripts !
Jeremy.
(This used to be commit d405a93a9d3f9a1d93bb3289b00683fba3160bbe)
2003-08-28 23:57:34 +00:00
Gerald Carter
c2983f9323 Fix bug 327 (again and I think for the last time). Make sure that
pam_smbpass.so will load ok.  Had to move some functions around to work
around dependency problems (hence the new passdb/lookup_sid.c)

Also make sure that libsmbclient.a is built and installed when
we support shared libraries.
(This used to be commit 780055f4422f11fb0524ac1f003cdc5f317f8b19)
2003-08-27 20:52:56 +00:00
Jeremy Allison
46765d97fa Check for embedded mb chars when testing for illegal characters like /.
Should fix mangling for Japanese language.
Jeremy.
(This used to be commit a238bcc440e310a9ea7800e4fb0b4d39c1f0a0d7)
2003-08-27 19:01:55 +00:00
Jeremy Allison
9511c987df Fix initial debug.
Jeremy.
(This used to be commit bd40da06352184ed1c4bcaf3449dcdc7fdc59bbd)
2003-08-27 18:21:26 +00:00
Jeremy Allison
8df07f37a2 Remove completely unneeded malloc/free out of this codepath.
Jeremy.
(This used to be commit fda254169778cc3fa9c226473b5a1f95c17c99a7)
2003-08-27 18:17:33 +00:00
Gerald Carter
399ac9a703 adding some debugs while tracking down a bug
(This used to be commit 627ff578613b8762415cc03cbbaff68e70f96dbf)
2003-08-26 03:13:39 +00:00
Volker Lendecke
f474b7fb4e Fix memleak.
(This used to be commit afbf15f94189f50cd447d9bcdebbc4886800b05a)
2003-08-25 09:13:54 +00:00
Jeremy Allison
ecddae8bf0 Attempt to fix the charcnv issues causing nmbd to crash. If we get a failed
conversion simply copy as is. Also fixed the horrid malloc-twice-copy code
in the convert alloc path.
Jeremy.
(This used to be commit cfde7477fd12caef943a9422b52174438092a135)
2003-08-20 22:06:19 +00:00
Gerald Carter
8bfe26b62d metze's autogenerate patch for version.h
(This used to be commit ae452e51b02672a56adf18aa7a7e365eeaba9272)
2003-08-20 17:13:38 +00:00
Gerald Carter
49e66508f2 Fix BUG #314: api_netUserGetGRoups() was failing prematurely
(also fixed the call to return the real groups and not a mocked
  up list)

Fixed simple compiler warning in srv_lsa_ds.c
(This used to be commit 6b0e38e01a44d87b844d973318accc456abef857)
2003-08-19 04:17:21 +00:00
Jeremy Allison
6d6401a67a Implement SMBexit properly. Found by Samba4 tester. You must do a make
clean proto all; after this commit.
Jeremy.
(This used to be commit 27af1f9feab12542dc538bfceac4593e644ba3b4)
2003-08-19 01:53:45 +00:00
Jeremy Allison
c0236e8ae3 Fix flush of 0xFFFF - found by Samba4 tester.
Jeremy.
(This used to be commit 8a5c97fa07eacd4cecb5afd9c197352dfa613b9f)
2003-08-19 01:26:43 +00:00
Jeremy Allison
e83a8a40c8 Don't return DOS error on SMBsearch return if using NT error codes (NT1
protocol level). Fix for Samba4 tester.
Jeremy.
(This used to be commit 74486ab9efbb555f830b0e5d1c88f7bf065ae039)
2003-08-19 01:02:41 +00:00
Andrew Bartlett
c236ac83c8 Win2k never returns 'no such user' here, so when we do it, the clients freak
out.  Return the standard 'logon failure' instead.

Andrew Bartlett
(This used to be commit a83506802fd331af78d2fd6e6a5cd507b5a40ca3)
2003-08-18 23:48:03 +00:00
Jeremy Allison
1f438cbfbf Added level 262. Found by Samba4 torture tester.
Jeremy.
(This used to be commit 12d8863be3045efa33ece1aa17073b21aecb2e97)
2003-08-18 21:54:42 +00:00
Jeremy Allison
fdf78a4997 Add level 261 to search. Found using Samba4 tester.
Jeremy.
(This used to be commit 4ee99d1c412ecc77541c988f6795ae3cb89907b8)
2003-08-18 21:38:33 +00:00
Jeremy Allison
3a052c9e0a Implemented the level 1010 NT rename level. Many fixes for Samba4 test
correctness.
Jeremy.
(This used to be commit f57429befa43d63ed9a6e19b854e22fd4151db40)
2003-08-16 02:34:03 +00:00
Volker Lendecke
c9aa836204 Fix memleaks.
Currently I'm compiling against MIT Kerberos 1.2.8.

Anthony, you said you have a heimdal installation available. Could you
please compile this stuff with krb and check it with valgrind?

Thanks,

Volker
(This used to be commit d8ab44685994b302bb46eed9001c72c194d13dc8)
2003-08-15 01:46:09 +00:00
Herb Lewis
062f89bc28 get rid of some sompiler warnings on IRIX
(This used to be commit a6a39c61e8228c8b3b7552ab3c61ec3a6a639143)
2003-08-15 01:42:30 +00:00
Herb Lewis
cc865e1edc get rid of unused call
(This used to be commit 244c61b1dd52121109e6fd7c3514d1a73d1fa303)
2003-08-15 01:36:35 +00:00
Jeremy Allison
87a672067d Fix attribute set using setfileinfo - Samba4 found.
Jeremy.
(This used to be commit 309835deacea9e49a8867cc981e78e6ae3efe42b)
2003-08-15 01:22:01 +00:00
Jeremy Allison
8ceb628d5c Ignore silently set disposition information when set on a path.
Samba4 tester.
Jeremy.
(This used to be commit e9cef615550fc2dc4a8a84ca080f13dc39d5b292)
2003-08-15 00:42:16 +00:00
Jeremy Allison
5a8c2f5a44 nlink field should decrement when delete pending is set.
Found by Samba4.
Jeremy.
(This used to be commit fbdf276e36b66e9ae65cb3f127ed80cfe9a43cac)
2003-08-14 23:47:12 +00:00
Jeremy Allison
6a0c1d0baf Fix setfileinfo level 1 - it only takes 12 bytes. Found by Samba4
torture tester.
Jeremy.
(This used to be commit 273ebfceb3142f485c2874f84114600d4a58c523)
2003-08-14 23:40:45 +00:00
Jeremy Allison
1699fadcdb Fix changing of attributes via setattr. Samba4 test fixes.
Jeremy.
(This used to be commit 97e1d5c9573513c9c9be9a709341bda54fbe44be)
2003-08-14 23:15:02 +00:00
Jeremy Allison
4e8b36a574 Fix SMBseek and get/set position information SMBs. Works against
Samba4 tester. You will need a make clean; make all after this !
Jeremy.
(This used to be commit 10d90171ed58bee3e5ab6476341059b585034134)
2003-08-14 21:16:06 +00:00
Volker Lendecke
bb6dff2cb1 In ads_verify_realm, all we use in the ADS_STRUCT is the
auth.realm. So directly pass that instead of setting up and tearing
down the ADS_STRUCT.

Volker
(This used to be commit ce5b8d2ec20fe1f4d3d1956020d88272fb84124a)
2003-08-14 21:07:49 +00:00
Jeremy Allison
c41fad7647 Query volume info level 2 fix - found by Samba4 tester.
Jeremy.
(This used to be commit fd86e2a38766af1cf01667c6f6248af7572b278f)
2003-08-13 03:49:43 +00:00
Jeremy Allison
405135fdeb Better path checking for chkpth. We now pass Samba4 chkpath and unlink.
Jeremy.
(This used to be commit 00a57b0953c40a0ad6780eae84b4c558e21dbcfd)
2003-08-13 03:28:06 +00:00
Jeremy Allison
db58f51416 More chkpth fixes from Samba4 tests.
Jeremy.
(This used to be commit a62cf6bf16e2f435f504e936c31992f5697a309a)
2003-08-13 02:31:22 +00:00
Jeremy Allison
a9975acc92 Ensure we pass the Samba4 unlink test !
Jeremy.
(This used to be commit 73aaf8094c2fed76b6650afbd8ff4f050f5e52d2)
2003-08-13 00:31:23 +00:00
Jeremy Allison
df35fb0745 Fix another error code return against Samba4 test suite... Don't allow
a path above root.
Jeremy.
(This used to be commit 9bc0e4fe04c4134add428c889d316bd5ee4fb6e9)
2003-08-12 04:52:11 +00:00
Jeremy Allison
4511b334a8 Test invalid map system, map hidden, create mask, force create mask
parameters. Fix return code for Samba 4 torture tester.
Jeremy.
(This used to be commit c043835c878ff062cb6eede02334f9e0ebb01050)
2003-08-12 04:28:22 +00:00
Gerald Carter
c1bc3a7841 fix for BUG #267 (problem with supplementary groups).
Use winbindd to get the group list if possible since we already
know it from netsamlogon_cache.tdb. More effecient than letting
libc call getgrent() to get seconary groups.

Tested by Ken Cross.
(This used to be commit 3c537c906f29a08e75895c8c8e3ed5c5abaaa940)
2003-08-09 23:12:35 +00:00
Jeremy Allison
a83bac7571 Shadow copy API - Original work by "Ken Cross" <kcross@nssolutions.com>, adapted
into a patch by "Stefan (metze) Metzmacher" <metze@metzemix.de>.
Jeremy.
(This used to be commit ce5c91d35dabc5ff6fb3df2b259ed186d6a7e0da)
2003-08-07 21:47:46 +00:00
Jeremy Allison
3bbe9c0869 An oplock break reply from the client causes the sequence number to be
updated by 2 if there is no open reply outstanding, else by one....
Yes - this makes no sense....
Jeremy.
(This used to be commit b43ce1ff6109f6422a621329ceb713b42df40040)
2003-08-07 05:36:08 +00:00
Jeremy Allison
110abf10d2 Turns out I had my packet sequences wrong for oplock break code.
I was storing the mid of the oplock break - I should have been
storing the mid from the open. There are thus 2 types of deferred
packet sequence returns - ones that increment the sequence number
(returns from oplock causing opens) and ones that don't (change notify
returns etc). Running with signing forced on does lead to some
interesting tests :-).
Jeremy.
(This used to be commit 85907f02cec566502d9e4adabbd414020a26064d)
2003-08-07 02:59:52 +00:00
Tim Potter
74be920b0e Spelling.
(This used to be commit 7d009ebf66c82b254828bac267102eb6e6a4a75e)
2003-08-06 01:14:51 +00:00