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

24851 Commits

Author SHA1 Message Date
Volker Lendecke
5b37e815b4 Don't try ftruncate when the tdb is opened read-only
Tridge, Jeremy, please check!

Thanks,

Volker
(This used to be commit e4f46d527411c54e8f26c05033b744c751810c32)
2008-01-16 21:18:26 +01:00
Volker Lendecke
7084854bd9 Next try to fix the max dead record calculation
(This used to be commit 4f95c58040f46f343f55f9a5db2655a5e3b62c00)
2008-01-16 21:04:52 +01:00
Volker Lendecke
088183896a default to tdbsam instead of smbpasswd
(This used to be commit ab8ff39fd51929aae2f4088ca5b1d67e5cb7099e)
2008-01-16 20:37:56 +01:00
Volker Lendecke
9158169c97 Fix an uninitialized variable warning
(This used to be commit dcb7fb2c0d8e4b798b36e8caf480d198f3e08d00)
2008-01-16 20:31:02 +01:00
Volker Lendecke
c308d76305 Fix some C++ warnings
(This used to be commit 625241c4773ae5c80dd0cb0c07a86aff633c1ede)
2008-01-16 20:29:41 +01:00
Volker Lendecke
b0950557f9 Fix a missing prototype warning
(This used to be commit 871cee04f26da97756804b38acfd366b6011dc9e)
2008-01-16 20:25:57 +01:00
Simo Sorce
04b2a9e80a Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-simo
(This used to be commit 05c22a55a4c052c682a2f2afdb0696504195d18c)
2008-01-16 12:06:34 -05:00
Michael Adam
8c41366a98 Add "config backend" to the parameters forbidden in registry config.
Make registry based configs more fool-proof.

Michael
(This used to be commit 2ea55c03b25eb5e98be3449e12004a7246319acd)
2008-01-16 17:31:44 +01:00
Michael Adam
422fbd0bbd Add my (C) to loadparm.c.
I think now that I have changed some substantial logic,
I should confess.... :-)

Michael
(This used to be commit 704ac0ba49134d14dc00769b1cf2d9f55657bdfb)
2008-01-16 17:15:08 +01:00
Michael Adam
762ca95be7 Remove special semantics of "include = registry" from loadparm.c
This is now replaced by "config backend = registry".

Michael
(This used to be commit 56801810253ae870437f694947f58c27661cef9b)
2008-01-16 17:10:02 +01:00
Michael Adam
7bfceba4bc Use lp_config_backend_is_registry() instead of lp_include_registry_globals().
Michael
(This used to be commit c5a7d421c512a6221b0300549d7b5de0368d252e)
2008-01-16 17:10:02 +01:00
Michael Adam
d3be7a7bdd Add utility function lp_config_backend_is_registry().
So external callers can determine if we are running on
registry config without knowing the internals.

Michael
(This used to be commit d8a7c3ec8e2bd548509178f138d00a3b57119d10)
2008-01-16 17:10:02 +01:00
Michael Adam
1abc94e95b Initialise Globals.ConfigBackend from global var config_backend.
and use lp_config_backend() instead of config_backend.

Michael
(This used to be commit 9f69efe954cde6c6cce4283ba35a553ca980c347)
2008-01-16 17:10:02 +01:00
Michael Adam
b92c3e281c Add handling of [homes] and [printers] via registry shares.
Now homes and printers shares can be accessed through the
registry meachanism on demand in pure registry configurations
with "config backend = registry" without the need to
have a special handler for these two.

Michael
(This used to be commit eec3248ef90fbfe6e048394c875173b164a8b439)
2008-01-16 17:10:02 +01:00
Michael Adam
89b1c68b37 Add config parameter "config backend = registry".
This adds a new config parameter "config backend" that can have
values "file" (default) and "registry". When lp_load() encounters
a "config backend = registry", then all config read up to that
point is discarded and globals are read from registry.

This is done in suche a way that as with "config file",
there is no way back to non-registry config during the
lifetime of a process: The file_list_changed mechanism
does not look at files anymore once config backend is
set to registry. This is modelled after the behaviour
of the "config file" option.

Note that only the global section is read by lp_load().
The shares are handled by the registry shares mechanism,
thus allowing for a smaller memory footprint since
share definitions are read on demand.

This new parameter is intended as a substitute of the
previously installed special semantics of "include = registry"
which allows for messed up mixed configurations.
This parameter (which has not yet been released) will
vanish next.

