1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

29760 Commits

Author SHA1 Message Date
Michael Adam
4f79a8e77a packaging(RHEL-CTDB): remove the libnss_wins modules to reduce deps.
Michael
(This used to be commit 7c3e4a324248d61504c4c77a63d4d31e587802af)
2008-08-13 11:54:04 +02:00
Volker Lendecke
e21c5189ec bump version number to 32
(This used to be commit 19becb776148b7930a0abaec8038fee1158a66c4)
2008-08-13 11:54:04 +02:00
Volker Lendecke
45c1e95c72 Correctly return NULL from messaging_ctdbd_connection if messaging_init failed
(This used to be commit 549db133df6782bcca7d033e8573e47716877cbd)
2008-08-13 11:54:04 +02:00
Volker Lendecke
f72e28e24c Exit smbstatus cleanly if messaging_init fails
(This used to be commit 5fd51833a31b326d83ac2f76d06560920547f657)
2008-08-13 11:54:04 +02:00
Volker Lendecke
034a97bc9c Package 32-bit versions of libtalloc into the winbind rpm
(This used to be commit e52e2f7f1a09fff8ec37174a9dc98dc9b440ef87)
2008-08-13 11:54:04 +02:00
Volker Lendecke
37ca4b7ceb Fix README: DOCS_DIR is replaced by DOCS_TARBALL
(This used to be commit 3d24c5b4602140470c40f002d206212e388ae59b)
2008-08-13 11:54:04 +02:00
Volker Lendecke
78440cc272 Bump up version number
(This used to be commit ace315c2ffc4e81c87ba1d30c28578719cb1692b)
2008-08-13 11:54:04 +02:00
Michael Adam
d8156b967e packaging(RHEL-CTDB): use /usr/%{_libarch} instead of %{_libdir}
To fix creation of 32bit packges on x86_64

Michael
(This used to be commit ae2a353286a1a02936fb80edd6f899b1941403af)
2008-08-13 11:54:03 +02:00
Michael Adam
ac1b8c4e07 packaging(RHEL-CTDB): remove duplicate block from spec file.
Michael
(This used to be commit f978df86f9af480de26a6cf67c4f8e60d1e27139)
2008-08-13 11:54:03 +02:00
Michael Adam
14c0f896b3 packaging(RHEL-CTDB): fix placement and link direction of new shared libs
libwbclient, libtalloc, libtdb, and libnetapi are now installed
into /usr/lib{,64} by their SONAME. The symlink is made from
the .so files to point to the SONAME files (e.g., libtdb.so.1).

Michael
(This used to be commit d18287b6284597878bc3683f16f001b949857e54)
2008-08-13 11:54:03 +02:00
Michael Adam
e3d29de044 packaging(RHEL-CTDB): bump rpm release to the next version ctdb.29
Michael
(This used to be commit 0d64606da69edba20f545789e526a71d01ca40b0)
2008-08-13 11:54:03 +02:00
Michael Adam
20784e9c5c packaging(RHEL-CTDB): add "service winbind condrestart" to "%post common"
Michael
(This used to be commit c0ecb63d9e7b11bb5c31bdf95605d68c02206220)
2008-08-13 11:54:03 +02:00
Michael Adam
47dbecf35a packaging(RHEL-CTDB): use "/sbin/service smb" instead of "%{initdir}/smb"
Michael
(This used to be commit 58085063c46f3c55c8aebc83bb79a2dd19f73622)
2008-08-13 11:54:03 +02:00
Michael Adam
ecfb2274ef packaging(RHEL-CTDB): ignore errors from init scripts in pre/post scripts.
Michael
(This used to be commit 1cd7201e5387ca11e9b735d37b806cb14d4a8dd3)
2008-08-13 11:54:03 +02:00
Michael Adam
f1e91b4528 packaging(RHEL-CTDB): in %preun, first stop the service then deactivate
Michael
(This used to be commit b3e552d795caf6e4ab811368fda4a8a2f2d493a0)
2008-08-13 11:54:02 +02:00
Michael Adam
0da2b0bf86 packaging(RHEL-CTDB): use condrestart instead of restart in %post script
Michael
(This used to be commit 2ccd9ef741c88772e4b7409506258e85b252c74f)
2008-08-13 11:54:02 +02:00
Michael Adam
d12eb6e5f3 packaging(RHEL-CTDB): move service smb restart from %postun to %post
What would be the use of restarting a service that has just
been uninstalled...

Michael
(This used to be commit 98116075589abb7e0c9dc391f6d1bf3452025a1d)
2008-08-13 11:54:02 +02:00
Michael Adam
f66a474544 packaging(RHEL-CTDB): move "chkconfig --del winbind" to "%preun common"
remains of winbind are being removed from the main package.
also stop the winbind service in the "%preun common" script.

Michael
(This used to be commit 758f1de7750471815a284e9fad927112b59dc085)
2008-08-13 11:54:02 +02:00
Michael Adam
254e118d55 packaging(RHEL-CTDB): remove winbind init script and its linke from main pkg
Winbind along with its libraries and init script is packaged in the
samba-common rpm.

