ira/wip.git
12 years agoselftest:Samba3: fix signature for check_or_start()
Michael Adam [Tue, 18 Oct 2011 09:37:25 +0000 (11:37 +0200)]
selftest:Samba3: fix signature for check_or_start()

12 years agoselftest:Samba3: fix a message printed when starting winbindd
Michael Adam [Tue, 18 Oct 2011 09:34:22 +0000 (11:34 +0200)]
selftest:Samba3: fix a message printed when starting winbindd

12 years agopdb-interface: Do not use unid_t here
Simo Sorce [Tue, 18 Oct 2011 14:44:52 +0000 (10:44 -0400)]
pdb-interface: Do not use unid_t here

This interface needs to be publicly available, unid_t here is not really useful
and makes it harder to use it as unid_t is not a public union.

Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Tue Oct 18 20:57:16 CEST 2011 on sn-devel-104

12 years agos3-auth move the s3 auth context onto gensec_ntlmssp once we start
Andrew Bartlett [Tue, 18 Oct 2011 05:34:27 +0000 (16:34 +1100)]
s3-auth move the s3 auth context onto gensec_ntlmssp once we start

We do not need it on the auth_ntlmssp_state any longer.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 18 13:54:36 CEST 2011 on sn-devel-104

12 years agos3-libsmb Use a gensec module to provide the ntlmssp client in ntlmssp_wrap.c
Andrew Bartlett [Tue, 18 Oct 2011 05:16:02 +0000 (16:16 +1100)]
s3-libsmb Use a gensec module to provide the ntlmssp client in ntlmssp_wrap.c

This removes the need to have if (ans->gensec_security) everywhere.

Andrew Bartlett

12 years agos3-ntlmssp split auth_ntlmssp_client_start() into two parts
Andrew Bartlett [Mon, 17 Oct 2011 09:19:11 +0000 (20:19 +1100)]
s3-ntlmssp split auth_ntlmssp_client_start() into two parts

This will allow it to be a wrapper around a gensec module, which
requires that they options be set on a context, but before the
mechanism is started.

This also simplfies the callers, by moving the lp_*() calls
into one place.

Andrew Bartlett

12 years agos3-rpc_client remove cli_auth_ntlmssp_data_destructor
Andrew Bartlett [Mon, 17 Oct 2011 09:00:02 +0000 (20:00 +1100)]
s3-rpc_client remove cli_auth_ntlmssp_data_destructor

This can be an ordinary talloc child without causing any problem.

This seems to have been inherited from a time when ntlmssp_client_start()
returned malloc() based memory.

Andrew Bartlett

12 years agos3/doc: add man page for aio_fork vfs module
Björn Jacke [Tue, 18 Oct 2011 08:54:56 +0000 (10:54 +0200)]
s3/doc: add man page for aio_fork vfs module

thanks to Volker for the content

Autobuild-User: Björn Jacke <bj@sernet.de>
Autobuild-Date: Tue Oct 18 12:24:35 CEST 2011 on sn-devel-104

12 years agos4:auth/unix_token: match s3 behavior and add uid/gid to the groups array
Stefan Metzmacher [Mon, 17 Oct 2011 12:20:45 +0000 (14:20 +0200)]
s4:auth/unix_token: match s3 behavior and add uid/gid to the groups array

If mappings use ID_TYPE_BOTH.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Oct 18 10:39:54 CEST 2011 on sn-devel-104

12 years agolib/param: Remove parameters for wins and spoolss databases
Andrew Bartlett [Tue, 18 Oct 2011 00:33:33 +0000 (11:33 +1100)]
lib/param: Remove parameters for wins and spoolss databases

This removes the smb.conf parameters per-database, replacing these
with hard-coded database names in well known (and configurable)
directories.

The wins.ldb is now always in the "state dir", rather than being in
both state and lock dir (ie, a bug).

