samba.git
15 years agosamba3 can't handle NOREPLY yet
Andrew Tridgell [Thu, 7 Aug 2008 08:33:37 +0000 (18:33 +1000)]
samba3 can't handle NOREPLY yet
(This used to be commit 21729256a550509c3c038efa5acdd6ac39027dce)

15 years agocleanup debugging and fix handling of empty transaction
Andrew Tridgell [Thu, 7 Aug 2008 06:56:47 +0000 (16:56 +1000)]
cleanup debugging and fix handling of empty transaction
(This used to be commit 2e85cbe88b3d1674b915f62e02be7d005fddaa39)

15 years agofirst cut at adding full transactions for ctdb to samba3
Andrew Tridgell [Thu, 7 Aug 2008 06:20:05 +0000 (16:20 +1000)]
first cut at adding full transactions for ctdb to samba3
(This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)

15 years agogot rid of the redundent cache database
Andrew Tridgell [Thu, 7 Aug 2008 01:59:39 +0000 (11:59 +1000)]
got rid of the redundent cache database
(This used to be commit 126f4ac8e85458ee4693b89a184b99420f1b6bee)

15 years agopackaging(RHEL-CTDB): we are now based on 3.2.1
Michael Adam [Thu, 7 Aug 2008 00:46:13 +0000 (02:46 +0200)]
packaging(RHEL-CTDB): we are now based on 3.2.1

Michael
(This used to be commit 87e0688a261590d45d42f17e4cdce329ebe4cd8f)

15 years agoidmap tdb2: fix inconsistent mappings by checking for race and retrying to fetch...
Michael Adam [Thu, 7 Aug 2008 00:03:22 +0000 (02:03 +0200)]
idmap tdb2: fix inconsistent mappings by checking for race and retrying to fetch mapping.

Michael
(This used to be commit cb4c74c9c206e5a445ca636fa6562ce721ea5839)

15 years agodbwrap ctdb: fix a DEBUG message.
Michael Adam [Wed, 6 Aug 2008 22:12:57 +0000 (00:12 +0200)]
dbwrap ctdb: fix a DEBUG message.

Michael
(This used to be commit d776d8df262e1753fb428450140df94e63035af5)

15 years agoidmap tdb2: fix broken logic in tdb2_delete_bystring().
Michael Adam [Wed, 6 Aug 2008 20:43:27 +0000 (22:43 +0200)]
idmap tdb2: fix broken logic in tdb2_delete_bystring().

1. use the return value that idmap_tdb2_open_perm_db() gives us
2. don't delete frep the local db if deleting from the perm db failed.
3. fix wrong interpretation of return value of the local delete

Michael
(This used to be commit 147573d7f6faab0ad90258b6a28c4b9575ccb6ea)

15 years agoidmap tdb2: fix broken logic in tdb2_store_bystring().
Michael Adam [Wed, 6 Aug 2008 20:33:58 +0000 (22:33 +0200)]
idmap tdb2: fix broken logic in tdb2_store_bystring().

1. use the return value that idmap_tdb2_open_perm_db() gives us
2. don't write to the local db if writing to the perm db failed.
3. fix wrong interpretation of return value of the local store

Michael
(This used to be commit be8c6b4f2f40014313899b5cbc1da9d390d94fee)

15 years agodbwrap ctdb: don't retry when tdb_store failed in db_ctdb_persistent_store().
Michael Adam [Wed, 6 Aug 2008 20:30:27 +0000 (22:30 +0200)]
dbwrap ctdb: don't retry when tdb_store failed in db_ctdb_persistent_store().

Only retry when ctdbd_persisten_update() failed.

Michael
(This used to be commit ff413a4614c8b272a34b2a9e56a329a8e8749a34)

15 years agodbwrap ctdb: add a partial mapping from tdb_error to NTSTATUS and use it for store.
Michael Adam [Wed, 6 Aug 2008 20:22:23 +0000 (22:22 +0200)]
dbwrap ctdb: add a partial mapping from tdb_error to NTSTATUS and use it for store.

Michael
(This used to be commit eaf76c751f9bde2843174b400c109304831df83e)