Michael
(This used to be commit 7ebc1ea13fd975126bfc43af48a4384fc9c620e2)
2008-08-13 11:54:02 +02:00
Michael Adam
78c034eb59 packaging: bump the rhel-ctdb rpm releas number to ctbd.28
Michael
(This used to be commit 185e24249d3dea1755558a154aa819db3bb1a605)
2008-08-13 11:54:02 +02:00
Volker Lendecke
c6ecbd92ab Do not call testparm in /etc/init.d/smb
For SOFS, we do know that we have netbios disabled, and testparm in the ctdb
shutdown event locks up due to a locked registry.tdb
(This used to be commit 285d55d2a273f18ec9b84011c74a8099cba193c2)
2008-08-13 11:54:02 +02:00
Andrew Tridgell
d609ccbab5 keep compatibility with v3-0-ctdb name for fileid:mapping option
(This used to be commit 2856d2e4a43fbcc6c8f8ac7b1613828170362861)
2008-08-13 11:54:01 +02:00
Andrew Tridgell
8c156679af update configure.rpm for clustered Samba usage
(This used to be commit 87c9f7717fc8171644c244fe697cace2968b8f8a)
2008-08-13 11:54:01 +02:00
Volker Lendecke
5a3642d5aa Add winbind:online check timeout parameter
This is a band-aid for the rather convoluted offline/online mess in winbind
right now. Winbind re-uses the offline functionality that is targeted at domain
client installations on laptops to not overload disfunctional DCs. It uses the
winbind cache timeout as the retry timeout after a DC reboot.

I am using a parametric options because when this mess is cleaned up, that
parameter needs to go away again.

I'd recommend to use something like

winbind:online check timeout = 30

in typical LAN environments. This means a reconnect is attempted every 30
seconds.

Volker
(This used to be commit 9920473cc165e75ee9aa5cbb9e568eb5fb67e9e6)
2008-08-13 11:40:35 +02:00
Volker Lendecke
9b987e3923 Attempt to fix bug 5684
With the ctdb checkin dde9f3f006 tdb optimized out write lock checks for
write-enabled transaction. Sadly, this also removed the possibility to ever
remove dead records left over from tdb_delete calls within a transaction.

Tridge, please check this! Did dde9f3f006 have any reason beyond performance
optimizations?

Thanks,

Volker
(This used to be commit 3f884c4ae36f3260e63626bdd4989d9258ae6497)
2008-08-13 10:53:17 +02:00
Volker Lendecke
e3ec81c519 Attempt to fix the build on Irix CC
(cherry picked from commit 666bf8456ac44cbbbd5524af2bf4fd89e18ddf62)
(This used to be commit 8819c51809cabe6ad0843f3838de53e785a10b47)
2008-08-13 00:01:23 +02:00
Jeremy Allison
0a60b89335 Merge from Herb. print correct test status
(This used to be commit 8cb7ae011c8b8cb244e9b87a3ad51e27646411b6)
2008-08-12 14:40:01 -07:00
Jeremy Allison
03991ab073 Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.
Here is a patch to allow many subsystems to be re-initialized. The only
functional change I made was to remove the null context tracking, as the memory
allocated here is designed to be left for the complete lifetime of the program.
Freeing this early (when all smb contexts are destroyed) could crash other
users of talloc.
Jeremy.
(This used to be commit 8c630efd25cf17aff59448ca05c1b44a41964b16)
2008-08-12 13:35:15 -07:00
Herb Lewis
9caabc441b use variables for files used in multiple places
(cherry picked from commit cee044bc42d955c535dbb6bb372af01089d37756)
(This used to be commit 2462562b5c90bc1c46237cd980810b0a69cd116d)
2008-08-12 22:01:02 +02:00
Michael Adam
743d6f707a Make sure to always set errno on error path in OpenDir (and hence scan_directory).
Michael
(This used to be commit 15fc2427f91da697e0e91f7f34b0f0c6e230a9a5)
2008-08-12 21:37:37 +02:00
Michael Adam
ac9f55b910 Fix unix_convert() for "*" after changing map_nt_error_from_unix().
map_nt_error_from_unix() now assumes that it is called in
an error path and returns an error even for a given errno == 0.
The original behaviour of unix_convert() used the mapping
of errno == 0 ==> NT_STATUS_OK to return success through
an error path.

