1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

24925 Commits

Author SHA1 Message Date
Michael Adam
b6eaf05479 Add some sectioning comments to reg_api.c
Michael
(This used to be commit d3c9c27374)
2008-01-17 16:25:11 +01:00
Michael Adam
1a15320dcd Make utility function reg_deletekey_recursive_internal() static.
Michael
(This used to be commit 3e66127322)
2008-01-17 16:25:11 +01:00
Michael Adam
8c2d440c1f Use the proper boolean constants in reg_frontend_hilvl.c
Michael
(This used to be commit 5c0a1d5d45)
2008-01-17 16:25:11 +01:00
Michael Adam
6e1d36f8c6 Reformatting: Strip trailing white spaces from reg_frontent_hilvl.c.
Michael
(This used to be commit 36085d9004)
2008-01-17 16:25:11 +01:00
Jelmer Vernooij
04a2512b10 idl: Update IDL for eventlog, misc, netlogon and security from Samba 4.
(This used to be commit 48288869d3)
2008-01-17 15:57:52 +01:00
Jelmer Vernooij
35fe98e5a1 idl: Remove use of [ref], which is the default.
(This used to be commit c22d47b3d5)
2008-01-17 15:57:52 +01:00
Jelmer Vernooij
af3ff75e1f idl: Update initshutdown and echo IDL from Samba 4.
(This used to be commit 35d71a40b3)
2008-01-17 15:57:52 +01:00
Jelmer Vernooij
5e86ac9e6d idl: Update DFS IDL from Samba 4.
(This used to be commit a6677b2e18)
2008-01-17 15:57:52 +01:00
Derrell Lipman
f14f2a4c43 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 15ef5e4884)
2008-01-17 09:29:52 -05:00
Derrell Lipman
096e40c916 Fix stat results to be consistent between smbc_stat and smbc_fstat.
We create a kludged inode based on the checksum of the path.  We therefore
need to use the same (full) path when calculating it in both smbc_stat() and
smbc_fstat().

If struct stat has an rdev field, set it to zero.

Derrell
(This used to be commit b4282fbd6d)
2008-01-17 09:29:13 -05:00
Derrell Lipman
dba2400192 Add some additional libsmbclient test programs.
testwrite: create or truncate a file and write to it.
teststat3: compare the results from smbc_stat() and smbc_fstat()

Derrell
(This used to be commit 5a4a7aec76)
2008-01-17 09:26:36 -05:00
Alexander Bokovoy
03387a0f58 Remove is_remotestorage() call from VFS. We already have statvfs() there to handle FS capabilities.
As discussed with Volker, it is better to calculate FS capabilities at
connection time. We already do this with help of VFS statvfs() call
which allows to fill-in system-specific attributes including FS
capabilities. So just re-use it if you want to represent additional
capabilities in your modules. The only caution is that you need to
call underlying statvfs() call to actually get system-specific
capabilities (and other fields) added. Then add module-specific ones.
(This used to be commit e342ca0d93)
2008-01-17 16:59:29 +03:00
Alexander Bokovoy
026a66abec Rework of VFS is_offline() function to only return boolean offline/online result for a file.
This makes sense as upper levels are only taking returned result of 0
(no error) into consideration when deciding whether to mark file
offline/online as returned from is_offline.

That means that we simply can move the decision down to VFS module and
clean up upper levels so that they always see only file status. If there
is an error when trying to identify file status, then VFS module could
decide what to return (offline or online) by itself -- after all, it
ought to have system-specific knowledge anyway.
(This used to be commit 75cc086614)
2008-01-17 14:57:35 +03:00
Alexander Bokovoy
6de904b836 Fix more VFS API mixup with offline files
I'm sorry for this mess. :-(
(This used to be commit e1f5a8f107)
2008-01-17 07:34:33 +03:00
Alexander Bokovoy
3fffb04990 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit 4256f8e093)
2008-01-17 07:26:12 +03:00
Jeremy Allison
f44713df4d Fix bug found by Derrell - windows returns an read return
offset of zero if return size is zero. Should fix testread
libsmbclient code.
Jeremy.
(This used to be commit df3c464839)
2008-01-16 17:33:19 -08:00
Jeremy Allison
3020ec12a3 Fix the mess that ab just made of the new VFS code.
NEEDS MORE TESTING !
Jeremy.
(This used to be commit bcc94aed6f)
2008-01-16 17:22:31 -08:00
Jeremy Allison
70426bdd30 Tidy up code and debug for non-default krb5 IPv6 port.
Jeremy.
(This used to be commit 79b7972de4)
2008-01-16 13:28:24 -08:00
Jeremy Allison
bd8abea49f Fix IPv6 bug #5204, which caused krb5 DNS lookups
for a name '[<ipv6 addr>'.
Jeremy.
(This used to be commit f2aa921505)
2008-01-16 13:21:46 -08:00
Volker Lendecke
60c3ec3fca Revert "default to tdbsam instead of smbpasswd"
This reverts commit ab8ff39fd5.
(This used to be commit 5838a9f556)
2008-01-16 21:26:16 +01:00
Alexander Bokovoy
fd03ea4a90 Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into v3-2-test
(This used to be commit b01f341415)
2008-01-16 23:24:44 +03:00
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 e4f46d5274)
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 4f95c58040)
2008-01-16 21:04:52 +01:00
Volker Lendecke
088183896a default to tdbsam instead of smbpasswd
(This used to be commit ab8ff39fd5)
2008-01-16 20:37:56 +01:00
Volker Lendecke
9158169c97 Fix an uninitialized variable warning
(This used to be commit dcb7fb2c0d)
2008-01-16 20:31:02 +01:00
Volker Lendecke
c308d76305 Fix some C++ warnings
(This used to be commit 625241c477)
2008-01-16 20:29:41 +01:00
Volker Lendecke
b0950557f9 Fix a missing prototype warning
(This used to be commit 871cee04f2)
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 05c22a55a4)
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 2ea55c03b2)
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 704ac0ba49)
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 5680181025)
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 c5a7d421c5)
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 d8a7c3ec8e)
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 9f69efe954)
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 eec3248ef9)
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 77b33cf34c)
2008-01-16 17:10:02 +01:00
Michael Adam
789720e0ed Add "MSDFS options" separator to parm_table.
Michael
(This used to be commit a103509a46)
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 9e11768256)
2008-01-16 17:10:02 +01:00
Alexander Bokovoy
02680bd75d Merge branch 'ctdb-merge' into v3-2-test
(This used to be commit 175662b5bb)
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 d9c8a2271d)
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 92bfa25922)
2008-01-16 16:06:15 +01:00
Günther Deschner
d06559c1e6 Make resolve_ads() static.
Guenther
(This used to be commit 57dc747136)
2008-01-16 16:06:15 +01:00
Günther Deschner
fbcc7820c6 Fix memleak in ads_build_path().
Guenther
(This used to be commit b7a06b54e0)
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 dfc80b4f1c)
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 aebecd7462)
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 9d75ea577b)
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 296a6783fb)
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 01f6a4cca7)
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 ee851730ce)
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 4db26c803d)
2008-01-16 11:39:20 +01:00