15 years agopackaging(RHEL-CTDB): Bump release number to ctdb.41 for the next RPM.
Michael Adam [Wed, 6 Aug 2008 00:19:53 +0000 (02:19 +0200)]
packaging(RHEL-CTDB): Bump release number to ctdb.41 for the next RPM.

Michael
(This used to be commit 5258907818f8c1e338ab2c8fb4e8d83c6142a24e)

15 years agodbwrap ctdb: add db_ctdb_delete_persistent() and use it for persistent DBs
Michael Adam [Tue, 5 Aug 2008 16:47:40 +0000 (18:47 +0200)]
dbwrap ctdb: add db_ctdb_delete_persistent() and use it for persistent DBs

as delete_rec operation from fetch_locked()

Michael
(This used to be commit f4aab595a0219305fbedf8890e787b690660a55a)

15 years agodbwrap ctdb: call db_ctdb_store() in db_ctdb_delete().
Michael Adam [Tue, 5 Aug 2008 16:46:02 +0000 (18:46 +0200)]
dbwrap ctdb: call db_ctdb_store() in db_ctdb_delete().

to reduce code duplication.

Michael
(This used to be commit 09a197e756459877cab7b4d09f534c6a41cfdd71)

15 years agodbwrap ctdb: add a retry loop to the persistent store operation.
Michael Adam [Tue, 5 Aug 2008 09:32:20 +0000 (11:32 +0200)]
dbwrap ctdb: add a retry loop to the persistent store operation.

This is because ctdbd can fail in performing the persistent_store
due to race conditions, and this does not mean it can't succeed
the next time.

To not loop infinitely, this makes use of a new parametric option:
"dbwrap ctdb:max store retries" (integer) which defaults to 5
and sets the upper limit for the number or repeats of the
fetch/store cycle.

Michael
(This used to be commit 2bcc9e6ecef876030e552a607d92597f60203db2)

15 years agodbwrap ctdb: release the lock before calling ctdbd_persistent_store()
Michael Adam [Tue, 5 Aug 2008 16:42:07 +0000 (18:42 +0200)]
dbwrap ctdb: release the lock before calling ctdbd_persistent_store()

in the persistent db_ctdb_store operation.

This is to prevent deadlocks in db_ctdb_persistent_store().

There is a tradeoff: Usually, the record is still locked
after db->store operation. This lock is usually released
via the talloc destructor with the TALLOC_FREE to
the record. So we have two choices:

- Either re-lock the record after the call to persistent_store
  or cancel_persistent update and this way not changing any
  assumptions callers may have about the state, but possibly
  introducing new race conditions.

- Or don't lock the record again but just remove the
  talloc_destructor. This is less racy but assumes that
  the lock is always released via TALLOC_FREE of the record.

I choose the first variant for now since it seems less racy.
We can't guarantee that we succeed in getting the lock
anyways. The only real danger here is that a caller
performs multiple store operations after a fetch_locked()
which is currently not the case.

Michael
(This used to be commit d004c9a7281d2577c3ba2012c8f790cc198ea700)

15 years agodbwrap ctdb: remove erroneously duplicated comment.
Michael Adam [Mon, 4 Aug 2008 15:07:20 +0000 (17:07 +0200)]
dbwrap ctdb: remove erroneously duplicated comment.

Michael
(This used to be commit c939c55e5182258092faceefa58a7f328f18619e)

15 years agopackaging(RHEL-CTDB): Bump release number to ctdb.40 for the next RPM.
Michael Adam [Wed, 30 Jul 2008 13:46:44 +0000 (15:46 +0200)]
packaging(RHEL-CTDB): Bump release number to ctdb.40 for the next RPM.

Michael
(This used to be commit b822bba9b9ae327bc6cee3f412f7e22ce28c1388)

15 years agopackaging(RHEL-CTDB): Bump release number to ctdb.39 for the next RPM.
Michael Adam [Wed, 23 Jul 2008 00:01:51 +0000 (02:01 +0200)]
packaging(RHEL-CTDB): Bump release number to ctdb.39 for the next RPM.

Michael
(This used to be commit 7e73792c738447049b8662617da340a73fae9bf0)

