1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

23129 Commits

Author SHA1 Message Date
Jeremy Allison
ad38725f96 Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit e7406822d32d5b36d3706144efbd1eaa7c44cead)
2008-02-29 06:56:06 -08:00
Jeremy Allison
6a7b6a1961 Patch to fix the "Invalid read of size 4" errors. Bug #3617.
Jeremy.
(This used to be commit fa12667ec284fdda45b79cbf6bf548ab0faae34f)
2008-02-29 06:55:33 -08:00
Günther Deschner
c613bd5d4e Add infrastructure for reading/storing Group Policy state and control data in the registry.
Guenther
(This used to be commit f673bbd300d972dd7ae2d092b3b1e642ed29cfd2)
2008-02-29 15:48:14 +01:00
Volker Lendecke
b50eb31bb4 Fix warnings
(This used to be commit 9a966e5593ae4474014aec5d8c68c489ac8ce0c9)
2008-02-29 15:17:38 +01:00
Günther Deschner
f12770079b Pure cosmetics, trying to get my group policy diff smaller.
Gunther
(This used to be commit d7346e9360ffa97e44fa781293d32c707436193b)
2008-02-29 14:53:13 +01:00
Jeremy Allison
6346ab79a6 Fix part of bug #3617 from valgrind trace.
"Invalid read of size 1" errors.
Jeremy.
(This used to be commit d954a4954ba8ed6cb2c6074176a6008cfa398dd7)
2008-02-29 05:51:09 -08:00
Michael Adam
e9c2515df0 Eliminate tons of build warnings on non-IPV6 system.
Michael
(This used to be commit ee4810099c2d26a0ebab3c41a95bc6b57921683d)
2008-02-29 13:35:16 +01:00
Michael Adam
af3e746d9e Revert "make idl: Only compile idl files newer than the output to be generated."
This reverts commit 79c199d16e565eabd9fd971247f8df62689bb92a.

Revert this until pidl is capable of doing decent dependency tracking
itself (importing types from imported idls).

Michael
(This used to be commit 1fb69ad1f5c79dd77f73a5fee266e1e363e6974d)
2008-02-29 13:17:28 +01:00
Michael Adam
d40b891eb0 Revert "Add libnet_join.idl to the IDL files to be processed by "make idl"."
This reverts commit 9b47a7329091b2bfe7cd9b2112ac8fa652ed9f60.

libnet_join.idl should not be processed along with the other idl files
since it should not produce server and client code, just the header.

Michael
(This used to be commit 2967b29f23e04f24a62ea576b0b6c948055689d0)
2008-02-29 13:17:28 +01:00
Andreas Schneider
1751b533f0 Rename the 'hidden' variable to 'administrative share'.
(This used to be commit eff3d3bad5a8860b99375cc0be9dc24f3679e416)
2008-02-29 13:08:04 +01:00
Michael Adam
4688f2600b Fix linking of smbget when there is no shared library support.
smbget needs libwbclient.

Michael
(This used to be commit 78bc496ecf72b5c2474911302e81a90c488e3070)
2008-02-29 12:38:29 +01:00
Volker Lendecke
695b6662ab Attempt to fix the build
(This used to be commit 364d87a5e41045808ebd28f46c5c0c93bd13a7da)
2008-02-29 10:17:35 +01:00
Stefan Metzmacher
85b7f90c47 configure: only build vfs_syncops if dirfd() is available
This hopefully fixes the build on HP-UX.

metze
(This used to be commit 5fb7533e37b6c682e019b1c3515dc6befc8bda09)
2008-02-29 09:58:37 +01:00
Stefan Metzmacher
8657066f3a configure: Remove lib/repdir.c and related stuff
It was only used in configure, but lib/replace already
has a much better version of it.

metze
(This used to be commit c9b60b75b4763c37cfa63741b4f055e4ea488e92)
2008-02-29 09:48:24 +01:00
Volker Lendecke
18206a4cb5 Add vfs_aio_fork
This is used for two purposes:

First, I'm using it to test the async I/O code. In the forked process it is
pretty easy to delay a reply for a random amount of time. See the
BUILD_FARM_HACKS snippet.

Second, there are systems around that claim to have Posix AIO but which is
broken. This might be some help for those systems.

Also add tests how to pass file descriptors
(This used to be commit b0e52cecf2009d4c7f29412dadf17910e54e4327)
2008-02-29 09:47:53 +01:00
Michael Adam
bab27a2ff2 Fix creation of replacetort.
Forgot to git add Makefile.in before doing git commit --amend
in previous commit...

