1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

29747 Commits

Author SHA1 Message Date
Michael Adam
1cd7201e53 packaging(RHEL-CTDB): ignore errors from init scripts in pre/post scripts.
Michael
2008-08-13 11:54:03 +02:00
Michael Adam
b3e552d795 packaging(RHEL-CTDB): in %preun, first stop the service then deactivate
Michael
2008-08-13 11:54:02 +02:00
Michael Adam
2ccd9ef741 packaging(RHEL-CTDB): use condrestart instead of restart in %post script
Michael
2008-08-13 11:54:02 +02:00
Michael Adam
9811607558 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
2008-08-13 11:54:02 +02:00
Michael Adam
758f1de775 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
2008-08-13 11:54:02 +02:00
Michael Adam
7ebc1ea13f 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
2008-08-13 11:54:02 +02:00
Michael Adam
185e24249d packaging: bump the rhel-ctdb rpm releas number to ctbd.28
Michael
2008-08-13 11:54:02 +02:00
Volker Lendecke
285d55d2a2 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
2008-08-13 11:54:02 +02:00
Andrew Tridgell
2856d2e4a4 keep compatibility with v3-0-ctdb name for fileid:mapping option 2008-08-13 11:54:01 +02:00
Andrew Tridgell
87c9f7717f update configure.rpm for clustered Samba usage 2008-08-13 11:54:01 +02:00
Volker Lendecke
9920473cc1 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
2008-08-13 11:40:35 +02:00
Volker Lendecke
3f884c4ae3 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
2008-08-13 10:53:17 +02:00
Volker Lendecke
8819c51809 Attempt to fix the build on Irix CC
(cherry picked from commit 666bf8456ac44cbbbd5524af2bf4fd89e18ddf62)
2008-08-13 00:01:23 +02:00
Jeremy Allison
8cb7ae011c Merge from Herb. print correct test status 2008-08-12 14:40:01 -07:00
Jeremy Allison
8c630efd25 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.
2008-08-12 13:35:15 -07:00
Herb Lewis
2462562b5c use variables for files used in multiple places
(cherry picked from commit cee044bc42d955c535dbb6bb372af01089d37756)
2008-08-12 22:01:02 +02:00
Michael Adam
15fc2427f9 Make sure to always set errno on error path in OpenDir (and hence scan_directory).
Michael
2008-08-12 21:37:37 +02:00
Michael Adam
ec5956ab0d 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
2008-08-12 21:37:30 +02:00
Andrew Tridgell
834684a524 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)
2008-08-12 21:37:16 +02:00
Andrew Tridgell
469ba9b871 ensure we give an error code to any routines above that are looking
for one
2008-08-12 21:37:01 +02:00
Jeff Layton
f760dd3f31 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>
2008-08-12 14:32:54 -04:00
Volker Lendecke
257b0401ee Remove two unused variables 2008-08-12 11:59:13 +02:00
Volker Lendecke
2c27de4426 Do not create a new mapping if a domain with an explicit config fails 2008-08-12 11:28:29 +02:00
Volker Lendecke
4bfc7cb662 Make the docs actually build
Thanks to Karolin for the friendly build service :-)
2008-08-12 11:28:29 +02:00
Volker Lendecke
4b9132e8bd Document idmap rewrite 2008-08-12 11:28:29 +02:00
Volker Lendecke
adecc6d913 Some doxygen comments for idmap 2008-08-12 11:28:29 +02:00
Volker Lendecke
8b9d127146 Fix prototypes 2008-08-12 11:28:29 +02:00
Volker Lendecke
d563a7b80d Remove "idmap alloc config : range" parameter
This was overwritten by "idmap uid/gid" anyway. These are now the range
parameters for the alloc backend.
2008-08-12 11:28:29 +02:00
Volker Lendecke
30a180f2fc idmap rewrite 2008-08-12 11:28:29 +02:00
Volker Lendecke
1bd98521dc Remove the multi-ID lookup code and the 3.2.0 version of idmap_cache 2008-08-12 11:28:29 +02:00
Volker Lendecke
f955407042 Directly call backends from idmap_[ugs]_to_[ugs]id 2008-08-12 11:28:28 +02:00
Volker Lendecke
a86a6835e2 Move the gid2sid cache to the parent winbind process 2008-08-12 11:28:28 +02:00
Volker Lendecke
6e885aeabb Move the uid2sid cache to the parent winbind process 2008-08-12 11:28:28 +02:00
Michael Adam
82b132c474 WHATSNEW: fix one occurrence of 3.2.0 to say 3.3.0.
Michael
2008-08-12 10:18:51 +02:00
Günther Deschner
da6e0f4f37 libnetjoin: support kerberized joining/unjoing (fix #5416).
Guenther
2008-08-11 19:52:23 +02:00
Günther Deschner
4fea49ae83 netapi: add NetLocalGroupSetMembers example code.
Guenther
2008-08-11 19:48:28 +02:00
Günther Deschner
b2a413148e netapi: add NetLocalGroupDelMembers example code.
Guenther
2008-08-11 19:48:19 +02:00
Günther Deschner
01c4640b1c netapi: add NetLocalGroupAddMembers example code.
Guenther
2008-08-11 19:48:10 +02:00
Günther Deschner
bb52ba58e4 netapi: implement NetLocalGroupSetMembers_r().
Guenther
2008-08-11 19:48:02 +02:00
Günther Deschner
bd31d8f9ec netapi: implement NetLocalGroupDelMembers_r().
Guenther
2008-08-11 19:47:53 +02:00
Günther Deschner
53dc9a1181 netapi: implement NetLocalGroupAddMembers_r().
Guenther
2008-08-11 19:47:44 +02:00
Günther Deschner
d4a51bb01d netapi: add NetLocalGroup*Member calls to public headers.
Guenther
2008-08-11 19:47:34 +02:00
Günther Deschner
563fb06107 netapi: add skeleton for NetLocalGroup*Member calls.
Guenther
2008-08-11 19:47:24 +02:00
Günther Deschner
b6b24094da re-run make idl.
Guenther
2008-08-11 19:47:15 +02:00
Günther Deschner
c06dfb8235 netapi: add remaining NetLocalGroup*Member calls to IDL.
Guenther
2008-08-11 19:47:05 +02:00
Günther Deschner
a9c444a342 netapi: add NetUserModalsGet and NetUserModalsSet tests.
Guenther
2008-08-11 19:14:19 +02:00
Günther Deschner
bb345187b7 netapi: implement NetUserModalsSet_r.
Guenther
2008-08-11 19:14:07 +02:00
Günther Deschner
7f7e6ca909 netapi: implement NetUserModalsGet_r.
Guenther
2008-08-11 19:13:58 +02:00
Günther Deschner
316575b412 netapi: add example code for NetUserModalsGet and NetUserModalsSet.
Guenther
2008-08-11 19:12:54 +02:00
Günther Deschner
b4c912bfbc netapi: add NetUserModalsGet and NetUserModalsSet to public headers.
Guenther
2008-08-11 19:12:45 +02:00