15 years agoUse transaction start/cancel for persistent writes to avoid leaving the database...
Ronnie Sahlberg [Fri, 18 Jul 2008 08:50:16 +0000 (18:50 +1000)]
Use transaction start/cancel for persistent writes to avoid leaving the database in an inconsistent state if we crash during the operation

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
(This used to be commit 09329f1f9114af44fc4e5e4f29a7315912313125)

15 years agopackaging(RHEL-CTDB): bump Release number to ctdb.37 for next rpm.
Michael Adam [Fri, 18 Jul 2008 09:20:38 +0000 (11:20 +0200)]
packaging(RHEL-CTDB): bump Release number to ctdb.37 for next rpm.

Michael
(This used to be commit bd2158fb5f5d5c0c410fe2853f61776787e1461f)

15 years agopackaging(RHEL-CTDB): Bump release number to ctdb.37 for the next RPM.
Michael Adam [Thu, 10 Jul 2008 21:28:07 +0000 (23:28 +0200)]
packaging(RHEL-CTDB): Bump release number to ctdb.37 for the next RPM.

Michael
(This used to be commit e63a1a396c5cee837aed8a54b5c5ea3b2116d755)

15 years agopackaging(RHEL-CTDB): bump Release number to ctdb.36 for next rpm.
Michael Adam [Fri, 4 Jul 2008 13:22:16 +0000 (15:22 +0200)]
packaging(RHEL-CTDB): bump Release number to ctdb.36 for next rpm.

Michael
(This used to be commit d795c2d5dc860fbfa668160054be084fe23aa44a)

15 years agopackaging(RHEL-CTDB): Bump release number to ctdb.35 for the next RPM.
Michael Adam [Fri, 27 Jun 2008 14:54:57 +0000 (16:54 +0200)]
packaging(RHEL-CTDB): Bump release number to ctdb.35 for the next RPM.

Michael
(This used to be commit 3323456e208742e160b9cabb79dc68bfbe8b1970)

15 years agoAdd a gpfs_prefetch module
Volker Lendecke [Mon, 28 Apr 2008 09:44:26 +0000 (11:44 +0200)]
Add a gpfs_prefetch module

This can not go upstream yet because it uses the non-GPL libgpfs. So it will
not be compiled by default and will not be included in the SOFS RPMs. But upon
Sven's request, we include it in the git tree and the source RPMs, so that it
can be built for in-house tests.
(This used to be commit fc9b30bed2d774dca6660b497cb50f982b23b885)

15 years agopackaging(RHEL-CTDB): bump Release number to ctdb.34 for the next RPM.
Michael Adam [Wed, 18 Jun 2008 16:45:01 +0000 (18:45 +0200)]
packaging(RHEL-CTDB): bump Release number to ctdb.34 for the next RPM.

Michael
(This used to be commit 7f3787a79a9949e7e80c9c5e16ec504ad1c4bdb7)

15 years agopackaging(RHEL-CTDB): update the build instructions in the README.
Michael Adam [Tue, 17 Jun 2008 10:44:07 +0000 (12:44 +0200)]
packaging(RHEL-CTDB): update the build instructions in the README.

Michael
(This used to be commit f7706c6437d6500a477cb704cb916f16fdfa1395)

15 years agopackaging(RHEL-CTDB): bump Release to ctdb.33 for the next build
Michael Adam [Tue, 17 Jun 2008 09:36:21 +0000 (11:36 +0200)]
packaging(RHEL-CTDB): bump Release to ctdb.33 for the next build

Michael
(This used to be commit 1fee80b8a643c22d356d0ca8860d5fc9580c8918)

15 years agopackaging(RHEL-CTDB): remove the libnss_wins modules to reduce deps.
Michael Adam [Wed, 28 May 2008 11:25:31 +0000 (13:25 +0200)]
packaging(RHEL-CTDB): remove the libnss_wins modules to reduce deps.

Michael
(This used to be commit 7c3e4a324248d61504c4c77a63d4d31e587802af)

15 years agobump version number to 32
Volker Lendecke [Fri, 13 Jun 2008 12:24:05 +0000 (14:24 +0200)]
bump version number to 32
(This used to be commit 19becb776148b7930a0abaec8038fee1158a66c4)