Michael
(This used to be commit 7cf645cdae8ce17705036951538991b0a9dbefaf)
2008-02-29 09:40:09 +01:00
Michael Adam
71f74cfc67 libreplace: add snprintf.c to test code for getifaddrs - needed on some systems.
Michael
(cherry picked from commit 0aff54a12e20d5e91fcdec7aaec103fb9a371a23)
(This used to be commit 77b7d7c0417e498340d1c9364fbbb8671c175477)
2008-02-29 09:32:11 +01:00
Michael Adam
a73f4bc27f libreplace: ifdef out ip6 code if unsupported.
Michael
(cherry picked from commit 54cc0df4dbf6d63a9b94e1ac6af4ec7f7803bc30)
(This used to be commit 1ff0b616a9cb029040031f797b52112d4973e1eb)
2008-02-29 09:32:05 +01:00
Michael Adam
5827e84d88 libreplace: fix rep_freeifaddrs to not segfault on NULL input.
Michael
(cherry picked from commit 0cbb87453beb52c6b0bc3a48791f49678f4030c5)
(This used to be commit 34d906ef44d1a5c3452097a9cac438d721fe35c1)
2008-02-29 09:31:57 +01:00
Michael Adam
b6578dc7fe libreplace: fix silly crashbug in getifaddrs_test().
Michael
(cherry picked from commit 523626908d25f974fd1ae6d7306b1d4bc8414162)
(This used to be commit 0906120a6e4fe0eb66f3c3fd99c625b30672cb2b)
2008-02-29 09:31:50 +01:00
Michael Adam
3be85e76a8 libreplace: add missing newline in output of getifaddrs test.
Michael
(cherry picked from commit f8243cfc47c7414bab7f249d0e5d1c85e8ca7d64)
(This used to be commit 3c1843f931b896dd3bb142346ecb44c0fb9202d6)
2008-02-29 09:31:39 +01:00
Michael Adam
539c4df84b libreplace: add missing semicolon to getifaddrs.
Michael
(cherry picked from commit 29818a07de826fd687003ff25865d77939ecaa9a)
(This used to be commit 1d906d346ed90b87895772a64c7613324ef8b682)
2008-02-29 09:31:29 +01:00
Michael Adam
39cae1d5b7 libreplace: try and fix rep_getifaddrs() for Tru64.
Don't fail when there is no address assigned to the interface.
Put NULL into the ifaddrs structure instead.

Michael
(cherry picked from commit ee170c85e0e76411bd752de5fe51db6940dab929)
(This used to be commit 650cc1da4b4404880389c583dbb07ce86df48576)
2008-02-29 09:31:19 +01:00
Michael Adam
ca237a3ad3 libreplace: use the new getifaddrs test also for autoconf.
Michael
(cherry picked from commit a2a506ff0eae2a64ebe2ddbb81a6c2a5fa7fe3da)
(This used to be commit c5932414fdf0b568cbfe6cdefaec41c8afc8ca6b)
2008-02-29 09:31:02 +01:00
Michael Adam
d24f3b8a93 libreplace: add extended getifaddrs test that prints out the interfaces.
Michael

cherry-picked from libreplace-part of 9d2bab09aac22c00fe23f1e1265a2dbd0901e9ce
and adapted replacetort creation
(This used to be commit 52d79ad4872a20cf55f31aba97629c2561bfc16c)
2008-02-29 09:30:40 +01:00
Günther Deschner
808348a8ca Trying to fix libnetapi examples Makefile.in.
Guenther
(This used to be commit 405ef74d7e9ef614ea39b7cfd1d57307d9490545)
2008-02-29 02:49:27 +01:00
Günther Deschner
53d55794df libnetjoin: add fallback to level 24 samr setinfo so that libnet can join NT4.
Guenther
(This used to be commit bc2d3d51449831146a9faf6e809e7a91d174659c)
2008-02-29 01:27:52 +01:00
Günther Deschner
29222fa551 libnetjoin: Trying to avoid confusion between acct_flags, acb_info and
access_desired.

Guenther
(This used to be commit 63894e5c93ef0663fc58bcc191777cd1aca7e21c)
2008-02-29 01:25:45 +01:00
Günther Deschner
700438dbbd Fix samr querydispinfo w.r.t. lsa_AsciiStringLarge.
Thanks metze for the fix.

Guenther
(This used to be commit dcffb885bc5d16e795b71d95e0790d3d7d70cf3c)
2008-02-28 23:37:47 +01:00
Günther Deschner
de39bd20c1 Re-run make idl.
Guenther
(This used to be commit 7d88cb2e8db8789b923d8f9979b5c9f65664d3eb)
2008-02-28 23:37:18 +01:00
Stefan Metzmacher
c7d0b8f3ba samr.idl: windows uses lsa_AsciiStringLarge in QueryDisplayInfo
Tested with nt4 and w2k3.

metze
(This used to be commit 490d0c52bb117561227cbc59a15b15b688814fe2)
2008-02-28 23:31:22 +01:00
Stefan Metzmacher
5e7cc85a12 lsa.idl: strlen_m*() also for the lsa_AsciiString* versions
We already did this before b994f899b42d294c0418bdc82660a2f7510667d6.

This is needed to handle NULL strings, where strlen() would crash...

Maybe we should add a strlen_a() and strlen_a_term() later...

