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

23100 Commits

Author SHA1 Message Date
Günther Deschner
45c91e7d75 Use pidl for _srvsvc_NetShareAdd.
Guenther
(This used to be commit fd3e7728181e7a208706e477905173bec44c982e)
2008-03-08 00:22:44 +01:00
Günther Deschner
8204efef16 Re-run make idl.
Guenther
(This used to be commit 39e9cfa3018786f176aeb237ea7805da4e576c62)
2008-03-07 23:55:52 +01:00
Günther Deschner
00255e12d7 Fix IDL for srvsvc_NetShareAdd().
Guenther
(This used to be commit 1e7d77766e282c8c20d03d1b1e80346468848ea9)
2008-03-07 23:55:01 +01:00
Günther Deschner
91710a5f85 Remove unused marshalling for SRV_NET_NAME_VALIDATE.
Guenther
(This used to be commit 6ffd6c814fafe4112fe72a96a0893d5be06f4380)
2008-03-07 23:51:34 +01:00
Günther Deschner
e931f28db7 Remove unused marshalling for SRV_NET_SHARE_DEL.
Guenther
(This used to be commit 2afae94936d4fbd3b1e804111bff1960c2b852bd)
2008-03-07 23:51:34 +01:00
Günther Deschner
8e1fe6379d Use rpccli_srvsvc_NetShareDel in net.
Guenther
(This used to be commit 10d457152e8547646353f0f37f51ac92561505ef)
2008-03-07 23:51:34 +01:00
Günther Deschner
9beec265bc Use pidl for _srvsvc_NetNameValidate.
Guenther
(This used to be commit 2e1df306785296979ea064006402254e318e946b)
2008-03-07 23:51:34 +01:00
Günther Deschner
5e6e3ccd00 Add netnamevalidate command to rpcclient.
Guenther
(This used to be commit 140885d3d87ea2de14b3393a7384dff74a4dd44c)
2008-03-07 23:51:34 +01:00
Michael Adam
ea0b148a96 configure: fix quotation in SMB_LIBRARY for help output.
Michael
(This used to be commit 96f85a48beb7da9c373fc030474020d05c55a18d)
2008-03-07 23:45:52 +01:00
Günther Deschner
ad3a1b8475 Use pidl for _srvsvc_NetShareDel and _srvsvc_NetShareDelSticky.
Guenther
(This used to be commit 73b6587493d9a987a691ece495db9f42ce562efe)
2008-03-07 23:26:00 +01:00
Günther Deschner
024cf110b0 Use pidl generated NetShareGet/SetInfo and Enum calls in rpcclient.
Guenther
(This used to be commit c940c62029fbce5f2b943f0fb06037fc89bfd297)
2008-03-07 22:58:48 +01:00
Günther Deschner
7b75317989 Use pidl for _srvsvc_NetShareGetInfo, _srvsvc_NetShareEnum and srvsvc_NetShareEnumAll.
Fixing resume handling while we are there.

Guenther
(This used to be commit 128637bdd7c37ca166a7d478b33b00c39f0ede62)
2008-03-07 20:59:30 +01:00
Günther Deschner
5259a7a808 Enable libnetjoin debugging for now but avoid printing passwords.
The gen_ndr needs proper fixing still.

Guenther
(This used to be commit 966d7244d7765d285a7026b97e6093fd1f8d83ce)
2008-03-07 18:31:13 +01:00
Simo Sorce
9e83c9159e Enable use of Relocations Read-Only, if supported, for enhanced security.
(This used to be commit c20c5f082162ff6c0c2931f456897334aa002e83)
2008-03-07 11:33:26 -05:00
Michael Adam
156c42fd4f Time to confess...
Michael
(This used to be commit 4e584c6e3699d8c05b163cc5674af04d106692ba)
2008-03-07 14:31:08 +01:00
Günther Deschner
221af840a5 Add some more init_srvsvc_NetShareInfoX functions.
Guenther
(This used to be commit cb3577e695f80d76e4c20f6396d57e3a2047c3c4)
2008-03-07 13:08:34 +01:00
Günther Deschner
766c669be1 Re-run make idl.
Guenther
(This used to be commit b0cb768287de861f1d1630c9a4c70d9af2a74147)
2008-03-07 13:08:26 +01:00
Günther Deschner
f78316c2a7 Fix IDL for srvsvc_NetShareEnum and srvsvc_NetShareEnumAll.
Guenther
(This used to be commit e5ae43051e3bcdbad359737b19ec7f5e4b0ccd28)
2008-03-07 13:08:15 +01:00
Günther Deschner
3279d3110f Fix debug statement (missing \n).
Guenther
(This used to be commit 5895b973a4e7067535aff6e0c9a7273e332dee1a)
2008-03-07 13:07:50 +01:00
Jeremy Allison
868c5c986a Fix bug #5267 - nmbd shuts down when network interfaces go down.
Cause nmbd to wait for an interface, in a mode where SIGTERM
will kills us (same way we wait on startup for an interface).
Jeremy.
(This used to be commit 5440c752ff270cc674d46f2dfa2ceb47dac030f6)
2008-03-06 17:43:25 -08:00
Jeremy Allison
6f4cd6df77 client[ADDR_INDEX] is an IPv4 mapped to IPv6, but
the list item is not. Try and match the IPv4 part of
address only. This will happen a lot on IPv6 enabled
systems with IPv4 allow/deny lists in smb.conf.
Bug #5311.
Jeremy.
(This used to be commit 7c3550f82c51ce173b13e568762f728ecb881e85)
2008-03-06 14:44:07 -08:00
Günther Deschner
ffd88c35db Fix _dssetup_DsRoleGetPrimaryDomainInformation().
Guenther
(This used to be commit 5eb7b7a9db4bda40660df5ab67bfea99e75716f9)
2008-03-06 20:44:28 +01:00
Günther Deschner
266af5887e Fix the build of cifs.spnego.
Guenther
(This used to be commit 9eaaf17d30388ef9446fb18e69197baa699b7eac)
2008-03-06 19:49:27 +01:00
Michael Adam
bdee4a5cb3 Revert "Build: Add an rpath of $(LIBDIR) to binary targets."
This reverts commit 3a0f781352f364ce625a35ffd78257b27d984c47.