15 years agoCorrectly return NULL from messaging_ctdbd_connection if messaging_init failed
Volker Lendecke [Fri, 13 Jun 2008 10:01:31 +0000 (12:01 +0200)]
Correctly return NULL from messaging_ctdbd_connection if messaging_init failed
(This used to be commit 549db133df6782bcca7d033e8573e47716877cbd)

15 years agoExit smbstatus cleanly if messaging_init fails
Volker Lendecke [Fri, 13 Jun 2008 10:00:24 +0000 (12:00 +0200)]
Exit smbstatus cleanly if messaging_init fails
(This used to be commit 5fd51833a31b326d83ac2f76d06560920547f657)

15 years agoPackage 32-bit versions of libtalloc into the winbind rpm
Volker Lendecke [Fri, 6 Jun 2008 17:45:26 +0000 (19:45 +0200)]
Package 32-bit versions of libtalloc into the winbind rpm
(This used to be commit e52e2f7f1a09fff8ec37174a9dc98dc9b440ef87)

15 years agoFix README: DOCS_DIR is replaced by DOCS_TARBALL
Volker Lendecke [Fri, 6 Jun 2008 11:50:06 +0000 (13:50 +0200)]
Fix README: DOCS_DIR is replaced by DOCS_TARBALL
(This used to be commit 3d24c5b4602140470c40f002d206212e388ae59b)

15 years agoBump up version number
Volker Lendecke [Fri, 6 Jun 2008 11:49:00 +0000 (13:49 +0200)]
Bump up version number
(This used to be commit ace315c2ffc4e81c87ba1d30c28578719cb1692b)

15 years agopackaging(RHEL-CTDB): use /usr/%{_libarch} instead of %{_libdir}
Michael Adam [Fri, 23 May 2008 16:13:53 +0000 (18:13 +0200)]
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)

15 years agopackaging(RHEL-CTDB): remove duplicate block from spec file.
Michael Adam [Fri, 23 May 2008 16:06:53 +0000 (18:06 +0200)]
packaging(RHEL-CTDB): remove duplicate block from spec file.

Michael
(This used to be commit f978df86f9af480de26a6cf67c4f8e60d1e27139)

15 years agopackaging(RHEL-CTDB): fix placement and link direction of new shared libs
Michael Adam [Fri, 23 May 2008 13:12:01 +0000 (15:12 +0200)]
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)

15 years agopackaging(RHEL-CTDB): bump rpm release to the next version ctdb.29
Michael Adam [Fri, 23 May 2008 12:03:11 +0000 (14:03 +0200)]
packaging(RHEL-CTDB): bump rpm release to the next version ctdb.29

Michael
(This used to be commit 0d64606da69edba20f545789e526a71d01ca40b0)

15 years agopackaging(RHEL-CTDB): add "service winbind condrestart" to "%post common"
Michael Adam [Fri, 23 May 2008 11:44:13 +0000 (13:44 +0200)]
packaging(RHEL-CTDB): add "service winbind condrestart" to "%post common"

Michael
(This used to be commit c0ecb63d9e7b11bb5c31bdf95605d68c02206220)

15 years agopackaging(RHEL-CTDB): use "/sbin/service smb" instead of "%{initdir}/smb"
Michael Adam [Fri, 23 May 2008 10:52:21 +0000 (12:52 +0200)]
packaging(RHEL-CTDB): use "/sbin/service smb" instead of "%{initdir}/smb"

Michael
(This used to be commit 58085063c46f3c55c8aebc83bb79a2dd19f73622)

15 years agopackaging(RHEL-CTDB): ignore errors from init scripts in pre/post scripts.
Michael Adam [Fri, 23 May 2008 10:51:32 +0000 (12:51 +0200)]
packaging(RHEL-CTDB): ignore errors from init scripts in pre/post scripts.

Michael
(This used to be commit 1cd7201e5387ca11e9b735d37b806cb14d4a8dd3)

15 years agopackaging(RHEL-CTDB): in %preun, first stop the service then deactivate
Michael Adam [Fri, 23 May 2008 10:50:14 +0000 (12:50 +0200)]
packaging(RHEL-CTDB): in %preun, first stop the service then deactivate

Michael
(This used to be commit b3e552d795caf6e4ab811368fda4a8a2f2d493a0)