I think this must have been an oversight, and unix_convert() worked
only by coincidence (or because explicitly using the knowledge
of the conceptually wrong working of map_nt_error_from_unix().

This patch puts this straight by not interpreting errno == 0
as an error condition and proceeding in that case.

Jeremy - please check!

Michael
(This used to be commit ec5956ab0df1b3f567470b2481b73da9c3c67371)
2008-08-12 21:37:30 +02:00
Andrew Tridgell
8b25ce06ce I found lots of places where we assume error will be set when calling
one of our virtualised functions, such as db_open(), but error is only
set when a system call fails, and it is not uncommon for us to fail a
function internally without ever making a system call. That led to us
passing back success when a function had in fact failed.

I found two places where we relied on map_nt_error_from_unix()
returning success when errno==0, but lots and lots of places where we
relied on the reverse, so I fixed those two places.

map_nt_error_from_unix() will now always return an error, returning
NT_STATUS_UNSUCCESSFUL if errno is 0
(cherry picked from commit 69d40ca4c1af925d4b0e59ddc69ef8c26e6501d1)
(This used to be commit 834684a524a24bb4eb46b4af583d39947dc87d95)
2008-08-12 21:37:16 +02:00
Andrew Tridgell
89dc729443 ensure we give an error code to any routines above that are looking
for one
(This used to be commit 469ba9b87103aa0053c371e481acc5acf0f98ac1)
2008-08-12 21:37:01 +02:00
Jeff Layton
1759f089e1 cifs.upcall: negatively instantiate keys on error
When a request-key upcall exits without instantiating a key, the kernel
will negatively instantiate the key with a 60s timeout. Older kernels,
however seem to also link that key into the session keyring. This
behavior can interefere with subsequent mount attempts until the
key times out. The next request_key() call will get this negative key
even if the upcall would have worked the second time.

Fix this by having cifs.upcall negatively instantiate the key itself
with a 1s timeout and don't attach it to the session keyring.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit f760dd3f3128c846cdeab16cc52bbb5189427955)
2008-08-12 14:32:54 -04:00
Volker Lendecke
68fe1a1d86 Remove two unused variables
(This used to be commit 257b0401ee675b6b7eddf2b46a0f8115940e6640)
2008-08-12 11:59:13 +02:00
Volker Lendecke
a93d0f6f4e Do not create a new mapping if a domain with an explicit config fails
(This used to be commit 2c27de44269198e22c323191dd4762d1aab81b22)
2008-08-12 11:28:29 +02:00
Volker Lendecke
b87807d032 Make the docs actually build
Thanks to Karolin for the friendly build service :-)
(This used to be commit 4bfc7cb662411d245f3ad7613bec8531d9ce3a57)
2008-08-12 11:28:29 +02:00
Volker Lendecke
59e53cedcb Document idmap rewrite
(This used to be commit 4b9132e8bd1b2bc397b657ef07796f44d55f33da)
2008-08-12 11:28:29 +02:00
Volker Lendecke
18bc97287c Some doxygen comments for idmap
(This used to be commit adecc6d91338e7e34afd0672aada5d0e47247a33)
2008-08-12 11:28:29 +02:00
Volker Lendecke
8d25729705 Fix prototypes
(This used to be commit 8b9d12714679745b98755e6805e71b75828ce227)
2008-08-12 11:28:29 +02:00
Volker Lendecke
2a3698e5c0 Remove "idmap alloc config : range" parameter
This was overwritten by "idmap uid/gid" anyway. These are now the range
parameters for the alloc backend.
(This used to be commit d563a7b80dc3e759069db2cd54d596a1b8c55191)
2008-08-12 11:28:29 +02:00
Volker Lendecke
340ab6a256 idmap rewrite
(This used to be commit 30a180f2fce8cf6a3e5548f6bba453272ba70b33)
2008-08-12 11:28:29 +02:00
Volker Lendecke
8d4bd2d960 Remove the multi-ID lookup code and the 3.2.0 version of idmap_cache
(This used to be commit 1bd98521dc3f16ad77ccccd3979288c58e03ebe8)
2008-08-12 11:28:29 +02:00
Volker Lendecke
0c1e27abf6 Directly call backends from idmap_[ugs]_to_[ugs]id
(This used to be commit f955407042e6d2384acccc399d72ff65ba0e721c)
2008-08-12 11:28:28 +02:00
Volker Lendecke
1bdbe772ad Move the gid2sid cache to the parent winbind process
(This used to be commit a86a6835e2737fdbdf1f36bcd594d4b01a60acb9)
2008-08-12 11:28:28 +02:00
Volker Lendecke
08f7c2d0fc Move the uid2sid cache to the parent winbind process
(This used to be commit 6e885aeabba2265a06b726f567cb14dde12c8ccb)
2008-08-12 11:28:28 +02:00
Michael Adam
0f3de7f93e WHATSNEW: fix one occurrence of 3.2.0 to say 3.3.0.
Michael
(This used to be commit 82b132c4749eb3b6f56b9954655cd8be5cc762a3)
2008-08-12 10:18:51 +02:00
Günther Deschner
5bea31aa3c libnetjoin: support kerberized joining/unjoing (fix #5416).
Guenther
(This used to be commit da6e0f4f375aa533c4c765891c960070478972eb)
2008-08-11 19:52:23 +02:00
Günther Deschner
051cb1a4de netapi: add NetLocalGroupSetMembers example code.
Guenther
(This used to be commit 4fea49ae83510225c51c580a2bea2c664851bb39)
2008-08-11 19:48:28 +02:00
Günther Deschner
ed7501fd31 netapi: add NetLocalGroupDelMembers example code.
Guenther
(This used to be commit b2a413148e470e059c877f4e54955ab61559edee)
2008-08-11 19:48:19 +02:00