Michael
(This used to be commit 77b33cf34c2aec6673dfab3962733a60a60d126a)
2008-01-16 17:10:02 +01:00
Michael Adam
789720e0ed Add "MSDFS options" separator to parm_table.
Michael
(This used to be commit a103509a467bf6a93fbb21ec5e64456c5f086d6c)
2008-01-16 17:10:02 +01:00
Michael Adam
f2b2e01fd8 Re-order an option block in parm_table to re-unite the misc options.
Michael
(This used to be commit 9e11768256623636e69eda67b3bb888426f9ab84)
2008-01-16 17:10:02 +01:00
Alexander Bokovoy
02680bd75d Merge branch 'ctdb-merge' into v3-2-test
(This used to be commit 175662b5bbb5c8ecd81a60539f5846a938c26a3a)
2008-01-16 18:53:16 +03:00
Günther Deschner
587a2dbf8d Merge lsarpc.idl from samba4 and rerun make idl.
Guenther
(This used to be commit d9c8a2271d5d4ff845f1fe5986a2c63d79c41415)
2008-01-16 16:32:12 +01:00
Günther Deschner
0331ff72f0 Add lsa_PolicyAuditEventType and lsa_PolicyAuditPolicy enums from samba3 to IDL.
Guenther
(This used to be commit 92bfa25922860a6951c72d41799f4d3c1bc7a007)
2008-01-16 16:06:15 +01:00
Günther Deschner
d06559c1e6 Make resolve_ads() static.
Guenther
(This used to be commit 57dc747136e880a25c03bdc4a1431fc41afd93a1)
2008-01-16 16:06:15 +01:00
Günther Deschner
fbcc7820c6 Fix memleak in ads_build_path().
Guenther
(This used to be commit b7a06b54e0a58c4cd6c5351b1e4a0a2c253cfea1)
2008-01-16 16:06:15 +01:00
Igor Mammedov
94fdd59f1c Adds support for cifs.resolver upcall.
Here is a patch for userspace cifs.spnego handler that adds support for cifs.resolver
upcall used in DFS code.
Any comments are appreciated.

#############################

Cifs upcall with key type cifs.resolver is used for resolving
server names in handling DFS refferals.

Signed-off-by: Igor Mammedov <niallain@gmail.com>
(This used to be commit dfc80b4f1c00c131ba8077432bfe79f22f63ccd1)
2008-01-16 09:51:06 -05:00
Derrell Lipman
be9b7a6414 Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
(This used to be commit aebecd7462733b56457540423354ba249fd52808)
2008-01-16 14:41:43 +00:00
Derrell Lipman
3e494442de Modify testread example to loop using same context.
There's been a problem seen where open/read/close a number of times causes
open failures eventually.  This program has been modified to create the
context once and then loop requesting file names to open/read/close.

This program also demonstrates the current error in cli_read() where it
returns an error instead of length 0 upon end of file.

