garming/samba-autobuild/.git
12 years agos4-smbtorture: Add tests for lsaQueryTrustedDomainInfoByName() and lsaSetTrustedDomai...
Sumit Bose [Mon, 20 Jun 2011 12:39:01 +0000 (14:39 +0200)]
s4-smbtorture: Add tests for lsaQueryTrustedDomainInfoByName() and lsaSetTrustedDomainInfoByName()

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agos3-lsa: Update _lsa_QueryTrustedDomainInfo()
Sumit Bose [Wed, 6 Jul 2011 14:06:54 +0000 (16:06 +0200)]
s3-lsa: Update _lsa_QueryTrustedDomainInfo()

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agos3-pdb_ipa: Add supprted encryption types to struct pdb_trusted_domain
Sumit Bose [Thu, 23 Jun 2011 15:52:06 +0000 (17:52 +0200)]
s3-pdb_ipa: Add supprted encryption types to struct pdb_trusted_domain

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agos3-pdb_ipa: Add posix offset to struct pdb_trusted_domain
Sumit Bose [Thu, 23 Jun 2011 15:42:52 +0000 (17:42 +0200)]
s3-pdb_ipa: Add posix offset to struct pdb_trusted_domain

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agos3-ldap: Add Posix offset and encryption types to LDAP schema
Sumit Bose [Fri, 12 Aug 2011 15:46:23 +0000 (17:46 +0200)]
s3-ldap: Add Posix offset and encryption types to LDAP schema

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agos3-ldap: Add sambaTrustForestTrustInfo to NDS LDAP schema (again)
Sumit Bose [Fri, 19 Aug 2011 09:49:21 +0000 (11:49 +0200)]
s3-ldap: Add sambaTrustForestTrustInfo to NDS LDAP schema (again)

The related attributes and objectclass were accidentally remove by commit
d4c30a5ffbeab75506bf1ad5d8d5da48e3f4d41c

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agos3-lsa: Fix access mapping in_lsa_OpenTrustedDomain_base()
Sumit Bose [Wed, 6 Jul 2011 14:05:38 +0000 (16:05 +0200)]
s3-lsa: Fix access mapping in_lsa_OpenTrustedDomain_base()

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agos3-lsa: Fix typo and use right pdb interface
Sumit Bose [Fri, 3 Jun 2011 13:31:40 +0000 (15:31 +0200)]
s3-lsa: Fix typo and use right pdb interface

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agos3-pdb_ipa: Derive domain GUID from SID
Sumit Bose [Tue, 31 May 2011 13:31:51 +0000 (15:31 +0200)]
s3-pdb_ipa: Derive domain GUID from SID

Signed-off-by: Günther Deschner <gd@samba.org>
12 years agos3:modules make perfcount_test loadable again
Christian Ambach [Mon, 29 Aug 2011 15:48:53 +0000 (17:48 +0200)]
s3:modules make perfcount_test loadable again

use expected 'init_samba_module' name for initializer function

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Wed Aug 31 11:22:26 CEST 2011 on sn-devel-104

12 years agos3:lib S-1-5-9 is "Enterprise Domain Controllers"
Christian Ambach [Mon, 29 Aug 2011 15:46:06 +0000 (17:46 +0200)]
s3:lib S-1-5-9 is "Enterprise Domain Controllers"

and not ServerLogon

12 years agos3:lib remove duplicate entry for "Anonymous Logon"
Christian Ambach [Mon, 29 Aug 2011 15:44:53 +0000 (17:44 +0200)]
s3:lib remove duplicate entry for "Anonymous Logon"

12 years agos3:lib add S-1-5-17 to well-known SID list
Christian Ambach [Mon, 29 Aug 2011 15:42:45 +0000 (17:42 +0200)]
s3:lib add S-1-5-17 to well-known SID list

http://support.microsoft.com/kb/243330/en-us says the name is
"This organization", but Windows 2008 says IUSR

Picking the Windows 2008 variant as 'This Organization' would
be duplicate to S-1-5-15

12 years agos3:lib add some more well-known sids
Christian Ambach [Mon, 29 Aug 2011 15:40:18 +0000 (17:40 +0200)]
s3:lib add some more well-known sids