15 years agopackaging(RHEL-CTDB): use condrestart instead of restart in %post script
Michael Adam [Fri, 23 May 2008 10:48:55 +0000 (12:48 +0200)]
packaging(RHEL-CTDB): use condrestart instead of restart in %post script

Michael
(This used to be commit 2ccd9ef741c88772e4b7409506258e85b252c74f)

15 years agopackaging(RHEL-CTDB): move service smb restart from %postun to %post
Michael Adam [Fri, 23 May 2008 10:47:42 +0000 (12:47 +0200)]
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)

15 years agopackaging(RHEL-CTDB): move "chkconfig --del winbind" to "%preun common"
Michael Adam [Fri, 23 May 2008 10:26:28 +0000 (12:26 +0200)]
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)

15 years agopackaging(RHEL-CTDB): remove winbind init script and its linke from main pkg
Michael Adam [Fri, 23 May 2008 09:58:01 +0000 (11:58 +0200)]
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)

15 years agopackaging: bump the rhel-ctdb rpm releas number to ctbd.28
Michael Adam [Wed, 21 May 2008 09:41:51 +0000 (11:41 +0200)]
packaging: bump the rhel-ctdb rpm releas number to ctbd.28

Michael
(This used to be commit 185e24249d3dea1755558a154aa819db3bb1a605)

15 years agoDo not call testparm in /etc/init.d/smb
Volker Lendecke [Mon, 19 May 2008 14:08:04 +0000 (16:08 +0200)]
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)

15 years agokeep compatibility with v3-0-ctdb name for fileid:mapping option
Andrew Tridgell [Mon, 21 Apr 2008 16:40:45 +0000 (18:40 +0200)]
keep compatibility with v3-0-ctdb name for fileid:mapping option
(This used to be commit 2856d2e4a43fbcc6c8f8ac7b1613828170362861)

15 years agoupdate configure.rpm for clustered Samba usage
Andrew Tridgell [Mon, 21 Apr 2008 16:39:56 +0000 (18:39 +0200)]
update configure.rpm for clustered Samba usage
(This used to be commit 87c9f7717fc8171644c244fe697cace2968b8f8a)

15 years agoAdd winbind:online check timeout parameter
Volker Lendecke [Mon, 19 May 2008 16:15:06 +0000 (18:15 +0200)]
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)

15 years agoAttempt to fix bug 5684
Volker Lendecke [Tue, 12 Aug 2008 20:31:52 +0000 (22:31 +0200)]
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)

15 years agoAttempt to fix the build on Irix CC
Volker Lendecke [Tue, 1 Jul 2008 12:24:47 +0000 (14:24 +0200)]
Attempt to fix the build on Irix CC
(cherry picked from commit 666bf8456ac44cbbbd5524af2bf4fd89e18ddf62)
(This used to be commit 8819c51809cabe6ad0843f3838de53e785a10b47)

15 years agoMerge from Herb. print correct test status
Jeremy Allison [Tue, 12 Aug 2008 21:40:01 +0000 (14:40 -0700)]
Merge from Herb. print correct test status
(This used to be commit 8cb7ae011c8b8cb244e9b87a3ad51e27646411b6)

15 years agoFix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.
Jeremy Allison [Tue, 12 Aug 2008 20:35:15 +0000 (13:35 -0700)]
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)

15 years agouse variables for files used in multiple places
Herb Lewis [Mon, 7 Jul 2008 19:44:13 +0000 (12:44 -0700)]
use variables for files used in multiple places
(cherry picked from commit cee044bc42d955c535dbb6bb372af01089d37756)
(This used to be commit 2462562b5c90bc1c46237cd980810b0a69cd116d)

15 years agoMake sure to always set errno on error path in OpenDir (and hence scan_directory).
Michael Adam [Tue, 12 Aug 2008 13:19:17 +0000 (15:19 +0200)]
Make sure to always set errno on error path in OpenDir (and hence scan_directory).

Michael
(This used to be commit 15fc2427f91da697e0e91f7f34b0f0c6e230a9a5)

15 years agoFix unix_convert() for "*" after changing map_nt_error_from_unix().
Michael Adam [Tue, 12 Aug 2008 12:59:59 +0000 (14:59 +0200)]
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)

15 years agoI found lots of places where we assume error will be set when calling
Andrew Tridgell [Sun, 10 Aug 2008 00:43:36 +0000 (10:43 +1000)]
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)

