Volker Lendecke [Wed, 19 Mar 2008 16:04:50 +0000 (17:04 +0100)]
Fix a warning
Volker Lendecke [Wed, 19 Mar 2008 15:09:37 +0000 (16:09 +0100)]
Merge
dd9e0bea31751 from 3-0-ctdb -- use NetSamLogonEx when possible
NetSamLogonEx has the advantage that it does not use the credential chain
Volker Lendecke [Wed, 19 Mar 2008 15:08:24 +0000 (16:08 +0100)]
Fix some "nexted extern" warnins
Volker Lendecke [Wed, 19 Mar 2008 14:01:30 +0000 (15:01 +0100)]
Fix bug 5338 -- thanks to Yuya Katayama <yuya999@gmail.com>
Günther Deschner [Wed, 19 Mar 2008 01:47:22 +0000 (02:47 +0100)]
Fix the build (by calling NDR_SRVSVC_NETFILEENUM).
Guenther
Günther Deschner [Wed, 19 Mar 2008 00:31:09 +0000 (01:31 +0100)]
Remove unused marshalling for SRV_NET_FILE_ENUM.
Guenther
Günther Deschner [Wed, 19 Mar 2008 00:25:59 +0000 (01:25 +0100)]
Use pidl for _srvsvc_NetFileEnum.
Guenther
Günther Deschner [Tue, 18 Mar 2008 20:30:34 +0000 (21:30 +0100)]
Bind Group Policy processing closer to the samba registry.
Guenther
Andrew Tridgell [Sat, 2 Jun 2007 05:38:09 +0000 (15:38 +1000)]
[samba-3-0-ctdb.tridge @ tridge@samba.org-
20070602053809-kpw5kjkcyjs8yjbl]
suppress that darn message
(cherry picked from commit
542e46a21898f6fcc8a0aeb63925607a60e0b99f)
Michael Adam [Tue, 18 Mar 2008 15:31:15 +0000 (16:31 +0100)]
libreplace: remove duplicate entry of inet_ntoa from README.
Michael
(cherry picked from commit
98ee8c84300757d778733a458c6ca3e6022b40ea)
Michael Adam [Tue, 18 Mar 2008 12:10:22 +0000 (13:10 +0100)]
libreplace: remove trailing white spaces.
Michael
(cherry picked from commit
1f9ca7eed965904f67cf78fbac007432b8a057fd)
Michael Adam [Tue, 18 Mar 2008 11:16:47 +0000 (12:16 +0100)]
libreplace: replace inet_ntoa() when it is missing
...not only replace it when it is broken.
This moves the defintion of rep_inet_ntoa from replace.c
to inet_ntoa.c and adds configure checks for existence
of inet_ntoa(). Checks are moved to an include file of its own.
NOTE: The original rep_inet_ntoa in replace.c was wrapped
into a "#ifndef WITH_PTHREADS" but the prototype in replace.h
and the define in system/network.h were not. I removed that
ifndef since the inet_ntoa() function is usually not thread safe
anyways, since it returns a pointer to a static buffer.
So whoever calls inet_ntoa() should be aware that it is not
thread safe anyways.
Michael
(cherry picked from commit
974c0c45ad42644348e0b55454715b12158f1028)
Michael Adam [Fri, 14 Mar 2008 14:53:38 +0000 (15:53 +0100)]
libreplace: put inet_aton.c under LGPL instead of GPL.
Michael
(cherry picked from commit
cca5d6626fe395f08fd4c8b2344e4e43646cb987)
Stefan Metzmacher [Tue, 18 Mar 2008 14:01:34 +0000 (15:01 +0100)]
libreplace: remove unused SOCKET_LIBS and NSL_LIBS
metze
(cherry picked from commit
62bb177a6e4a3e1f949b78c7cd7583f2e1271739)
Stefan Metzmacher [Tue, 18 Mar 2008 13:55:05 +0000 (14:55 +0100)]
libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB
metze
(cherry picked from commit
79037c31334e271a718fcac234148038814b591e)
Stefan Metzmacher [Tue, 18 Mar 2008 13:53:59 +0000 (14:53 +0100)]
libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks
...instead of using SOCKET_LIBS and NSL_LIBS.
metze
(cherry picked from commit
cef2e8d748756f61c248ad6660e85dd1ac36308a)
Stefan Metzmacher [Tue, 18 Mar 2008 13:52:36 +0000 (14:52 +0100)]
libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS
But keep the old ones untill the callers are fixed.
metze
(cherry picked from commit
e7115dcc8a0a4f420de7a901e3a21d4f35a6fcf9)
Michael Adam [Tue, 18 Mar 2008 14:50:27 +0000 (15:50 +0100)]
testparm: only check for %u und passwd program when passwd program is given.
Michael
Michael Adam [Tue, 18 Mar 2008 14:49:31 +0000 (15:49 +0100)]
testparm: correctly check for empty lp_passwd_prog().
Michael
Michael Adam [Tue, 18 Mar 2008 14:33:25 +0000 (15:33 +0100)]
testparm: fix irritating indentation.
Michael
Michael Adam [Tue, 18 Mar 2008 14:30:17 +0000 (15:30 +0100)]
testparm: fix a segfault triggered by setting "unix password sync = yes".
(introduced by pstring removal
041163551194102ca67fef52c57d87020a1d09bc)
Michael
Volker Lendecke [Tue, 18 Mar 2008 12:20:10 +0000 (13:20 +0100)]
Fix bug 5334
I did not test with a zero length file :-)
Volker Lendecke [Mon, 17 Mar 2008 20:00:16 +0000 (21:00 +0100)]
Some simplifications
Marc VanHeyningen [Fri, 14 Mar 2008 22:26:28 +0000 (14:26 -0800)]
Coverity fixes
Michael Adam [Mon, 17 Mar 2008 17:01:33 +0000 (18:01 +0100)]
libsmbconf: rename all occurrences of libnet_conf_ to smbconf_ .
Michael
Michael Adam [Mon, 17 Mar 2008 16:29:44 +0000 (17:29 +0100)]
Move libnet_conf to a library lib/smbconf/ of its own, fixing the api.
The libnet_conf code to access the registry based configuration has
become more of a library used in several places in samba (e.g. loadparm)
than an abstraction of "net conf". So I move it to a location lib/smbconf/.
In the same breath, the api is fixed (not generated by make proto anymore).
Michael
Stefan Metzmacher [Mon, 17 Mar 2008 13:08:57 +0000 (14:08 +0100)]
socket_wrapper: make pcap code more portable
Now the pcap support works on x86_64.
metze
(cherry picked from commit
61a87bed61ef661d98131239976be95c6a8b4d96)
Derrell Lipman [Mon, 17 Mar 2008 15:34:25 +0000 (11:34 -0400)]
Fix use of AuthDataWithContext capability
During my initial plans for, and the subsequent discussion of a more
significant change to the API for libsmbclient, I had removed the
AuthDataWithContext usage, in favor of a more generalized planned interface.
When the API returned to its original state, I neglected to reinsert this
code.
Use of an authentication function with the context can be tested using
examples/libsmbclient/testbrowse -C
Derrell
Volker Lendecke [Mon, 17 Mar 2008 13:45:59 +0000 (14:45 +0100)]
In smbstatus, mark locking.tdb and sessionid.tdb as CLEAR_IF_FIRST
This is needed to inform ctdb that it's not a persistent database, with the
O_RDONLY the tdb backend ignores this.
Merge from
491f902098d33f in 3-0-ctdb
Volker Lendecke [Mon, 17 Mar 2008 13:40:07 +0000 (14:40 +0100)]
Merge leftovers of
0e1a86bc845 in 3-0-ctdb
Volker Lendecke [Mon, 17 Mar 2008 13:12:10 +0000 (14:12 +0100)]
Use right control to attach to persistent databases
This is a merge of
2a8f8b26f08ab09c34dff82417e541d8eb1ec91c and
4e6508dfee0d872a7fa42c9e58ba565137a27b3f from 3-0-ctdb
Volker Lendecke [Mon, 17 Mar 2008 12:51:50 +0000 (13:51 +0100)]
Add "net idmap aclmapset"
This is a merge from 3-0-ctdb that goes along with
1daad835, the option
nfs4:sidmap option
Michael Adam [Mon, 17 Mar 2008 11:21:32 +0000 (12:21 +0100)]
registry: untangle assignment and if-clause in init_registry_data().
Michael
Volker Lendecke [Fri, 14 Mar 2008 19:35:38 +0000 (20:35 +0100)]
Convert pdb_tdb to use dbwrap
Michael Adam [Mon, 17 Mar 2008 00:44:26 +0000 (01:44 +0100)]
registry: convert regdb REGISTRY_OPS to named struct initializers.
Michael
Michael Adam [Mon, 17 Mar 2008 00:39:16 +0000 (01:39 +0100)]
registry: use talloc instead of malloc and provide common exit point
in regdb_get_secdesc().
Michael
Michael Adam [Mon, 17 Mar 2008 00:32:47 +0000 (01:32 +0100)]
registry: remove an unused variable from regdb_set_secdesc().
Michael
Michael Adam [Mon, 17 Mar 2008 00:31:47 +0000 (01:31 +0100)]
registry: untangle assignments and if statements in regdb_set_secdesc().
Michael
Michael Adam [Mon, 17 Mar 2008 00:27:27 +0000 (01:27 +0100)]
registry: use talloc_stackframe instead of hand crafted temporary context.
Michael
Michael Adam [Mon, 17 Mar 2008 00:26:35 +0000 (01:26 +0100)]
registry: use talloc instead of malloc for tdb data in regdb_store_values().
Michael
Michael Adam [Mon, 17 Mar 2008 00:20:18 +0000 (01:20 +0100)]
registry: don't use talloc_stackframe() instead of talloc_tos() als temp ctx
in regdb_store_values(). Also provide common exit path for
freeing memory.
Michael
Michael Adam [Mon, 17 Mar 2008 00:17:15 +0000 (01:17 +0100)]
registry: don't leak to talloc stack in regdb_fetch_keys().
Michael
Michael Adam [Mon, 17 Mar 2008 00:09:31 +0000 (01:09 +0100)]
registry: explicitly use talloc context instead of talloc_tos()
in regdb_fetch_keys().
Michael
Michael Adam [Mon, 17 Mar 2008 00:05:48 +0000 (01:05 +0100)]
registry: don't leak on success path in regdb_store_keys().
Michael
Michael Adam [Mon, 17 Mar 2008 00:02:47 +0000 (01:02 +0100)]
registry: allocate tempory data in talloc stack in regdb_store_keys().
Michael
Michael Adam [Mon, 17 Mar 2008 00:00:40 +0000 (01:00 +0100)]
registry: separate cancel and failur exit paths in regdb_store_keys().
Michael
Michael Adam [Sun, 16 Mar 2008 23:43:56 +0000 (00:43 +0100)]
registry: don't leak memory on transaction fail in regdb_store_keys().
Michael
Michael Adam [Sun, 16 Mar 2008 23:41:59 +0000 (00:41 +0100)]
registry: don't leak (to talloc_tos()) in regdb_store_keys().
use talloc_stackframe() and free on error path.
Michael
Michael Adam [Sun, 16 Mar 2008 23:22:12 +0000 (00:22 +0100)]
registry: reformat regdb_store_keys_internal(), killing long lines.
Michael
Michael Adam [Sun, 16 Mar 2008 23:09:07 +0000 (00:09 +0100)]
registry: don't leak (to talloc_tos()) in regdb_store_keys_internal().
Michael
Michael Adam [Sun, 16 Mar 2008 23:02:52 +0000 (00:02 +0100)]
registry: reformat init_registry_data() some, killing long lines.
Michael
Michael Adam [Sun, 16 Mar 2008 22:52:40 +0000 (23:52 +0100)]
registry: explicitly use talloc context instead of talloc_tos()
in init_registry_data().
Michael
Michael Adam [Sun, 16 Mar 2008 22:49:59 +0000 (23:49 +0100)]
registry: don't leak (to talloc_tos()) in init_registry_data().
Michael
Michael Adam [Sun, 16 Mar 2008 22:08:33 +0000 (23:08 +0100)]
registry: rename tdb_refcount to regdb_refcount after change to dbwrap.
Michael
Michael Adam [Sun, 16 Mar 2008 22:07:15 +0000 (23:07 +0100)]
registry: rename tdb_reg to regdb after change to dbwrap.
Michael
Michael Adam [Sun, 16 Mar 2008 22:03:34 +0000 (23:03 +0100)]
registry: migrate tdb registry backend to dbwrap.
Michael
Volker Lendecke [Sun, 16 Mar 2008 19:23:44 +0000 (12:23 -0700)]
Fix Coverity ID 567
Jeremy, please push it if you like it and mark the bug as fixed on the Coverity
site.
Thanks,
Volker
Volker Lendecke [Sun, 16 Mar 2008 10:55:59 +0000 (11:55 +0100)]
Need to close the /dev/zero fd
Volker Lendecke [Sat, 15 Mar 2008 21:27:05 +0000 (22:27 +0100)]
Fix Coverity ID 554
Volker Lendecke [Sat, 15 Mar 2008 21:22:53 +0000 (22:22 +0100)]
Fix Coverity ID 555
Volker Lendecke [Sat, 15 Mar 2008 21:16:42 +0000 (22:16 +0100)]
Fix Coverity ID 563
dirmask is always set here, we've dereferenced it before anyway
Volker Lendecke [Sat, 15 Mar 2008 21:07:44 +0000 (22:07 +0100)]
Fix Coverity ID 564
finfo1==NULL just does not happen in current code
Volker Lendecke [Sat, 15 Mar 2008 20:47:22 +0000 (21:47 +0100)]
Allocate one 0-byte in asprintf replacement when len==0
Some S3 code depends on this.
Günther Deschner [Sat, 15 Mar 2008 11:55:17 +0000 (12:55 +0100)]
Fix typo.
Guenther
Volker Lendecke [Fri, 14 Mar 2008 21:22:30 +0000 (22:22 +0100)]
Fix bug 5317
Thanks to oster@cs.usask.ca
Volker Lendecke [Fri, 14 Mar 2008 17:01:06 +0000 (18:01 +0100)]
Fix bug 4901
Michael Adam [Fri, 14 Mar 2008 08:39:58 +0000 (09:39 +0100)]
libreplace: fix samba4 build (by not setting global LIBS).
This corrects the earlier fix of the standalone build, by setting
LIBS to the desired value only in configure.ac but not in getifaddrs.m4.
Not that this changes the standalone build in that it adds these libs
undconditionally and not only if they are needed by the getifaddrs
replacement functions.
Michael
(cherry picked from commit
ff3af1703ddc9e5383f32156bc5be8351f795e76)
Michael Adam [Fri, 14 Mar 2008 07:52:16 +0000 (08:52 +0100)]
libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.
This is needed, otherwise $libreplacedir/system/network.h does not
find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.).
Michael
(cherry picked from commit
297c3bece094ddb5f268b02e61e33f512ccfe6f5)
Michael Adam [Fri, 14 Mar 2008 07:49:34 +0000 (08:49 +0100)]
libreplace: add an inet_aton() function that calls inet_pton().
inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().
Michael
(cherry picked from commit
bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919)
Michael Adam [Thu, 13 Mar 2008 22:08:07 +0000 (23:08 +0100)]
Allow parameter "include" in registry based configuration (again).
This is for instance important to allow includes with %I to setup
individual logging (e.g.) for certain clients.
Michael
Michael Adam [Thu, 13 Mar 2008 22:02:58 +0000 (23:02 +0100)]
Fix %I macro expansion for IPv4 mapped IPv6 addresses.
On some systems (linux e.g.), when listening on ipv6 and ipv4,
addresses of ipv4 clients are printed as mapped ipv4 addresses
by getnameinfo (e.g. ::ffff:127.0.0.1). This re-establishes
the original behaviour of %I to expand to the plain ipv4 address
for an ipv4 client.
Michael
Günther Deschner [Wed, 12 Mar 2008 15:35:41 +0000 (16:35 +0100)]
Use existing srv_name_slash.
Guenther
Günther Deschner [Wed, 12 Mar 2008 15:19:56 +0000 (16:19 +0100)]
For convenience reasons, always create cli->srv_name_slash in the rpc_client.
Guenther
Günther Deschner [Wed, 12 Mar 2008 15:18:54 +0000 (16:18 +0100)]
Remove unused marshalling for SRV_NET_DISK_ENUM.
Guenther
Günther Deschner [Wed, 12 Mar 2008 15:17:27 +0000 (16:17 +0100)]
Ignore some unneeded autogenerated cli_ and srv_ functions.
Guenther
Michael Adam [Wed, 12 Mar 2008 01:12:11 +0000 (02:12 +0100)]
init_srv_share_info_ctr: fix counting of services.
The number of services was recorded too early leading to
registry shares not showing up in browse lists.
Guenther - please check.
Michael
Michael Adam [Wed, 12 Mar 2008 01:10:35 +0000 (02:10 +0100)]
init_srv_share_info_ctr: Add debug messages.
Michael
Michael Adam [Wed, 12 Mar 2008 01:07:37 +0000 (02:07 +0100)]
Add a debug message.
Michael
Michael Adam [Wed, 12 Mar 2008 00:03:26 +0000 (01:03 +0100)]
loadparm: add a debug message.
Michael
Michael Adam [Tue, 11 Mar 2008 23:56:33 +0000 (00:56 +0100)]
loadparm: remove services read from smb.conf when starting over for config backend registry.
Michael
Michael Adam [Tue, 11 Mar 2008 23:54:48 +0000 (00:54 +0100)]
loadparm: add convenience wrapper lp_kill_all_services()
Michael
Michael Adam [Tue, 11 Mar 2008 23:43:19 +0000 (00:43 +0100)]
loadparm: add a comment
Michael
Michael Adam [Tue, 11 Mar 2008 23:42:06 +0000 (00:42 +0100)]
loadparm: fix a comment typo.
Michael
Michael Adam [Tue, 11 Mar 2008 11:41:20 +0000 (12:41 +0100)]
loadparm: add utility function to check for config backend file.
Michael
Michael Adam [Tue, 11 Mar 2008 11:36:18 +0000 (12:36 +0100)]
loadparm: use a function to check for the registry config backend.
Michael
Jeremy Allison [Tue, 11 Mar 2008 22:26:22 +0000 (15:26 -0700)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Tue, 11 Mar 2008 22:26:02 +0000 (15:26 -0700)]
Using Metze's S4 nttrans rename test, the nttrans rename
behaves the same as the trans2 one.
Jeremy.
Stefan Metzmacher [Tue, 11 Mar 2008 21:06:09 +0000 (22:06 +0100)]
selftest: samba3 passes RAW-SEARCH now
As the resume key tests are skipped against samba3.
metze
Jeremy Allison [Tue, 11 Mar 2008 20:59:04 +0000 (13:59 -0700)]
Metze pointed out this we don't need FILE_ATTRIBUTE_READ here.
Jeremy.
Jeremy Allison [Tue, 11 Mar 2008 20:38:25 +0000 (13:38 -0700)]
Allow us to pass RAW-RENAME by testing that the connection struct
connection paths are equal, not just the conn structs themselves.
Jeremy.
Jeremy Allison [Tue, 11 Mar 2008 20:27:33 +0000 (13:27 -0700)]
Try and fix bug #5315, as well as S4 torture tests RAW-OPLOCK BATCH19,
BATCH20 and RAW-RENAME.
Jeremy.
Jeremy Allison [Tue, 11 Mar 2008 19:37:01 +0000 (12:37 -0700)]
Fix S3 to pass the test_raw_oplock_exclusive3 test.
Jeremy.
Charles [Tue, 11 Mar 2008 18:49:08 +0000 (19:49 +0100)]
The attached patch removes some global variables, and make them local to main().
Günther Deschner [Tue, 11 Mar 2008 17:19:45 +0000 (18:19 +0100)]
Add some last init_srvsvc_X functions.
Guenther
Volker Lendecke [Tue, 11 Mar 2008 13:15:52 +0000 (14:15 +0100)]
Convert mapping_tdb.c to dbwrap
I know, this is not used anymore, but until ldb knows about ctdb which is
blocked by the lack of transactions in ctdb, a tiny patch reactivating
mapping_tdb.c might be needed for cluster setups.
Volker Lendecke [Tue, 11 Mar 2008 11:53:50 +0000 (12:53 +0100)]
Clean up add_mapping_entry slightly
Volker Lendecke [Tue, 11 Mar 2008 11:46:36 +0000 (12:46 +0100)]
Cleanup after pstring removal
Volker Lendecke [Tue, 11 Mar 2008 11:30:46 +0000 (12:30 +0100)]
Convert secrets.c to use dbwrap
Günther Deschner [Tue, 11 Mar 2008 10:30:55 +0000 (11:30 +0100)]
Trying to fix resume_handling for srvsvc_NetShareEnumAll.
Guenther
Günther Deschner [Tue, 11 Mar 2008 10:29:49 +0000 (11:29 +0100)]
Allow to send no resume_handle in rpcclient's NetShareEnum* calls.
Guenther