Less smb.conf parameters means less parameters to try and sync up
between the loadparm subsystems.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 18 05:39:54 CEST 2011 on sn-devel-104

12 years agoldb: Output more error information when a connect fails
Andrew Bartlett [Tue, 18 Oct 2011 00:30:52 +0000 (11:30 +1100)]
ldb: Output more error information when a connect fails

12 years agos3:auth_util: add the uid with WBC_ID_TYPE_BOTH also to the group array
Stefan Metzmacher [Wed, 12 Oct 2011 18:52:09 +0000 (20:52 +0200)]
s3:auth_util: add the uid with WBC_ID_TYPE_BOTH also to the group array

This will help with having "sidHistory" support in future.

metze

12 years agos3-auth: use typedefs in auth.h
Andrew Bartlett [Mon, 17 Oct 2011 04:56:44 +0000 (15:56 +1100)]
s3-auth: use typedefs in auth.h

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agogensec: move event context from gensec_*_init() to gensec_update()
Andrew Bartlett [Mon, 17 Oct 2011 07:22:33 +0000 (09:22 +0200)]
gensec: move event context from gensec_*_init() to gensec_update()

This avoids keeping the event context around on a the gensec_security
context structure long term.

In the Samba3 server, the event context we either supply is a NULL
pointer as no server-side modules currently use the event context.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-auth fix comment after s3 ntlmssp gensec module
Andrew Bartlett [Mon, 17 Oct 2011 03:00:39 +0000 (14:00 +1100)]
s3-auth fix comment after s3 ntlmssp gensec module

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agogensec: move event-using code to gensec_update() hooks out of gensec_start*()
Andrew Bartlett [Mon, 17 Oct 2011 02:46:57 +0000 (13:46 +1100)]
gensec: move event-using code to gensec_update() hooks out of gensec_start*()

This ensures that only gensec_update() will require an event context argument
when the API is refactored.

Andrew Bartlett

12 years agontlmssp: Refuse to seal if we did not negotiate to sign
Andrew Bartlett [Sat, 15 Oct 2011 03:56:11 +0000 (14:56 +1100)]
ntlmssp: Refuse to seal if we did not negotiate to sign

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agogensec: Refuse to seal if we did not negotiate to sign
Andrew Bartlett [Sat, 15 Oct 2011 03:56:01 +0000 (14:56 +1100)]
gensec: Refuse to seal if we did not negotiate to sign

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4-auth: match the new s3 gensec client and always negotiate SIGN with SEAL
Andrew Bartlett [Sat, 15 Oct 2011 02:19:41 +0000 (13:19 +1100)]
s4-auth: match the new s3 gensec client and always negotiate SIGN with SEAL

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agogensec: Assert that we have not been subject to a downgrade attack in DCE/RPC clients
Andrew Bartlett [Sat, 15 Oct 2011 02:17:33 +0000 (13:17 +1100)]
gensec: Assert that we have not been subject to a downgrade attack in DCE/RPC clients

Because of the calling convention, this is the best place to assert
that we have not been subject to a downgrade attack on the negotiated
features.  (In DCE/RPC, this isn't a negotiation, the client simply
specifies the level of protection that is required).

Andrew Bartlett

(some formatting fixes)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-smbd Give the nt error string when failing to set up encrypted transport
Andrew Bartlett [Tue, 11 Oct 2011 05:13:49 +0000 (16:13 +1100)]
s3-smbd Give the nt error string when failing to set up encrypted transport

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-ntlmssp Implement the server-side auth_ntlmssp code as a GENSEC module
Andrew Bartlett [Tue, 26 Jul 2011 02:35:09 +0000 (12:35 +1000)]
s3-ntlmssp Implement the server-side auth_ntlmssp code as a GENSEC module

This uses the top level gensec_ntlmssp helper functions which are identical
to the parts of ntlmssp_wrap.c that are now not called.