15 years agoensure we give an error code to any routines above that are looking
Andrew Tridgell [Mon, 11 Aug 2008 07:21:11 +0000 (17:21 +1000)]
ensure we give an error code to any routines above that are looking
for one
(This used to be commit 469ba9b87103aa0053c371e481acc5acf0f98ac1)

15 years agocifs.upcall: negatively instantiate keys on error
Jeff Layton [Tue, 12 Aug 2008 18:32:54 +0000 (14:32 -0400)]
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)

15 years agoRemove two unused variables
Volker Lendecke [Tue, 12 Aug 2008 09:59:13 +0000 (11:59 +0200)]
Remove two unused variables
(This used to be commit 257b0401ee675b6b7eddf2b46a0f8115940e6640)

15 years agoDo not create a new mapping if a domain with an explicit config fails
Volker Lendecke [Tue, 29 Jul 2008 07:04:17 +0000 (09:04 +0200)]
Do not create a new mapping if a domain with an explicit config fails
(This used to be commit 2c27de44269198e22c323191dd4762d1aab81b22)

15 years agoMake the docs actually build
Volker Lendecke [Fri, 18 Jul 2008 10:30:24 +0000 (12:30 +0200)]
Make the docs actually build

Thanks to Karolin for the friendly build service :-)
(This used to be commit 4bfc7cb662411d245f3ad7613bec8531d9ce3a57)

15 years agoDocument idmap rewrite
Volker Lendecke [Thu, 17 Jul 2008 12:05:57 +0000 (14:05 +0200)]
Document idmap rewrite
(This used to be commit 4b9132e8bd1b2bc397b657ef07796f44d55f33da)

15 years agoSome doxygen comments for idmap
Volker Lendecke [Thu, 17 Jul 2008 11:32:28 +0000 (13:32 +0200)]
Some doxygen comments for idmap
(This used to be commit adecc6d91338e7e34afd0672aada5d0e47247a33)

15 years agoFix prototypes
Volker Lendecke [Wed, 16 Jul 2008 16:14:33 +0000 (18:14 +0200)]
Fix prototypes
(This used to be commit 8b9d12714679745b98755e6805e71b75828ce227)

15 years agoRemove "idmap alloc config : range" parameter
Volker Lendecke [Wed, 16 Jul 2008 14:51:46 +0000 (16:51 +0200)]
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)

15 years agoidmap rewrite
Volker Lendecke [Sun, 13 Jul 2008 10:07:40 +0000 (12:07 +0200)]
idmap rewrite
(This used to be commit 30a180f2fce8cf6a3e5548f6bba453272ba70b33)

15 years agoRemove the multi-ID lookup code and the 3.2.0 version of idmap_cache
Volker Lendecke [Sun, 13 Jul 2008 07:59:57 +0000 (09:59 +0200)]
Remove the multi-ID lookup code and the 3.2.0 version of idmap_cache
(This used to be commit 1bd98521dc3f16ad77ccccd3979288c58e03ebe8)

15 years agoDirectly call backends from idmap_[ugs]_to_[ugs]id
Volker Lendecke [Mon, 14 Jul 2008 10:32:18 +0000 (12:32 +0200)]
Directly call backends from idmap_[ugs]_to_[ugs]id
(This used to be commit f955407042e6d2384acccc399d72ff65ba0e721c)

15 years agoMove the gid2sid cache to the parent winbind process
Volker Lendecke [Fri, 11 Jul 2008 11:58:31 +0000 (13:58 +0200)]
Move the gid2sid cache to the parent winbind process
(This used to be commit a86a6835e2737fdbdf1f36bcd594d4b01a60acb9)

15 years agoMove the uid2sid cache to the parent winbind process
Volker Lendecke [Mon, 7 Jul 2008 20:09:39 +0000 (22:09 +0200)]
Move the uid2sid cache to the parent winbind process
(This used to be commit 6e885aeabba2265a06b726f567cb14dde12c8ccb)

15 years agoWHATSNEW: fix one occurrence of 3.2.0 to say 3.3.0.
Michael Adam [Tue, 12 Aug 2008 08:18:51 +0000 (10:18 +0200)]
WHATSNEW: fix one occurrence of 3.2.0 to say 3.3.0.