This needs more thought.

Setting RPATH like this does not work on all supported
platforms (Linux, Solaris and AIX seem to work, HP-UX,
Tru64 and MacOS don't, MacOS doesn't even seem to have
an rpath at all prior to 10.4).

What is more, rpath also has some bad effects (when
updating libraries, e.g.), so it should not be set
unconditionally.

I will come up with a confiugure mechanism to control this.

For now, just use the LDFLAGS environment variable if
you want to use an rpath.

Sorry for any inconveniences.

Michael
(This used to be commit 6850dc242b010bdcef5e427e51be04201f55b7f3)
2008-03-06 18:03:56 +01:00
Günther Deschner
65a73ff0ec Re-run make idl.
Guenther
(This used to be commit c0bc09854f0cea03bc0cc6845244ff12ca7229b6)
2008-03-06 17:11:03 +01:00
Günther Deschner
0ffbd42de2 Ignore Kerberos PAC type 12.
Until we worked out the PAC_TYPE_UNKNOWN_12 format (or received documentation)
ignore it so that the PAC parsing can proceed.

Guenther
(This used to be commit 3630ec26c99fdea46c47117d026f9bffb2c4590a)
2008-03-06 17:11:03 +01:00
Derrell Lipman
914cd3e483 Eliminate global variable in_client and a plethora of extern declarations.
Derrell
(This used to be commit b7f34e7ef2907b498a0645ce68f2773ed7d60cdc)
2008-03-06 10:41:42 -05:00
Volker Lendecke
5eb347193f Fix a "nested extern declaration" warning
(This used to be commit e473e6d50c56f52ef5e4853e4ca3b3548af06f51)
2008-03-06 15:50:46 +01:00
Derrell Lipman
5b80b9340f Check for NULL pointers before dereferencing them.
(This used to be commit 6f65390cec218a6aac4370ee381f30439617dcec)
2008-03-06 09:00:37 -05:00
Michael Adam
a521f39c89 Build: Add an rpath of $(LIBDIR) to binary targets.
This removes the need of setting LD_LIBRARY_PATH.

Michael
(This used to be commit 3a0f781352f364ce625a35ffd78257b27d984c47)
2008-03-06 14:56:24 +01:00
Günther Deschner
b4df9f5966 Re-run make idl.
Guenther
(This used to be commit 9ccda75b376b559f81ed11e729bc11a1c83f6861)
2008-03-06 14:47:21 +01:00
Günther Deschner
cd8c5468bf Slowly making progress on PAC_UNKNOWN_12.
unknown1 and unknown2 are offset headers for the strings.

Guenther
(This used to be commit 7af70e75b9abf92921f33ec4207ad486ee2493d6)
2008-03-06 14:16:14 +01:00
Volker Lendecke
5193ae9b5a Change default bufsize to 512k
I did not do any scientific tests, but the dummy test on my laptop against a
w2k3 vmware shows that in this specific situation going beyond 512k seems not
to gain anything anymore.