(Includes formatting and correctness fixes from Metze)

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agogensec: an event context is no longer mandetory
Andrew Bartlett [Sat, 15 Oct 2011 06:27:30 +0000 (17:27 +1100)]
gensec: an event context is no longer mandetory

If you do not specify one however, you better know that the modules
you are using do not need one!

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agontlmssp: Put members from auth_ntlmssp_state into gensec_ntlmssp_state
Andrew Bartlett [Mon, 25 Jul 2011 07:43:50 +0000 (17:43 +1000)]
ntlmssp: Put members from auth_ntlmssp_state into gensec_ntlmssp_state

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agontlmssp: Prepare gensec_ntlmssp_start() for broader use
Andrew Bartlett [Tue, 26 Jul 2011 02:32:08 +0000 (12:32 +1000)]
ntlmssp: Prepare gensec_ntlmssp_start() for broader use

This moves the allocation of the ntlmssp pointer back to the callers.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agontlmssp: Move ntlmssp code to auth/ntlmssp
Andrew Bartlett [Mon, 25 Jul 2011 06:04:38 +0000 (16:04 +1000)]
ntlmssp: Move ntlmssp code to auth/ntlmssp

This brings in the code from both libcli/auth and
source4/auth/ntlmssp.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agobuild: compile gensec_start.c and credentials.c in the autoconf build
Andrew Bartlett [Sun, 9 Oct 2011 12:28:54 +0000 (23:28 +1100)]
build: compile gensec_start.c and credentials.c in the autoconf build

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4-s3-upgrade: Give a better clue when we cannot open secrets.tdb
Andrew Bartlett [Mon, 17 Oct 2011 01:22:44 +0000 (12:22 +1100)]
s4-s3-upgrade: Give a better clue when we cannot open secrets.tdb

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3-auth Add my copyright
Andrew Bartlett [Mon, 17 Oct 2011 21:42:25 +0000 (08:42 +1100)]
s3-auth Add my copyright

I have done plenty of work here, I deserve some of the blame :-)

Andrew Bartlett

12 years agocredentials: Prioritise command-line specified options above defaults from smb.conf
Andrew Bartlett [Mon, 17 Oct 2011 21:41:46 +0000 (08:41 +1100)]
credentials: Prioritise command-line specified options above defaults from smb.conf

If a user specified -W or --realm on the command line, then this is
of level SPECIFIED, not UNINITIALISED, despite it going via the
loadparm system.

This helps us to ensure that -W server -Ulocaluser is parsed the
same as -Userver\localuser.  This matters as otherwise we might
instead attempt to use kerberos to the realm from the smb.conf.

Andrew Bartlett

12 years agos4-selftest When testing for a credentials cache, do not specify a domain
Andrew Bartlett [Mon, 17 Oct 2011 23:03:21 +0000 (10:03 +1100)]
s4-selftest When testing for a credentials cache, do not specify a domain

If we specify a domain, then we indicate that we must use that domain
which overrides the credentials cache we found in the environment.

Andrew Bartlett

12 years agoRevert "s4: Mark the winsreplication test as knownfail"
Andrew Bartlett [Tue, 18 Oct 2011 01:18:36 +0000 (12:18 +1100)]
Revert "s4: Mark the winsreplication test as knownfail"

This reverts commit f7f6992a20dd29bd7643291e3b3d05bc8f6c9c76 because
75953f18469fa8746d9d8ad20bbbb3bcbd0df9dd solved the root cause, which
was a race in ldb startup.

Andrew Bartlett

12 years agoRevert "s4:selftest: skip flakey samba4.nbt.winsreplication for now"
Andrew Bartlett [Tue, 18 Oct 2011 01:17:37 +0000 (12:17 +1100)]
Revert "s4:selftest: skip flakey samba4.nbt.winsreplication for now"

This reverts commit 16fd935fc659555c203354b6c96fc23a55be5a3b because
75953f18469fa8746d9d8ad20bbbb3bcbd0df9dd solved the root cause, which
was a race in ldb startup.