Michael
(This used to be commit 82b132c4749eb3b6f56b9954655cd8be5cc762a3)

15 years agolibnetjoin: support kerberized joining/unjoing (fix #5416).
Günther Deschner [Wed, 30 Jul 2008 19:38:21 +0000 (21:38 +0200)]
libnetjoin: support kerberized joining/unjoing (fix #5416).

Guenther
(This used to be commit da6e0f4f375aa533c4c765891c960070478972eb)

15 years agonetapi: add NetLocalGroupSetMembers example code.
Günther Deschner [Fri, 1 Aug 2008 17:15:52 +0000 (19:15 +0200)]
netapi: add NetLocalGroupSetMembers example code.

Guenther
(This used to be commit 4fea49ae83510225c51c580a2bea2c664851bb39)

15 years agonetapi: add NetLocalGroupDelMembers example code.
Günther Deschner [Fri, 1 Aug 2008 15:13:43 +0000 (17:13 +0200)]
netapi: add NetLocalGroupDelMembers example code.

Guenther
(This used to be commit b2a413148e470e059c877f4e54955ab61559edee)

15 years agonetapi: add NetLocalGroupAddMembers example code.
Günther Deschner [Fri, 1 Aug 2008 14:03:00 +0000 (16:03 +0200)]
netapi: add NetLocalGroupAddMembers example code.

Guenther
(This used to be commit 01c4640b1ca66c3285fd23d447d08db12cf83b42)

15 years agonetapi: implement NetLocalGroupSetMembers_r().
Günther Deschner [Mon, 11 Aug 2008 17:43:24 +0000 (19:43 +0200)]
netapi: implement NetLocalGroupSetMembers_r().

Guenther
(This used to be commit bb52ba58e47364d7c7ed38862a007e8e3d9dc104)

15 years agonetapi: implement NetLocalGroupDelMembers_r().
Günther Deschner [Mon, 11 Aug 2008 17:42:42 +0000 (19:42 +0200)]
netapi: implement NetLocalGroupDelMembers_r().

Guenther
(This used to be commit bd31d8f9ec9a24ca68e1d5441c0cafd98132060f)

15 years agonetapi: implement NetLocalGroupAddMembers_r().
Günther Deschner [Fri, 1 Aug 2008 14:02:21 +0000 (16:02 +0200)]
netapi: implement NetLocalGroupAddMembers_r().

Guenther
(This used to be commit 53dc9a11810b93a1771304fbfbf4ae84f551612b)

15 years agonetapi: add NetLocalGroup*Member calls to public headers.
Günther Deschner [Thu, 31 Jul 2008 14:24:58 +0000 (16:24 +0200)]
netapi: add NetLocalGroup*Member calls to public headers.

Guenther
(This used to be commit d4a51bb01d33ad17db4e623085a89d258e91b57e)

15 years agonetapi: add skeleton for NetLocalGroup*Member calls.
Günther Deschner [Thu, 31 Jul 2008 14:05:11 +0000 (16:05 +0200)]
netapi: add skeleton for NetLocalGroup*Member calls.

Guenther
(This used to be commit 563fb06107d2d3279e08c5c801a940f03229131b)

15 years agore-run make idl.
Günther Deschner [Mon, 11 Aug 2008 17:08:46 +0000 (19:08 +0200)]
re-run make idl.

Guenther
(This used to be commit b6b24094daf170f457bc414d8e17e43effab6e1b)

15 years agonetapi: add remaining NetLocalGroup*Member calls to IDL.
Günther Deschner [Thu, 31 Jul 2008 14:03:57 +0000 (16:03 +0200)]
netapi: add remaining NetLocalGroup*Member calls to IDL.

Guenther
(This used to be commit c06dfb823548de3652778c67918335578f194678)

15 years agonetapi: add NetUserModalsGet and NetUserModalsSet tests.
Günther Deschner [Thu, 31 Jul 2008 19:09:00 +0000 (21:09 +0200)]
netapi: add NetUserModalsGet and NetUserModalsSet tests.

Guenther
(This used to be commit a9c444a342968b539918c082b78af8640f8c87cd)

15 years agonetapi: implement NetUserModalsSet_r.
Günther Deschner [Thu, 31 Jul 2008 19:08:31 +0000 (21:08 +0200)]
netapi: implement NetUserModalsSet_r.

Guenther
(This used to be commit bb345187b7c62e9ad214037120545addd87a666d)

15 years agonetapi: implement NetUserModalsGet_r.
Günther Deschner [Thu, 31 Jul 2008 17:26:29 +0000 (19:26 +0200)]
netapi: implement NetUserModalsGet_r.

Guenther
(This used to be commit 7f7e6ca9091101aa7a3dc275c1d0258d97743f4b)

15 years agonetapi: add example code for NetUserModalsGet and NetUserModalsSet.
Günther Deschner [Thu, 31 Jul 2008 15:39:07 +0000 (17:39 +0200)]
netapi: add example code for NetUserModalsGet and NetUserModalsSet.

Guenther
(This used to be commit 316575b412e19008ecb6729f97e93b6103d8ba56)

15 years agonetapi: add NetUserModalsGet and NetUserModalsSet to public headers.
Günther Deschner [Thu, 31 Jul 2008 14:47:15 +0000 (16:47 +0200)]
netapi: add NetUserModalsGet and NetUserModalsSet to public headers.

Guenther
(This used to be commit b4c912bfbc62768ff4d7ecb39c02dc4a2a9825d2)

15 years agonetapi: add skeleton for NetUserModalsGet and NetUserModalsSet.
Günther Deschner [Thu, 31 Jul 2008 14:43:27 +0000 (16:43 +0200)]
netapi: add skeleton for NetUserModalsGet and NetUserModalsSet.

Guenther
(This used to be commit 5648145bec3bd24ecedea24a8834ac6768bfc640)

15 years agore-run make idl.
Günther Deschner [Mon, 11 Aug 2008 17:07:51 +0000 (19:07 +0200)]
re-run make idl.

Guenther
(This used to be commit 36c5de4702c03bd71d689aaecea87168133021c2)

15 years agonetapi: add NetUserModalsSet and NetUserModalsGet to IDL.
Günther Deschner [Thu, 31 Jul 2008 14:42:42 +0000 (16:42 +0200)]
netapi: add NetUserModalsSet and NetUserModalsGet to IDL.

Guenther
(This used to be commit 2af33ceeb8bece347d67e27a662a7cd0a58f75f8)

15 years agodoserr: add WERR_MEMBER_IN_ALIAS.
Günther Deschner [Fri, 1 Aug 2008 15:22:00 +0000 (17:22 +0200)]
doserr: add WERR_MEMBER_IN_ALIAS.

Guenther
(This used to be commit b62de0d1944de3dba55e182e0d8eb7c6ca5ec045)

15 years agonetapi: add NetApiBufferAllocate.
Günther Deschner [Fri, 1 Aug 2008 14:44:05 +0000 (16:44 +0200)]
netapi: add NetApiBufferAllocate.

Guenther
(This used to be commit 99cc8f023b4ad9210b677e11371f404048752031)

15 years agonetapi: add ConvertStringSidToSid().
Günther Deschner [Fri, 1 Aug 2008 13:15:05 +0000 (15:15 +0200)]
netapi: add ConvertStringSidToSid().

Guenther
(This used to be commit 36f1e45e4ec295115f1ba39ec7ad3690a96dac3e)

15 years agonetapi: generate the netapi testsuite makefile.
Günther Deschner [Thu, 31 Jul 2008 19:04:51 +0000 (21:04 +0200)]
netapi: generate the netapi testsuite makefile.

Guenther
(This used to be commit a2247a5b19237291cec8c6a873652d78d55aaeb7)

15 years agofix build warning.
Günther Deschner [Mon, 11 Aug 2008 09:20:38 +0000 (11:20 +0200)]
fix build warning.

Guenther
(This used to be commit 85021d6a459c957cc276a93c3515029244f52677)

15 years agoMake events robust against their event_context being freed
Volker Lendecke [Sat, 9 Aug 2008 19:39:18 +0000 (21:39 +0200)]
Make events robust against their event_context being freed
(This used to be commit 3d4e7b29c235e329aaea4fa2c2078df0ce3e59eb)