Derrell
(This used to be commit 9d75ea577b407ccab59196760d376831062a3ab5)
2008-01-16 14:41:11 +00:00
Derrell Lipman
735e98759c Replace GetTimeOfDay() with gettimeofday() in example program.
GetTimeOfDay() seems to no longer be exported.  For the smbsh example, just
use the native gettimeofday() for now.
(This used to be commit 296a6783fbc03460e87ac4136a0a9e6d2743b2ff)
2008-01-16 14:37:40 +00:00
Derrell Lipman
12d31ba2b8 Add a (very!) trivial cache to the example authentication callback.
(This used to be commit 01f6a4cca7a91ae41ff393263418216324502f84)
2008-01-16 14:35:44 +00:00
Alexander Bokovoy
024741500a Convert old sid-string handling in idmap_tdb2 to a new one
(This used to be commit ee851730cef1eb506b47faf57e25789ad3c6aafa)
2008-01-16 16:50:46 +03:00
Volker Lendecke
594a164548 Fix a crash bug in nt_printer_publish_ads
Reported by Martin Zielinski <mz@seh.de>
(This used to be commit 4db26c803de52d3efccc940efc55f14131a057f5)
2008-01-16 11:39:20 +01:00
Günther Deschner
41c72bd804 Fix (non-activated) _wkssvc_NetrJoinDomain2 server code.
Guenther
(This used to be commit dea64a0d886919dfd5bcc550cb36deabe4ec010d)
2008-01-16 11:08:05 +01:00
Günther Deschner
168e122682 Autofetch domain_sid while unjoining in libnetjoin.
Guenther
(This used to be commit 622109895c56ed7cc02dac006f02cac89424b569)
2008-01-16 11:08:05 +01:00
Günther Deschner
1311918d17 Nicen some error strings in libnetjoin.
Guenther
(This used to be commit 05cf1413cc92e15bbe7ba0477df282ad31e40412)
2008-01-16 11:08:05 +01:00
Günther Deschner
1bb220174f Avoid use of NDR_PRINT_X_DEBUG (that debugs with level 0) in libnetjoin.
Guenther
(This used to be commit 357a393b106fe88629bf5f6c634d16c0fc47cee9)
2008-01-16 11:08:05 +01:00
Alexander Bokovoy
b3f3eb1bc5 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into ctdb-merge
(This used to be commit 17b2bea7093681a4c4119f9fe7104c018fd0af6f)
2008-01-16 12:57:15 +03:00
Alexander Bokovoy
b9d21dd668 Fix build for pam_smbpass
Signed-off-by: Alexander Bokovoy <ab@samba.org>
(This used to be commit dc568fd52ae8ffaaaef2015c5a207ed9a58a9a7f)
2008-01-16 12:42:26 +03:00
Alexander Bokovoy
1e0abd97f9 Fix build for pam_smbpass
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 060587fce558bf9e83d6c7b8e070a5ae58e3f275)
2008-01-16 12:28:52 +03:00
Alexander Bokovoy
80f1cc3879 Enable building of VFS modules: vfs_tsmsm, vfs_shadowcopy2 and IDMAP module idmap_tdb2
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 136c024c9a32ca8ca33cb36b9a6b731237179af5)
2008-01-16 12:28:28 +03:00
Alexander Bokovoy
3bd3483fab idmap TDB2 backend, used for clustered Samba setups.
This uses 2 tdb files. One is permanent, and is in shared storage
   on the cluster (using "tdb:idmap2.tdb =" in smb.conf). The other is a
   temporary cache tdb on local storage.


Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit b6df7e7709365fb620867ad8954bc5bf24496775)
2008-01-16 12:27:29 +03:00
Alexander Bokovoy
e633e4ddab Add offline storage support with Tivoli Storage Manager Space Manager
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit d7752449f38747d59c93869656a5f7c02ebdf084)
2008-01-16 12:26:35 +03:00
Alexander Bokovoy
d52b66daac Merge a variant of Shadow Copy module for exposing snapshots to windows clients as shadow copies from Samba 3.0 CTDB
This is a 2nd implemetation of a shadow copy module for exposing
snapshots to windows clients as shadow copies. This version has the
following features:

     1) you don't need to populate your shares with symlinks to the
     snapshots. This can be very important when you have thousands of
     shares, or use [homes]

     2) the inode number of the files is altered so it is different
     from the original. This allows the 'restore' button to work
     without a sharing violation


Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 10c2ae1efd799b44255ce82c3bb0c7c9df0ec634)
2008-01-16 12:21:38 +03:00
Alexander Bokovoy
c283c1bb8b Support GPFS prealloc interface
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit c26e355533e473c4386d0e6d651637e71d4231dc)
2008-01-16 12:19:51 +03:00
Alexander Bokovoy
313f7d10b8 Merge latest fixes to vfs_gpfs and NFS4 ACLs from Samba 3.0 CTDB branch (from http://samba.org/~tridge/3_0-ctdb)
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 1daad835cbfb4615a8fe7a241f4d578f7e69f214)
2008-01-16 12:18:57 +03:00
Alexander Bokovoy
d86fc3ec8c Add support for offline files support, remote storage, and Async I/O force operations to VFS
Offline files support and remote storage are for allowing communication with
backup and archiving tools that mark files moved to a tape library as offline.
We translate this info into corresponding CIFS offline file attribute and
mark an exported volume as remote storage.

Async I/O force is to allow selective redirection of I/O operations to asynchronous
processing in case it is viable at VFS module discretion. It is needed for
proper handling of offline files as performing regular I/O on offline file will
block smbd.


Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 875208724e39564fe81385dfe36e6c963e79e101)
2008-01-16 12:17:03 +03:00
Alexander Bokovoy
68694369fc Merge CTDB-related fixes from samba-ctdb 3.0 branch (http://samba.org/~tridge/3_0-ctdb)
Signed-off-by: Alexander Bokovoy <ab@samba.org>(This used to be commit 0c8e23afbbb2d081fc23908bafcad04650bfacea)
2008-01-16 12:09:48 +03:00
Derrell Lipman
f426949e88 Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
(This used to be commit 4ff2101c69a0cfcfdc5f775493cb6e88c57e4bbe)
2008-01-16 02:30:21 +00:00
Jeremy Allison
7e2b8eb079 Port from ctdb:
minor fix to transaction_write_existing: tridge.

Jeremy.
(This used to be commit 874425c8f680fb2f737b46a3177b239e69302af5)
2008-01-15 17:20:50 -08:00
Derrell Lipman
6e94cbdc30 Merge branch 'v3-2-test' of git://git.samba.org/samba into v3-2-test
(This used to be commit f963d57096184dd9381fcc5f175150d27460ea7a)
2008-01-16 00:45:06 +00:00
Jeremy Allison
9a6a5fff9c Fix the API exported for auth_functions. Ensure we call
passing 3 fstrings/sizeof(fstrings) as 3.0.x did. Found
by Derrell. Derrell please test !
Thanks,
Jeremy.
(This used to be commit 5467db388355a4769e48fed7eb80920d1820f727)
2008-01-15 16:13:11 -08:00
Jeremy Allison
e2528bd5fd Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
(This used to be commit 0d989bf90b9b75a057b572bb4369ee3126db1fb8)
2008-01-15 15:09:35 -08:00
Jeremy Allison
ddabc2b00c Fix "status used uninitialized" warnings.
Jeremy.
(This used to be commit e57856fff2ef86481ac6770c7d010a26666d8bdd)
2008-01-15 15:09:13 -08:00