Andrew Bartlett

12 years agoldb: fixed a race in ldb initialisation
Andrew Tridgell [Tue, 18 Oct 2011 00:21:34 +0000 (11:21 +1100)]
ldb: fixed a race in ldb initialisation

This fixes a race when two processes initialise the same ldb database
at the same time. One of them could fail due to the other creating the
@BASEINFO record first.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Oct 18 03:54:42 CEST 2011 on sn-devel-104

12 years agolibsmbclient: initial ABI signatures
Andrew Tridgell [Wed, 12 Oct 2011 23:03:55 +0000 (10:03 +1100)]
libsmbclient: initial ABI signatures

12 years agolibsmbclient: add ABI checking and pc file
Andrew Tridgell [Wed, 12 Oct 2011 23:02:17 +0000 (10:02 +1100)]
libsmbclient: add ABI checking and pc file

this gives us ABI checking for libsmbclient so that the waf build will
prevent ABI breakage, and a public version number. The addition of the
pc file makes this library available via pkgconfig, including querying
of the version number

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

12 years agoFix uninitialized memory problem in group_sids_to_info3 (fixes bug #8455).
Wilco Baan Hofman [Mon, 17 Oct 2011 19:24:41 +0000 (21:24 +0200)]
Fix uninitialized memory problem in group_sids_to_info3 (fixes bug #8455).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Oct 17 23:32:58 CEST 2011 on sn-devel-104

12 years agoFirst part of fix for bug #8419 - Make VFS op "streaminfo" stackable.
Frank Lahm [Mon, 17 Oct 2011 18:10:29 +0000 (11:10 -0700)]
First part of fix for bug #8419 - Make VFS op "streaminfo" stackable.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Oct 17 21:39:32 CEST 2011 on sn-devel-104

12 years agos3-waf: make sure we always build example pdb modules with --enable-developer.
Günther Deschner [Mon, 17 Oct 2011 14:08:50 +0000 (16:08 +0200)]
s3-waf: make sure we always build example pdb modules with --enable-developer.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Oct 17 17:39:36 CEST 2011 on sn-devel-104

12 years agos3-passdb: fix the build of example pdb test module.
Günther Deschner [Mon, 17 Oct 2011 14:08:04 +0000 (16:08 +0200)]
s3-passdb: fix the build of example pdb test module.

Guenther

12 years agos3-auth: remove dead prototype.
Günther Deschner [Mon, 17 Oct 2011 13:56:08 +0000 (15:56 +0200)]
s3-auth: remove dead prototype.

Guenther

12 years agos3-waf: make sure we always build example auth modules with --enable-developer.
Günther Deschner [Mon, 17 Oct 2011 13:54:17 +0000 (15:54 +0200)]
s3-waf: make sure we always build example auth modules with --enable-developer.

Guenther

12 years agos3-auth: fix the build of skel auth example module.
Günther Deschner [Mon, 17 Oct 2011 13:53:19 +0000 (15:53 +0200)]
s3-auth: fix the build of skel auth example module.

Guenther

12 years agos4:dlz_bind9: add no memory checks
Stefan Metzmacher [Mon, 17 Oct 2011 10:10:10 +0000 (12:10 +0200)]
s4:dlz_bind9: add no memory checks

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 17 14:07:25 CEST 2011 on sn-devel-104

12 years agos4:dlz_bind9: Copy dn before changing in b9_has_soa
Stefan Gohmann [Thu, 13 Oct 2011 13:23:58 +0000 (15:23 +0200)]
s4:dlz_bind9: Copy dn before changing in b9_has_soa

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos4:dlz_bind9: add missing earch bases for windows 2000 domains
Stefan Gohmann [Fri, 16 Sep 2011 13:36:08 +0000 (15:36 +0200)]
s4:dlz_bind9: add missing earch bases for windows 2000 domains

By default the samba4 dlz_bind9 backend searches under
CN=MicrosoftDNS,DC=DomainDnsZones and CN=MicrosoftDNS,DC=ForestDnsZones.

In my samba4 test setup all DNS zones are under CN=MicrosoftDNS,CN=System.
After adding the attached patch it works fine for me.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
12 years agos3: Before adding KDC's to the krb5.conf, cldap ping them
Volker Lendecke [Wed, 12 Oct 2011 17:41:45 +0000 (19:41 +0200)]
s3: Before adding KDC's to the krb5.conf, cldap ping them

Some Kerberos libraries don't do proper failover. This fixes the situation
where a KDC exists in DNS but is not reachable for some reason.

Ported to master by Stefan Metzmacher <metze@samba.org>

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Mon Oct 17 11:25:37 CEST 2011 on sn-devel-104

12 years agoAdd cldap_multi_netlogon_send/recv
Volker Lendecke [Thu, 29 Sep 2011 11:30:30 +0000 (13:30 +0200)]
Add cldap_multi_netlogon_send/recv

Make ads_cldap_netlogon use it. It does not need the fancy multi stuff, but
excercising that code more often is better. And because we have to ask over the
network, the additional load should be neglectable.

Ported to master by Stefan Metzmacher <metze@samba.org>

12 years agos4 provision: DNS backend should be set by caller
Kai Blin [Sat, 15 Oct 2011 11:54:45 +0000 (13:54 +0200)]
s4 provision: DNS backend should be set by caller

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Mon Oct 17 09:51:12 CEST 2011 on sn-devel-104

12 years agos4 provision/dns: Clean up os level handling
Kai Blin [Sat, 15 Oct 2011 11:52:57 +0000 (13:52 +0200)]
s4 provision/dns: Clean up os level handling

12 years agos4 provision/dns: Clean up backend handling
Kai Blin [Sat, 15 Oct 2011 11:48:28 +0000 (13:48 +0200)]
s4 provision/dns: Clean up backend handling

12 years agos4 provision: Default to win2k3 domain function level
Kai Blin [Sat, 15 Oct 2011 10:36:50 +0000 (12:36 +0200)]
s4 provision: Default to win2k3 domain function level

12 years agos4 provision: Reword opinionated dns backend help text, add NONE backend
Kai Blin [Sat, 15 Oct 2011 10:27:55 +0000 (12:27 +0200)]
s4 provision: Reword opinionated dns backend help text, add NONE backend

12 years agos4 provision: Rename bind9 flatfile backend to BIND9_FLATFILE
Kai Blin [Sat, 15 Oct 2011 10:17:14 +0000 (12:17 +0200)]
s4 provision: Rename bind9 flatfile backend to BIND9_FLATFILE

12 years agoprovision: fix the doc
Matthieu Patou [Tue, 4 Oct 2011 19:06:31 +0000 (21:06 +0200)]
provision: fix the doc

Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Oct 16 01:31:21 CEST 2011 on sn-devel-104

12 years agos4-interfaces: allow pure ipv6 to work
Matthieu Patou [Sat, 15 Oct 2011 09:13:40 +0000 (11:13 +0200)]
s4-interfaces: allow pure ipv6 to work

This is the complementary part of patch
abe5afc580dcaaab70f136904d98fa83bfae7b6e for samba4.

12 years agos4: check that the xattr are supported in the folder where we want to provision
Matthieu Patou [Fri, 14 Oct 2011 09:22:20 +0000 (11:22 +0200)]
s4: check that the xattr are supported in the folder where we want to provision

By default we were checking this on the default folder for
tempfile.NamedTemporaryFile (usualy /tmp) but this folder can be mounted
on tmpfs (which didn't support xattr currently). Now we should check on
the filesystem where the provision will be done.

12 years agoRemoved unused variable.
Jeremy Allison [Fri, 14 Oct 2011 21:02:39 +0000 (14:02 -0700)]
Removed unused variable.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Oct 15 00:38:28 CEST 2011 on sn-devel-104

12 years agoRemove unused function.
Jeremy Allison [Fri, 14 Oct 2011 21:01:24 +0000 (14:01 -0700)]
Remove unused function.

12 years agoFix printf warning.
Jeremy Allison [Fri, 14 Oct 2011 20:53:53 +0000 (13:53 -0700)]
Fix printf warning.

12 years agoFix const warnings.
Jeremy Allison [Fri, 14 Oct 2011 20:51:26 +0000 (13:51 -0700)]
Fix const warnings.

12 years agoFix const warnings.
Jeremy Allison [Fri, 14 Oct 2011 20:48:53 +0000 (13:48 -0700)]
Fix const warnings.

12 years agoFix bug with Samba not recognising an 6to4 IPv6 interface.
Matthieu Patou [Fri, 14 Oct 2011 20:45:48 +0000 (13:45 -0700)]
Fix bug with Samba not recognising an 6to4 IPv6 interface.

"The 6to4 interface has the flags IFF_POINTTOPOINT interface but no
ifa_dstaddr as it's not at the IPv6 level a point to point interface
(at least from my understanding), as we don't have a IFF_BROADCAST
flag set (I have the impression that this flag is only set on a
interface that has also an IPv4 address) the first test is not valid
also, which result in a skipped interface."

12 years agoFix const warning.
Jeremy Allison [Fri, 14 Oct 2011 20:20:07 +0000 (13:20 -0700)]
Fix const warning.

12 years agos3:dbwrap_ctdb: return the number of records in db_ctdb_traverse() for persistent dbs
Stefan Metzmacher [Fri, 14 Oct 2011 14:11:06 +0000 (16:11 +0200)]
s3:dbwrap_ctdb: return the number of records in db_ctdb_traverse() for persistent dbs

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Oct 14 20:59:37 CEST 2011 on sn-devel-104

12 years agos3-net: Fix uninitialized variable in rpc_conf_import_internal().
Günther Deschner [Fri, 14 Oct 2011 14:51:07 +0000 (16:51 +0200)]
s3-net: Fix uninitialized variable in rpc_conf_import_internal().

Michael, please check.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Oct 14 19:25:47 CEST 2011 on sn-devel-104

12 years agoFix sys_fseek wrapper
Brad Smith [Wed, 12 Oct 2011 08:23:58 +0000 (04:23 -0400)]
Fix sys_fseek wrapper

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agobuild: added autoconf --disable-silent-rules option
Sumit Bose [Thu, 6 Oct 2011 08:32:58 +0000 (10:32 +0200)]
build: added autoconf --disable-silent-rules option

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agos3:net registry: fix segfault when net registry is called without subcommands...
Michael Adam [Fri, 14 Oct 2011 14:19:03 +0000 (16:19 +0200)]
s3:net registry: fix segfault when net registry is called without subcommands...

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Oct 14 17:51:53 CEST 2011 on sn-devel-104

12 years agolibreplace: add a missing "eval" to the AC_VERIFY_C_PROTOTYPE macro
Michael Adam [Fri, 14 Oct 2011 12:05:09 +0000 (14:05 +0200)]
libreplace: add a missing "eval" to the AC_VERIFY_C_PROTOTYPE macro

Without this eval, upon test success the corresponding actions
(like defining corresponding variables) are not taken.

Found by Timur I. Bakeyev, and based on his patch for 3.5.

12 years agos3-utils: add capabilities to dbwrap_tool
Björn Baumbach [Fri, 14 Oct 2011 10:22:16 +0000 (12:22 +0200)]
s3-utils: add capabilities to dbwrap_tool

Make it possible to work with strings in addition to int32 and uint32.

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos3-waf: install passdb headers.
Günther Deschner [Tue, 27 Sep 2011 16:23:39 +0000 (18:23 +0200)]
s3-waf: install passdb headers.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Oct 14 13:37:38 CEST 2011 on sn-devel-104

12 years agos3-passdb: remove libwbclient header dependency for passdb/lookup_sid.h.
Günther Deschner [Thu, 13 Oct 2011 12:56:37 +0000 (14:56 +0200)]
s3-passdb: remove libwbclient header dependency for passdb/lookup_sid.h.

Guenther

12 years agos3-passdb: remove fstring from pdb_set_user_sid_from_string().
Günther Deschner [Thu, 13 Oct 2011 12:55:32 +0000 (14:55 +0200)]
s3-passdb: remove fstring from pdb_set_user_sid_from_string().

Guenther

12 years agos3-passdb: add define guards for machine_sid.h.
Günther Deschner [Thu, 13 Oct 2011 12:54:51 +0000 (14:54 +0200)]
s3-passdb: add define guards for machine_sid.h.

Guenther

12 years agos3-passdb: add {LM|NT}_HASH_LEN defines in passdb.h.
Günther Deschner [Wed, 12 Oct 2011 13:51:19 +0000 (15:51 +0200)]
s3-passdb: add {LM|NT}_HASH_LEN defines in passdb.h.

Guenther

12 years agos3-passdb: use uintX_t at least in headers.
Günther Deschner [Wed, 12 Oct 2011 13:50:44 +0000 (15:50 +0200)]
s3-passdb: use uintX_t at least in headers.

Guenther

12 years agos3-passdb: move passdb prototypes into passdb.h
Günther Deschner [Tue, 27 Sep 2011 15:53:09 +0000 (17:53 +0200)]
s3-passdb: move passdb prototypes into passdb.h

Guenther

12 years agos3-passdb: move group mapping headers into passdb.h
Günther Deschner [Tue, 27 Sep 2011 15:50:51 +0000 (17:50 +0200)]
s3-passdb: move group mapping headers into passdb.h

Guenther

12 years agos3-auth: token_util needs system/passwd.h.
Günther Deschner [Thu, 13 Oct 2011 12:56:03 +0000 (14:56 +0200)]
s3-auth: token_util needs system/passwd.h.

Guenther

12 years agos3: remove some dead prototypes.
Günther Deschner [Thu, 13 Oct 2011 12:37:47 +0000 (14:37 +0200)]
s3: remove some dead prototypes.

Guenther

12 years agoAdd support for VFS op streaminfo chaining in all relevant VFS modules.
Frank Lahm [Thu, 13 Oct 2011 22:41:53 +0000 (15:41 -0700)]
Add support for VFS op streaminfo chaining in all relevant VFS modules.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Oct 14 03:26:06 CEST 2011 on sn-devel-104

12 years agosamba-tool: Add test to make sure all commands have a short description set.
Jelmer Vernooij [Thu, 13 Oct 2011 21:49:05 +0000 (23:49 +0200)]
samba-tool: Add test to make sure all commands have a short description set.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Oct 14 01:53:45 CEST 2011 on sn-devel-104

12 years agosamba-tool: Add test to make sure all commands have a synopsis set.
Jelmer Vernooij [Thu, 13 Oct 2011 21:47:45 +0000 (23:47 +0200)]
samba-tool: Add test to make sure all commands have a synopsis set.

12 years agosamba-tool: Move main command implementation to samba.netcmd.main, so it is accessibl...
Jelmer Vernooij [Thu, 13 Oct 2011 21:36:10 +0000 (23:36 +0200)]
samba-tool: Move main command implementation to samba.netcmd.main, so it is accessible by the testsuite.

12 years agosamba-tool: Don't require full prog line to be in synopsis.
Jelmer Vernooij [Thu, 13 Oct 2011 21:27:22 +0000 (23:27 +0200)]
samba-tool: Don't require full prog line to be in synopsis.

12 years agosamba.netcmd: Reintroduce Command.name.
Jelmer Vernooij [Thu, 13 Oct 2011 21:16:58 +0000 (23:16 +0200)]
samba.netcmd: Reintroduce Command.name.

12 years agoCodingStyle: Add some notes about Python 2.4 compatibility.
Jelmer Vernooij [Thu, 13 Oct 2011 21:08:45 +0000 (23:08 +0200)]
CodingStyle: Add some notes about Python 2.4 compatibility.

12 years agosamba-tool: Determine long option from docstring.
Jelmer Vernooij [Thu, 13 Oct 2011 21:08:32 +0000 (23:08 +0200)]
samba-tool: Determine long option from docstring.

12 years agocreds: Remove unnecessary calls to credopts.get_credentials.
Jelmer Vernooij [Thu, 13 Oct 2011 20:24:50 +0000 (22:24 +0200)]
creds: Remove unnecessary calls to credopts.get_credentials.

12 years agopython: Remove extra newlines.
Jelmer Vernooij [Thu, 13 Oct 2011 20:21:48 +0000 (22:21 +0200)]
python: Remove extra newlines.

12 years agos4:selftest: flakey test samba4.drs.delete_object.python should go into skip
Michael Adam [Thu, 13 Oct 2011 20:43:41 +0000 (22:43 +0200)]
s4:selftest: flakey test samba4.drs.delete_object.python should go into skip

not knownfail, which will render it flakey again, just the other way round.
Thanks Jelmer for pointing that out...

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Oct 14 00:21:26 CEST 2011 on sn-devel-104

12 years agoUpdate to newer version of subunit.
Jelmer Vernooij [Thu, 13 Oct 2011 17:03:26 +0000 (19:03 +0200)]
Update to newer version of subunit.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Oct 13 20:37:18 CEST 2011 on sn-devel-104

12 years agos3:dbwrap_ctdb: fix the build after changing signature of tdb_wrap_open()
Michael Adam [Thu, 13 Oct 2011 14:50:57 +0000 (16:50 +0200)]
s3:dbwrap_ctdb: fix the build after changing signature of tdb_wrap_open()

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Oct 13 18:50:47 CEST 2011 on sn-devel-104

12 years agoadd lib/param files to .gitignore
Andrew Bartlett [Thu, 13 Oct 2011 11:58:26 +0000 (22:58 +1100)]
add lib/param files to .gitignore

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Oct 13 15:40:16 CEST 2011 on sn-devel-104

12 years agobuild: run perl generators at autogen.sh time
Andrew Bartlett [Thu, 13 Oct 2011 11:53:20 +0000 (22:53 +1100)]
build: run perl generators at autogen.sh time

12 years agobuild: clean new generated param headers
Andrew Bartlett [Thu, 13 Oct 2011 11:53:03 +0000 (22:53 +1100)]
build: clean new generated param headers

12 years agobuild: only regenerate param files when required
Andrew Bartlett [Thu, 13 Oct 2011 11:51:30 +0000 (22:51 +1100)]
build: only regenerate param files when required

12 years agolib/param reduce the cost of loadparm_init_s3()
Andrew Bartlett [Thu, 13 Oct 2011 09:16:28 +0000 (20:16 +1100)]
lib/param reduce the cost of loadparm_init_s3()

The parameter redirection covers most things now, so this should be safe.

Andrew Bartlett

12 years agolib/util: Add back control of mmap and hash size in tdb for top level build
Andrew Bartlett [Wed, 12 Oct 2011 12:01:08 +0000 (23:01 +1100)]
lib/util: Add back control of mmap and hash size in tdb for top level build

This passes down a struct loadparm_context to allow these
parameters to be checked.  This may be s3 or s4 context, allowing the
#if _SAMBA_BUILD_ macro to go away safely.

Andrew Bartlett