smb: \> iosize 64512
iosize is now 64512
smb: \> lcd /dev
smb: \> get random null
getting file \random of size 104857600 as null (33453,1 kb/s) (average 19718,5 kb/s)
smb: \> get random null
getting file \random of size 104857600 as null (34236,0 kb/s) (average 20509,1 kb/s)
smb: \> iosize 524288
iosize is now 524288
smb: \> get random null
getting file \random of size 104857600 as null (49042,1 kb/s) (average 22521,9 kb/s)
smb: \> get random null
getting file \random of size 104857600 as null (49420,8 kb/s) (average 23432,9 kb/s)
smb: \> iosize 1048576
iosize is now 1048576
smb: \> get random null
getting file \random of size 104857600 as null (49420,8 kb/s) (average 24284,2 kb/s)
smb: \> get random null
getting file \random of size 104857600 as null (49136,3 kb/s) (average 25076,9 kb/s)
(This used to be commit 1bcfef6a9093aa873550a263dc142c8a3f5edffd)
2008-03-06 13:28:23 +01:00
Volker Lendecke
a8003f1af2 Use io_bufsize as window size in smbclient get command
(This used to be commit e602f06cbba852a7eacd15b2511ef2571a95cc80)
2008-03-06 13:28:23 +01:00
Volker Lendecke
a015227490 Convert cli_read to use cli_pull
(This used to be commit d69b20111a849152a7d9108763207c813bf9068b)
2008-03-06 13:28:23 +01:00
Volker Lendecke
6244578835 Add async cli_pull support
This is the big (and potentially controversial) one. It took a phone call to
explain to metze what is going on inside cli_pull_read_done, but I would really
like everybody to understand this function. It is a very good and reasonably
complex example of async programming. If we want more asynchronism in s3, this
is what we will have to deal with :-)

Make use of it in the smbclient "get" command.

Volker
(This used to be commit 76f9b360ee1d973630d82d401eeddce858189301)
2008-03-06 13:28:23 +01:00
Volker Lendecke
1ea0a5d0cd Add infrastructure to support async SMB requests
(This used to be commit e2153301351559f30f2714345f4c1ca6c5f1a45f)
2008-03-06 13:28:23 +01:00
Volker Lendecke
f05bc40389 Add basic infrastructure for general async requests
(This used to be commit 9f8b2a87ee8bba930b776dcfda608a5639f6d55a)
2008-03-06 13:28:23 +01:00
Günther Deschner
23cd8e5ea7 Be more verbose why create local token has failed during
NTLMSSP and Kerberos session setup

Guenther
(This used to be commit 18b8c2c19e50aee8fc900c7507244cb95014a4fa)
2008-03-06 12:27:11 +01:00
Volker Lendecke
7215b1f69a Fix an uninitialized variable, Coverity ID 481
(This used to be commit 9e4f576abfdd5605f4db9bb87c22ec68c94ff850)
2008-03-06 11:47:31 +01:00
Volker Lendecke
439fe513c1 Fix a memleak
Fixes Coverity ID 557
(This used to be commit fe882a575152233de6f4bf2143aca681319b0226)
2008-03-06 11:37:01 +01:00
Volker Lendecke
e82c9d1c31 Check the right pointer for non-NULL
Fix Coverity ID 558, 559
(This used to be commit 8e33d19d93ef57a9438aad085aaf04b7c09fe09b)
2008-03-06 11:33:26 +01:00
Michael Adam
26537251a3 Make test: set LD_LIBRARY_PATH for make test_shlibs and friends.
Michael
(This used to be commit 21a527569bccff8e8cb6e751c9f3fce6ff598204)
2008-03-06 10:26:37 +01:00
Volker Lendecke
05af5c367d Respect FAMChanged -- attempt to fix bug 5307
Thanks to Ricardo Santos
(This used to be commit 8ef57a34ebf24e577ba7bca57a5456c1f78a3659)
2008-03-06 10:07:46 +01:00
Günther Deschner
ddd8bdedcb Fix lp_load with an empty registry and "config backend = registry". Michael, please check.
Guenther
(This used to be commit d9f4060c660da0ad671e061b123df71d109d51b9)
2008-03-06 09:52:06 +01:00
Günther Deschner
fee1ab1049 In libnetapi, point out that lp_load has failed.
Guenther
(This used to be commit be673bfc61559f661040c6fb1ba7d2e4552967f2)
2008-03-06 09:52:06 +01:00
Michael Adam
aa4213bde7 Test: Properly track current test binary for tracking crashes.
Make sure the panic action always has the right test binary set.

Michael
(This used to be commit 567ac329dcec6fc839d6b25cbf1872f1f51ff7e5)
2008-03-06 09:25:49 +01:00
Michael Adam
04afd3d5ac Build: fix bin/net on Solaris - use -ltdb instead of bin/libtdb.so
Reported by Christian McHugh <christian.mchugh@nau.edu> on the samba ML.

Michael
(This used to be commit 3398403c22c0f39b0d91621d81e31004fc8d28bc)
2008-03-05 23:47:59 +01:00
Volker Lendecke
03451a516a Fix coverity ID 525, 526, 527, 528, 529 and 530
Upon failure to allocate one of the arrays, further down the TALLOC_FREE would
have looked at the variables given to it without initizalizing.
(This used to be commit 6cac3127312acaac65fcd54280605605765787ad)
2008-03-05 22:36:18 +01:00
Günther Deschner
9f133a602f Fix build targets for bin/net.
Guenther
(This used to be commit 5159e3dafa9f9bb85cde6681052d8f54b8bf8a2e)
2008-03-05 22:21:10 +01:00