add S-1-3-2/Creator Owner Server, S-1-3-3/Creator Group Server and
S-1-3-4/Owner Rights to the well-known SID list

12 years agos3:lib add new well-known SIDs for BUILTIN
Christian Ambach [Mon, 29 Aug 2011 15:36:25 +0000 (17:36 +0200)]
s3:lib add new well-known SIDs for BUILTIN

Distributed COM Users, Cryptographic Operators, Event Log Readers
and Certificate Service DCOM Access were missing from the BUILTIN
well-known SID list

12 years agosecurity.idl add new well-known SIDs
Christian Ambach [Mon, 29 Aug 2011 15:34:57 +0000 (17:34 +0200)]
security.idl add new well-known SIDs

http://support.microsoft.com/kb/243330/en-us lists some new
well-known SIDS in the BUILTIN domain

12 years agotdb2: add full LGPL headers
Rusty Russell [Thu, 21 Jul 2011 05:14:50 +0000 (14:44 +0930)]
tdb2: add full LGPL headers

This is for SAMBA, so we follow their rules and do full license
headers.  Two files were missing them.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 58025731)

Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Aug 31 09:52:43 CEST 2011 on sn-devel-104

12 years agoMAINTAINERS.txt: ping me about CCAN changes
Rusty Russell [Wed, 31 Aug 2011 04:28:14 +0000 (13:58 +0930)]
MAINTAINERS.txt: ping me about CCAN changes

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Wed Aug 31 07:58:34 CEST 2011 on sn-devel-104

12 years agoccan: fix likely redefinition warnings with --enable-tdb2
Rusty Russell [Wed, 31 Aug 2011 04:27:14 +0000 (13:57 +0930)]
ccan: fix likely redefinition warnings with --enable-tdb2

When we do --enable-tdb2, we start clashing with the replace.h
version:

In file included from ../lib/tdb2/tools/../private.h:25:0,
                 from ../lib/tdb2/tools/tdb2torture.c:60:
../lib/ccan/likely/likely.h:32:0: warning: "likely" redefined
../lib/replace/replace.h:762:0: note: this is the location of the previous definition
../lib/ccan/likely/likely.h:53:0: warning: "unlikely" redefined
../lib/replace/replace.h:765:0: note: this is the location of the previous definition

I don't like to #ifndef-protect them in general, since you don't want
different parts of the code to silently have different definitions,
but it's the simplest fix for now.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agotdb2: fix build with --enable-tdb2
Rusty Russell [Wed, 31 Aug 2011 04:26:40 +0000 (13:56 +0930)]
tdb2: fix build with --enable-tdb2

tdb2 doesn't expost tdb_jenkins_hash; go straight to the source in
ccan/hash.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
12 years agosmb2_constants: add SMB2_HDR_CREDIT_CHARGE
Stefan Metzmacher [Tue, 30 Aug 2011 09:48:16 +0000 (11:48 +0200)]
smb2_constants: add SMB2_HDR_CREDIT_CHARGE

SMB2_HDR_EPOCH was never used and SMB 2.10 uses it as
SMB2_HDR_CREDIT_CHARGE.

We keep SMB2_HDR_EPOCH as alias for now, until all callers
are fixed.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Aug 30 23:49:56 CEST 2011 on sn-devel-104

12 years agos3:include: add CAP_LWIO and CAP_DYNAMIC_REAUTH defines
Stefan Metzmacher [Mon, 29 Aug 2011 18:39:55 +0000 (20:39 +0200)]
s3:include: add CAP_LWIO and CAP_DYNAMIC_REAUTH defines

metze

12 years agos3-build: move libsmb/clisigning.c to LIBSMB_SRC
Stefan Metzmacher [Tue, 30 Aug 2011 14:58:09 +0000 (16:58 +0200)]
s3-build: move libsmb/clisigning.c to LIBSMB_SRC

It's only needed in the client library.

metze

12 years agos3:smb2 fix Bug 8428 - wrong reply to DHnC (durable handle reconnect)
Christian Ambach [Tue, 30 Aug 2011 15:39:56 +0000 (17:39 +0200)]
s3:smb2 fix Bug 8428 - wrong reply to DHnC (durable handle reconnect)