metze
(This used to be commit c445a17a91827c6c95b3a1cda9b78f5cdd41aa55)
2008-02-28 23:30:22 +01:00
Stefan Metzmacher
364ce40643 lsa.idl: use strlen_m_term() in lsa_StringLarge to support NULL strings
metze
(This used to be commit d98ac73122d44f3a92531b4ebbe09401652b89c7)
2008-02-28 23:30:07 +01:00
Stefan Metzmacher
48bffb0f34 lsa.idl: add lsa_AsciiStringLarge
metze
(This used to be commit bf5da9ea08f28f37aecc0674bd9322f0f0cbd82e)
2008-02-28 23:29:46 +01:00
Stefan Metzmacher
f610e1fa52 lsa.idl: don't use ascstr_noterm anymore
metze
(This used to be commit 1937d19623029cc4ac0f2c4b336b6460399fa509)
2008-02-28 23:29:35 +01:00
Günther Deschner
a29b042204 Remove DomainControllerAddressType which we now have in IDL.
Guenther
(This used to be commit 0a012c12d643e627ea1bad2a2ad6214f78918fa7)
2008-02-28 23:15:30 +01:00
Günther Deschner
bddceee09a Fix memleak in netsamlogon_cache_get().
Guenther
(This used to be commit b736c77dc6c36dcdb601903fadf0ef7f163052a3)
2008-02-28 23:15:11 +01:00
Stefan Metzmacher
76de025c72 winbind: use a struct element for WBFLAG_PAM_UNIX_NAME
To not conflict with WBFLAG_PAM_INFO3_TEXT.

This should fix pam_winbind.

metze
(This used to be commit 1b8ed6c0ffb2548442bb7e9d848117ce9b1c65c0)
2008-02-28 23:00:42 +01:00
Günther Deschner
37bca2ea57 While we are at it: add _wkssvc_NetrUnjoinDomain2 implementation.
This can be tested with e.g. "netdom remove SAMBAHOST" from windows.

Guenther
(This used to be commit 53121e62ea32ff3a984533dca044b67cf5b2c55b)
2008-02-28 22:07:30 +01:00
Günther Deschner
781e1ab4a1 Re-enable _wkssvc_NetrJoinDomain2 remote join implementation now that we are ready for it.
"netdom join SAMBAHOST" from a windows workstation nicely demonstrates it.

Guenther
(This used to be commit 3bcaa3582a101abc17f7c21128e01024af877577)
2008-02-28 20:06:09 +01:00
Günther Deschner
27310f0768 Remove original copy of now redundant join code.
Jerry, I checked this very carefully that nothing got lost. The only thing I need to
re-add still is the normalized DN handling for account precreation in "net ads join".

Guenther
(This used to be commit a5c6347644f2aa138a8e67ffe6c167847df941d0)
2008-02-28 19:54:35 +01:00
Günther Deschner
2306574570 libnetjoin: Merge in comments, debugs and missing code from original join code.
Guenther
(This used to be commit 09e6010159cb9c2a5d86861889b8c2a07bd39a8d)
2008-02-28 19:49:07 +01:00
Gerald W. Carter
8f58ae97f0 Fix macro name (no 's' in ifr_addr).
Interface detection on Solaris still failing due to items pointed out here:
http://lists.samba.org/archive/samba-technical/2007-November/056701.html
(This used to be commit 37c87acc9d48c1fb5d4806374ca8e992300db1ff)
2008-02-28 11:58:05 -06:00
Günther Deschner
77a2531810 Only set DEBUGLEVEL to 0 in libnetapi when not set already.
Guenther
(This used to be commit 3ace1601ac5b5d87d6bfd8aa0afe0c75858b6990)
2008-02-28 17:25:33 +01:00
Günther Deschner
15f6e27bd5 Add some more error handling in libnetjoin.
Guenther
(This used to be commit 892b2bc0cf1692c5707d322d0eb711b8245a3a96)
2008-02-28 17:05:38 +01:00
Günther Deschner
4a8e6c9a91 Use libnetapi_get_error_string() in "net dom" commands.
Guenther
(This used to be commit 58048f0c575d6ac5b770873e308d4a1a9ce68123)
2008-02-28 17:05:38 +01:00
Karolin Seeger
e1b32594c7 Remove smbmount.
Karolin
(This used to be commit 5fbd98f7065268ae134108310119078ad8f62322)
2008-02-28 15:53:43 +01:00
Volker Lendecke
95222d115a Convert cli_read to use cli_pull
(This used to be commit 719527f55e88f0c5fdceda5c807475aba299c79f)
2008-02-28 15:27:55 +01:00
Volker Lendecke
525aac775e 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 844a163458c7585e4306a21ffdae5d08e03d6e4d)
2008-02-28 15:27:55 +01:00
Volker Lendecke
1d41b5bd2a Add infrastructure to support async SMB requests
(This used to be commit f5356825698a02df2d400b51dd95d1f857c83e81)
2008-02-28 15:27:55 +01:00