According to [MS-SMB2] 3.3.5.9.7
(http://msdn.microsoft.com/en-us/library/cc246784%28v=PROT.13%29.aspx),
smbd must reply with NT_STATUS_OBJECT_NAME_NOT_FOUND as it does not
support durable file-handles yet.

I have seen w2k8r2 running xcopy /C ending up in an endless loop
trying to get back the original file handle from smbd sending the same
requests over and over.

Metze, Jeremy, please check!

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Aug 30 22:20:36 CEST 2011 on sn-devel-104

12 years agos3-rpc_server: Make sure we switch always the connecting user.
Andreas Schneider [Tue, 30 Aug 2011 14:37:40 +0000 (16:37 +0200)]
s3-rpc_server: Make sure we switch always the connecting user.

We always have a valid session info and if it is a anonymous connection
we have a session info of the guest user. This means we should always
call become_authenticated_pipe_user() else and anonymous user could do
things as root.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Aug 30 20:50:54 CEST 2011 on sn-devel-104

12 years agos3: Silence some warnings
Volker Lendecke [Tue, 30 Aug 2011 15:02:54 +0000 (17:02 +0200)]
s3: Silence some warnings

Rusty, please suggest a proper fix for this.

Thanks,

Volker Lendecke

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Aug 30 19:16:14 CEST 2011 on sn-devel-104

12 years agosmbtorture4: Fix a typo
Volker Lendecke [Tue, 30 Aug 2011 06:20:57 +0000 (08:20 +0200)]
smbtorture4: Fix a typo

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Aug 30 09:51:10 CEST 2011 on sn-devel-104

12 years agoFixed regression test case for Bug 8412 - Microsoft Office 2007 (Microsoft Word)...
Jeremy Allison [Mon, 29 Aug 2011 23:49:29 +0000 (16:49 -0700)]
Fixed regression test case for Bug 8412 - Microsoft Office 2007 (Microsoft Word) fails to save as on a Samba share with SMB2

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Aug 30 03:26:49 CEST 2011 on sn-devel-104

12 years agoFix bug 8412 - Microsoft Office 2007 (Microsoft Word) fails to save as on a Samba...
Jeremy Allison [Mon, 29 Aug 2011 23:47:16 +0000 (16:47 -0700)]
Fix bug 8412 - Microsoft Office 2007 (Microsoft Word) fails to save as on a Samba share with SMB2.

12 years agoFix bug Bug 8422 - Infinite loop in ACL module code.
Jeremy Allison [Mon, 29 Aug 2011 23:46:15 +0000 (16:46 -0700)]
Fix bug Bug 8422 - Infinite loop in ACL module code.

Missing assignment means this loop will never terminate. Need to be applied
to 3.5.x and 3.6.1.

12 years agos4: Mark the winsreplication test as knownfail
Volker Lendecke [Mon, 29 Aug 2011 17:33:18 +0000 (19:33 +0200)]
s4: Mark the winsreplication test as knownfail

This continues to break my autobuild even if I just check something into
source3.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Aug 29 21:04:06 CEST 2011 on sn-devel-104

12 years agos3: Fix getent group if trusted domains are not reachable
Volker Lendecke [Thu, 25 Aug 2011 18:13:09 +0000 (20:13 +0200)]
s3: Fix getent group if trusted domains are not reachable

12 years agos3:rpc_server: fix two debug messages in svcctl_add_service()
Michael Adam [Mon, 29 Aug 2011 10:52:40 +0000 (12:52 +0200)]
s3:rpc_server: fix two debug messages in svcctl_add_service()

(copy and paste from eventlog?)

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Aug 29 15:30:33 CEST 2011 on sn-devel-104

12 years agos3-lib: If we create a pipe socket, don't start to listen.
Andreas Schneider [Mon, 29 Aug 2011 07:49:22 +0000 (09:49 +0200)]
s3-lib: If we create a pipe socket, don't start to listen.

The create_pipe_sock() function should only create the socket as the
name states and not start to listen on it too. We should start to listen
on in the individual places as we need different backlog values.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Aug 29 13:21:43 CEST 2011 on sn-devel-104

12 years agos3:libsmb: make cli_session_request_send/recv() static
Stefan Metzmacher [Sun, 28 Aug 2011 14:55:57 +0000 (16:55 +0200)]
s3:libsmb: make cli_session_request_send/recv() static

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Aug 28 20:29:01 CEST 2011 on sn-devel-104

12 years agos3:libsmb: move cli_session_request*() to smbsock_connect.c
Stefan Metzmacher [Sun, 28 Aug 2011 14:53:56 +0000 (16:53 +0200)]
s3:libsmb: move cli_session_request*() to smbsock_connect.c

metze

12 years agos3:libsmb: move cli_smb_oplock_break_waiter*() to clioplock.c
Stefan Metzmacher [Sun, 28 Aug 2011 15:16:11 +0000 (17:16 +0200)]
s3:libsmb: move cli_smb_oplock_break_waiter*() to clioplock.c

metze

12 years agos3:libsmb: use cli_smb_req_set_mid() in cli_smb_oplock_break_waiter_send()
Stefan Metzmacher [Sun, 28 Aug 2011 14:28:21 +0000 (16:28 +0200)]
s3:libsmb: use cli_smb_req_set_mid() in cli_smb_oplock_break_waiter_send()

metze

12 years agos3:libsmb: let cli_smb_req_mid() return the mid set by cli_smb_req_set_mid()
Stefan Metzmacher [Sun, 28 Aug 2011 14:30:58 +0000 (16:30 +0200)]
s3:libsmb: let cli_smb_req_mid() return the mid set by cli_smb_req_set_mid()

metze

12 years agodnspython: Update to latest upstream snapshot.
Jelmer Vernooij [Sat, 27 Aug 2011 14:07:52 +0000 (16:07 +0200)]
dnspython: Update to latest upstream snapshot.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Aug 27 17:40:39 CEST 2011 on sn-devel-104

12 years agosubunit: Update to latest upstream snapshot.
Jelmer Vernooij [Sat, 27 Aug 2011 14:07:38 +0000 (16:07 +0200)]
subunit: Update to latest upstream snapshot.

12 years agotesttools: Update to latest upstream snapshot.
Jelmer Vernooij [Sat, 27 Aug 2011 14:07:25 +0000 (16:07 +0200)]
testtools: Update to latest upstream snapshot.

12 years agoRAW_SFILEINFO_RENAME_INFORMATION_SMB2 sends 4 bytes of uninitialized data out on...
Jeremy Allison [Sat, 27 Aug 2011 04:14:04 +0000 (21:14 -0700)]
RAW_SFILEINFO_RENAME_INFORMATION_SMB2 sends 4 bytes of uninitialized data out on the network.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Aug 27 07:48:30 CEST 2011 on sn-devel-104

12 years agos3: Fix a winbind race leading to 100% CPU
Volker Lendecke [Fri, 26 Aug 2011 14:54:18 +0000 (16:54 +0200)]
s3: Fix a winbind race leading to 100% CPU

This fixes a race condition that leads to the winbindd_children list becoming
corrupted. It happens when on a busy winbind SIGCHLD is a bit late.

Imagine a winbind with multiple requests in the queue for a single child. Child
dies, and before the SIGCHLD handler is called we find the socket to be dead.
wb_child_request_done is called, receiving an error from wb_simple_trans_recv.
It closes the socket. Then immediately the wb_child_request_trigger will do
another fork_domain_child before the signal handler is called. This means that
we do another fork_domain_child, we have child->sock==-1 at this point.
fork_domain_child will do a DLIST_ADD(winbindd_children, child) a second time
where the child is already part of that list. This corrupts the list. Then the
signal handler kicks in, spinning in

for (child = winbindd_children; child != NULL; child = child->next) {

forever. Not good. This patch makes sure that both conditions (sock==-1 and not
part of the list) for a winbindd_child struct match up.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Aug 26 18:51:24 CEST 2011 on sn-devel-104

12 years agos3: Fix two int/enum mixups
Volker Lendecke [Fri, 26 Aug 2011 14:35:29 +0000 (16:35 +0200)]
s3: Fix two int/enum mixups

12 years agos4-drsuapi Allow DsAddEntry of normal objects
Andrew Bartlett [Fri, 26 Aug 2011 06:06:31 +0000 (16:06 +1000)]
s4-drsuapi Allow DsAddEntry of normal objects

We previously only allowed objects of class ntDSDSA

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Aug 26 15:34:21 CEST 2011 on sn-devel-104

12 years agos4-messaging ensure we do not segfault on a NULL msg context in cleanup
Andrew Bartlett [Fri, 26 Aug 2011 06:05:46 +0000 (16:05 +1000)]
s4-messaging ensure we do not segfault on a NULL msg context in cleanup

12 years agoselftest: Allow a krb5.conf to be generated that covers multiple realms
Andrew Bartlett [Fri, 26 Aug 2011 06:02:01 +0000 (16:02 +1000)]
selftest: Allow a krb5.conf to be generated that covers multiple realms

12 years agobuild: Add dcerpc-binding to dcerpc.pc
Andrew Bartlett [Thu, 25 Aug 2011 10:46:13 +0000 (20:46 +1000)]
build: Add dcerpc-binding to dcerpc.pc

This will help projects like OpenChange that depend on
this code, now that it has been split between two libraries.

Andrew Bartlett

12 years agos4-dsdb Return ACL errors as ldb_errstring()
Andrew Bartlett [Thu, 25 Aug 2011 09:20:28 +0000 (19:20 +1000)]
s4-dsdb Return ACL errors as ldb_errstring()

This string is reported to the caller, which makes debugging much easier.

Andrew Bartlett

12 years agos4-provision Use samba.dns_name_to_dn
Andrew Bartlett [Wed, 24 Aug 2011 05:32:57 +0000 (15:32 +1000)]
s4-provision Use samba.dns_name_to_dn

12 years agos3-passdb: Allocate talloc stackframe before calling pdb_get_group_sid()
Amitay Isaacs [Fri, 26 Aug 2011 06:25:27 +0000 (16:25 +1000)]
s3-passdb: Allocate talloc stackframe before calling pdb_get_group_sid()

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos3-param: Allocate talloc stackframe before calling s3 param routines
Amitay Isaacs [Fri, 26 Aug 2011 02:59:01 +0000 (12:59 +1000)]
s3-param: Allocate talloc stackframe before calling s3 param routines

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos3: Use sys_write in fork_domain_child
Volker Lendecke [Fri, 26 Aug 2011 09:39:41 +0000 (11:39 +0200)]
s3: Use sys_write in fork_domain_child

Counterpart for last checkin. A lot less likely, but not impossible in a child.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Aug 26 13:14:27 CEST 2011 on sn-devel-104

12 years agos3: Use sys_read in fork_domain_child
Volker Lendecke [Fri, 26 Aug 2011 09:38:21 +0000 (11:38 +0200)]
s3: Use sys_read in fork_domain_child

I've seen

[2011/08/26 01:44:10.872057,  1] winbindd/winbindd_dual.c:1336(fork_domain_child)
  fork_domain_child: Could not read child status: nread=-1, error=Interrupted system call

on a customer box. Not good.

12 years agopy-samba3-test: Copy sample database in tempdir before running test
Amitay Isaacs [Fri, 26 Aug 2011 03:19:18 +0000 (13:19 +1000)]
py-samba3-test: Copy sample database in tempdir before running test

Samba3 python module using passdb api modifies the database files, to
upgrade them to latest version. So copy the sample database before
running tests on it.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Aug 26 07:04:15 CEST 2011 on sn-devel-104

12 years agosamba3dump: Update the code using modified samba3 module with passdb api
Amitay Isaacs [Fri, 26 Aug 2011 03:00:48 +0000 (13:00 +1000)]
samba3dump: Update the code using modified samba3 module with passdb api

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos3_upgrade: Set lock directory to correct directory
Amitay Isaacs [Fri, 26 Aug 2011 00:01:29 +0000 (10:01 +1000)]
s3_upgrade: Set lock directory to correct directory

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agopy-samba3-test: Set lock directory to the datadir
Amitay Isaacs [Fri, 26 Aug 2011 00:00:47 +0000 (10:00 +1000)]
py-samba3-test: Set lock directory to the datadir

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agotestdata: Set netbios name in the samba3 configuation
Amitay Isaacs [Thu, 25 Aug 2011 07:25:28 +0000 (17:25 +1000)]
testdata: Set netbios name in the samba3 configuation

To correctly find the domain sid, passdb api uses netbios name to
look up secrets database. If no nebios name is configured, passdb uses
current hostname and adds entry for hostname in secrets and uses that
instead of the intended one.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos3_upgrade: Update commandline options and use updated samba3 python module
Amitay Isaacs [Thu, 25 Aug 2011 07:20:05 +0000 (17:20 +1000)]
s3_upgrade: Update commandline options and use updated samba3 python module

upgrade_from_s3 script now requires samba3 configuration file and target
directory for samba4 database. In addition, it either uses --libdir option
or --testparm option to correctly guess the paths for samba3 databases
(private dir and state directory).

Usage: upgrade_from_s3 [options] <configuration_file> <targetdir>

Input arguments are:
  <configuration_file> - path to existing smb.conf
  <targetdir>          - directory in which samba4 database will be created

In addition, specify either samba3 database directory (with --libdir) or
samba3 testparm utility (with --testparm).

Before using passdb interface, initialize s3 loadparm context using
correct path settings for private dir and state directory.

Export account policy from s3 to s4.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agopy-samba3: Use passdb/param wrapper for samba3 module
Amitay Isaacs [Thu, 25 Aug 2011 07:10:23 +0000 (17:10 +1000)]
py-samba3: Use passdb/param wrapper for samba3 module

Instead of parsing samba3 database files (password, group mapping,
account policy, secrets), use passdb python wrapper.

Similarly for parsing configuration, use samba3 param python wrapper.

Other databases (idmap, registry, wins) are still parsed in python.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos3-passdb: Make domain_sid argument optional for search_aliases method
Amitay Isaacs [Thu, 25 Aug 2011 06:53:26 +0000 (16:53 +1000)]
s3-passdb: Make domain_sid argument optional for search_aliases method

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos3-passdb: Return assigned number of hours and not MAX_HOURS_LEN
Amitay Isaacs [Thu, 25 Aug 2011 06:50:34 +0000 (16:50 +1000)]
s3-passdb: Return assigned number of hours and not MAX_HOURS_LEN

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos3-passdb: Convert lm_pw and nt_pw to python string using length
Amitay Isaacs [Thu, 25 Aug 2011 06:48:40 +0000 (16:48 +1000)]
s3-passdb: Convert lm_pw and nt_pw to python string using length

lm_pw and nt_pw are fixed length strings and convert them to python
strings as fixed length strings.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agoscript: Fix the name of the script in autogenerated header file
Amitay Isaacs [Wed, 24 Aug 2011 06:31:12 +0000 (16:31 +1000)]
script: Fix the name of the script in autogenerated header file

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos4-param: Use s3 dump method if s3 context is defined
Amitay Isaacs [Mon, 22 Aug 2011 06:32:03 +0000 (16:32 +1000)]
s4-param: Use s3 dump method if s3 context is defined

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos3-param: Add a dump() method to output parameters
Amitay Isaacs [Mon, 22 Aug 2011 06:26:13 +0000 (16:26 +1000)]
s3-param: Add a dump() method to output parameters

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos3_upgrade: Let python generate backtrace for unknown exceptions
Amitay Isaacs [Sun, 21 Aug 2011 23:43:20 +0000 (09:43 +1000)]
s3_upgrade: Let python generate backtrace for unknown exceptions

Catch known exceptions only.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agos3_upgrade: Add document strings for python methods
Amitay Isaacs [Sun, 21 Aug 2011 23:42:13 +0000 (09:42 +1000)]
s3_upgrade: Add document strings for python methods

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
12 years agowerror: remove duplicate definition of WERR_INVALID_OWNER
Michael Adam [Wed, 24 Aug 2011 10:50:33 +0000 (12:50 +0200)]
werror: remove duplicate definition of WERR_INVALID_OWNER

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Aug 26 01:23:52 CEST 2011 on sn-devel-104

12 years agos3:dbwrap_tdb: correctly catch the error from the return code of tdb_parse in db_tdb_...
Michael Adam [Thu, 25 Aug 2011 11:45:40 +0000 (13:45 +0200)]
s3:dbwrap_tdb: correctly catch the error from the return code of tdb_parse in db_tdb_fetch()

12 years agos3:smbd: remove an unused variable in dptr_create()
Michael Adam [Wed, 17 Aug 2011 08:19:58 +0000 (10:19 +0200)]
s3:smbd: remove an unused variable in dptr_create()

12 years agos3:registry: fix the v2_to_v3 upgrade code so that it does not create value list...
Michael Adam [Tue, 23 Aug 2011 23:14:22 +0000 (01:14 +0200)]
s3:registry: fix the v2_to_v3 upgrade code so that it does not create value list security records for the INFO/version key ...

12 years agos3:registry: fix the v1_to_v2 upgrade code so that it does not normalize the INFO...
Michael Adam [Tue, 23 Aug 2011 23:13:47 +0000 (01:13 +0200)]
s3:registry: fix the v1_to_v2 upgrade code so that it does not normalize the INFO/version key ...

12 years agos3:registry: define a constant REGDB_VERSION_KEYNAME for the key INFO/version (and...
Michael Adam [Tue, 23 Aug 2011 23:12:28 +0000 (01:12 +0200)]
s3:registry: define a constant REGDB_VERSION_KEYNAME for the key INFO/version (and use it)

12 years agos3:registry: hand db context in to v2_to_v3 upgrade code via private_data
Michael Adam [Thu, 25 Aug 2011 15:18:12 +0000 (17:18 +0200)]
s3:registry: hand db context in to v2_to_v3 upgrade code via private_data

This also fixes the earlier faulty handing in of a useless stackframe
memory context via private_data.

12 years agos3:registry: fix broken use of dbwrap store record in v1_to_v2 upgrade code
Michael Adam [Thu, 25 Aug 2011 15:12:33 +0000 (17:12 +0200)]
s3:registry: fix broken use of dbwrap store record in v1_to_v2 upgrade code

This also fixes broken private_data parameter for the traverse function
(making use of it): Originally a memory context was handed in but was not used.

12 years agos3: Fix the build of vfs_aixacl2.c
SATOH Fumiyasu [Mon, 22 Aug 2011 04:48:40 +0000 (13:48 +0900)]
s3: Fix the build of vfs_aixacl2.c

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Aug 25 23:06:12 CEST 2011 on sn-devel-104

12 years agos3: Remove a bogus comment
Volker Lendecke [Thu, 25 Aug 2011 15:22:13 +0000 (17:22 +0200)]
s3: Remove a bogus comment

12 years agos3: Pass smbd_server_connection to (unused) server_encryption_shutdown
Volker Lendecke [Fri, 5 Aug 2011 15:02:22 +0000 (17:02 +0200)]
s3: Pass smbd_server_connection to (unused) server_encryption_shutdown

12 years agos3: Pass smbd_server_connection to srv_encrypt_buffer
Volker Lendecke [Fri, 5 Aug 2011 15:00:42 +0000 (17:00 +0200)]
s3: Pass smbd_server_connection to srv_encrypt_buffer

12 years agos3: Pass smbd_server_connection to srv_decrypt_buffer
Volker Lendecke [Fri, 5 Aug 2011 14:58:51 +0000 (16:58 +0200)]
s3: Pass smbd_server_connection to srv_decrypt_buffer

12 years agos3: Pass smbd_server_connection to srv_free_enc_buffer
Volker Lendecke [Fri, 5 Aug 2011 14:52:25 +0000 (16:52 +0200)]
s3: Pass smbd_server_connection to srv_free_enc_buffer

12 years agos3: Pass smbd_server_connection to is_encrypted_packet
Volker Lendecke [Fri, 5 Aug 2011 14:49:20 +0000 (16:49 +0200)]
s3: Pass smbd_server_connection to is_encrypted_packet

12 years agos3: Pass sconn to valid_smb_header
Volker Lendecke [Fri, 5 Aug 2011 14:44:01 +0000 (16:44 +0200)]
s3: Pass sconn to valid_smb_header

12 years agos3: Explicitly pass smb_srv_trans_enc_ctx to srv_enc_ctx
Volker Lendecke [Fri, 5 Aug 2011 14:22:48 +0000 (16:22 +0200)]
s3: Explicitly pass smb_srv_trans_enc_ctx to srv_enc_ctx

12 years agos3: Fix some nonempty blank lines
Volker Lendecke [Sat, 25 Jun 2011 13:14:25 +0000 (15:14 +0200)]
s3: Fix some nonempty blank lines

12 years agos3: Fix bug 8385
Volker Lendecke [Mon, 22 Aug 2011 12:16:26 +0000 (14:16 +0200)]
s3: Fix bug 8385

Poll and select behave differently regarding error handling. When doing the
connect(2), we can not rely on poll telling us both readability and writability
upon error. Just always try a second connect(2). At least on Linux it returns 0
when it succeeded.

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Aug 25 19:39:12 CEST 2011 on sn-devel-104

12 years agos3-waf: fix some unresolved symbols in idmap ad modules.
Günther Deschner [Thu, 25 Aug 2011 11:40:08 +0000 (13:40 +0200)]
s3-waf: fix some unresolved symbols in idmap ad modules.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Aug 25 15:15:57 CEST 2011 on sn-devel-104

12 years agos3-registry: fix bug #8401 - registry/reg_format.c must include includes.h.
Günther Deschner [Thu, 25 Aug 2011 11:39:25 +0000 (13:39 +0200)]
s3-registry: fix bug #8401 - registry/reg_format.c must include includes.h.

Guenther

12 years agos4-dsdb: fixed use of RMD flags in ldb search in dirsync module
Andrew Tridgell [Wed, 24 Aug 2011 05:53:58 +0000 (15:53 +1000)]
s4-dsdb: fixed use of RMD flags in ldb search in dirsync module

I'm pretty sure a SHOW_DELETED was wanted here

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

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Aug 25 01:10:13 CEST 2011 on sn-devel-104

12 years agos4-dns: fixed dns_update_list for multi-domain forests
Andrew Tridgell [Wed, 24 Aug 2011 05:48:02 +0000 (15:48 +1000)]
s4-dns: fixed dns_update_list for multi-domain forests

this should now match the DNS entries of w2k8r2c

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

12 years agos4-dns: cope with duplicate entries in dns_update_list
Andrew Tridgell [Wed, 24 Aug 2011 05:47:27 +0000 (15:47 +1000)]
s4-dns: cope with duplicate entries in dns_update_list

this is needed for when DNSFOREST and DNSDOMAIN are the same

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

12 years agos4-dsdb: fixed newlines in DEBUG() calls in cracknames
Andrew Tridgell [Wed, 24 Aug 2011 05:46:53 +0000 (15:46 +1000)]
s4-dsdb: fixed newlines in DEBUG() calls in cracknames

Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>

12 years agos4-join: fixed DNS hostname
Andrew Tridgell [Wed, 24 Aug 2011 03:52:09 +0000 (13:52 +1000)]
s4-join: fixed DNS hostname

we need the local hostname, not the remote name

12 years agos4-drs: fixed msdcs DNS name in getncchanges
Andrew Tridgell [Wed, 24 Aug 2011 03:51:49 +0000 (13:51 +1000)]
s4-drs: fixed msdcs DNS name in getncchanges

12 years agos4-libnet: fixed forest DNS name
Andrew Tridgell [Wed, 24 Aug 2011 03:51:01 +0000 (13:51 +1000)]
s4-libnet: fixed forest DNS name

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

12 years agos4-acl: use dnsforest not dnsdomain for GC names
Andrew Tridgell [Mon, 22 Aug 2011 07:43:56 +0000 (17:43 +1000)]
s4-acl: use dnsforest not dnsdomain for GC names

12 years agos4-join: setup DNS forest name on join context
Andrew Tridgell [Mon, 22 Aug 2011 07:43:37 +0000 (17:43 +1000)]
s4-join: setup DNS forest name on join context