nivanova/samba-autobuild/.git
7 years agos4-ldap: added DSDB_CONTROL_NO_GLOBAL_CATALOG to ldap encoding list
Andrew Tridgell [Thu, 29 Sep 2011 21:08:15 +0000 (07:08 +1000)]
s4-ldap: added DSDB_CONTROL_NO_GLOBAL_CATALOG to ldap encoding list

also remove all the duplicated comments

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

7 years agos4-kdc: fixed handling of previous vs current trust password
Andrew Tridgell [Thu, 29 Sep 2011 20:47:08 +0000 (06:47 +1000)]
s4-kdc: fixed handling of previous vs current trust password

This sorts out the correct handling for the 'kvno=255'
problem. Windows will use the previous trust password for 1 hour after
a password set, and indicates that the previous password is being used
by sending current_kvno-1. That maps to 255 if the trust password has
not actually been changed, so the initial trust password is being
used.

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

7 years agos4-auth: rework map_user_info() to use cracknames
Andrew Tridgell [Thu, 29 Sep 2011 07:44:28 +0000 (17:44 +1000)]
s4-auth: rework map_user_info() to use cracknames

to properly support multi-domain forests we need to determine if an
incoming username is part of a known forest domain or not. To do this
for all possible SPN forms, we need to use CrackNames.

This changes map_user_info() to use CrackNames if a SAM context is
available, and asks the CrackNames services to parse the incoming
username and domain into a NT4 form, which can then be used in the
SAM.

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

7 years agos4-sam: don't look in GC NCs for user accounts
Andrew Tridgell [Thu, 29 Sep 2011 07:43:25 +0000 (17:43 +1000)]
s4-sam: don't look in GC NCs for user accounts

We need to exclude GC partial replica naming contexts from SAM lookups

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

7 years agos4-kdc: don't look at global catalog NCs in the kdc
Andrew Tridgell [Wed, 28 Sep 2011 19:23:38 +0000 (05:23 +1000)]
s4-kdc: don't look at global catalog NCs in the kdc

the kdc should not be looking for users in GC partial replicas, as
these users do not have all of the attributes needed for the KDC to
operate

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

7 years agos4-kdc: treat a kvno of 255 as unspecified
Andrew Tridgell [Wed, 28 Sep 2011 19:22:27 +0000 (05:22 +1000)]
s4-kdc: treat a kvno of 255 as unspecified

windows sometimes sends us a kvno of 255 for inter-domain trusts. We
don't yet know why it does this, but it seems that we need to treat
this as an unspecified kvno

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

7 years agos4-kcc: if we are a GC, auto-add partial replicas
Andrew Tridgell [Wed, 28 Sep 2011 06:45:17 +0000 (16:45 +1000)]
s4-kcc: if we are a GC, auto-add partial replicas

when we are a global catalog server, the KCC needs to add partial
replicas for all domain partitions that we don't have copies of

7 years agos4-dsdb: simplify samdb_is_gc()
Andrew Tridgell [Wed, 28 Sep 2011 04:36:00 +0000 (14:36 +1000)]
s4-dsdb: simplify samdb_is_gc()

we already have a function for returning the NTDS options

7 years agos4-dsdb: add the DSDB_CONTROL_PARTIAL_REPLICA when needed
Andrew Tridgell [Wed, 28 Sep 2011 04:35:27 +0000 (14:35 +1000)]
s4-dsdb: add the DSDB_CONTROL_PARTIAL_REPLICA when needed

when we are adding an object via DRS, we need to add the
DSDB_CONTROL_PARTIAL_REPLICA control if we are replicating a partial
replica, so ensure the partition module creates new NCs as partial
replicas

7 years agoheimdal: handle referrals for 3 part DRSUAPI SPNs
Andrew Tridgell [Wed, 28 Sep 2011 04:18:14 +0000 (14:18 +1000)]
heimdal: handle referrals for 3 part DRSUAPI SPNs

This handles referrals for SPNs of the form
E3514235-4B06-11D1-AB04-00C04FC2DCD2/NTDSGUID/REALM, which are
used during DRS replication when we don't know the dnsHostName of the
target DC (which we don't know until the first replication from that
DC completes).

We use the 3rd part of the SPN directly as the realm name in the
referral.

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

7 years agos4-repl: try harder to find the right SPN in replication server
Andrew Tridgell [Wed, 28 Sep 2011 03:48:52 +0000 (13:48 +1000)]
s4-repl: try harder to find the right SPN in replication server

when doing DRS between domains, using the right SPN is essential so
the KDC can generate referrals to point us at the right DC.  We prefer
the GC/hostname/DNSDOMAIN form if possible, but if we can't find the
hostname then this changes the code that generates the target
principal name to use either the msDS-HasDomainNCs or hasMasterNCs
attributes to try to find the target DC domainname so we can use the
E3514235-4B06-11D1-AB04-00C04FC2DCD2/GUID/DNSDOMAIN SPN form.

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

7 years agos4-dsdb: added new control DSDB_MODIFY_PARTIAL_REPLICA
Andrew Tridgell [Wed, 28 Sep 2011 01:04:29 +0000 (11:04 +1000)]
s4-dsdb: added new control DSDB_MODIFY_PARTIAL_REPLICA

this control tells the partition module that the DN being created is a
partial replica, so it should modify the @PARTITION object to add the
partialReplica attribute

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

7 years agos4-join: enable cleanup on failed join
Andrew Tridgell [Tue, 27 Sep 2011 23:32:15 +0000 (09:32 +1000)]
s4-join: enable cleanup on failed join

if a join fails, then cleanup the old records

7 years agos4-drs: added DSDB_REPL_FLAG_ADD_NCNAME to DsAddEntry call
Andrew Tridgell [Tue, 27 Sep 2011 23:31:38 +0000 (09:31 +1000)]
s4-drs: added DSDB_REPL_FLAG_ADD_NCNAME to DsAddEntry call

we want new NCs to be created

7 years agos4-dsdb: added DSDB_REPL_FLAG_ADD_NCNAME flag
Andrew Tridgell [Tue, 27 Sep 2011 23:30:44 +0000 (09:30 +1000)]
s4-dsdb: added DSDB_REPL_FLAG_ADD_NCNAME flag

7 years agos4-dsdb: fixed formatting of a debug message
Andrew Tridgell [Tue, 27 Sep 2011 23:30:26 +0000 (09:30 +1000)]
s4-dsdb: fixed formatting of a debug message

another missing newline

7 years agos4-partition: allow creation of uninstantiated partitions
Andrew Tridgell [Tue, 27 Sep 2011 23:30:02 +0000 (09:30 +1000)]
s4-partition: allow creation of uninstantiated partitions

this is needed for a subdomain join by a new NC. The NC is initially
uninstantiated

7 years agos4-dsdb: allow uninstantiated NC heads
Andrew Tridgell [Tue, 27 Sep 2011 23:29:09 +0000 (09:29 +1000)]
s4-dsdb: allow uninstantiated NC heads

this allows INSTANCE_TYPE_WRITE to be not set if
INSTANCE_TYPE_UNINSTANT is set

7 years agos4-repl: support creation of new NCs via DsAddEntry
Andrew Tridgell [Tue, 27 Sep 2011 23:28:10 +0000 (09:28 +1000)]
s4-repl: support creation of new NCs via DsAddEntry

this adds a flag to dsdb_origin_objects_commit that tells it to create
a new NC based on the nCName in a crossRef object

7 years agos4-repl: fixed formatting of some debug messages
Andrew Tridgell [Tue, 27 Sep 2011 23:26:51 +0000 (09:26 +1000)]
s4-repl: fixed formatting of some debug messages

7 years agodrsuapi: added ncName attid in enum
Andrew Tridgell [Tue, 27 Sep 2011 23:26:30 +0000 (09:26 +1000)]
drsuapi: added ncName attid in enum

7 years agodns: added example python script for dnsserver protocol
Andrew Tridgell [Sun, 25 Sep 2011 23:50:41 +0000 (09:50 +1000)]
dns: added example python script for dnsserver protocol

7 years agodns: build python bindings for dnsserver RPC protocol
Andrew Tridgell [Sun, 25 Sep 2011 23:50:11 +0000 (09:50 +1000)]
dns: build python bindings for dnsserver RPC protocol

7 years agodns: filled in dnsserver.idl
Andrew Tridgell [Sun, 25 Sep 2011 23:49:42 +0000 (09:49 +1000)]
dns: filled in dnsserver.idl

this fills in the functions and structures for the dnsserver RPC
protocol. This protocol is used during a subdomain join to add the NS
glue record to the parent domain

7 years agosamba-tool: cope with GC compares in ldapcmp
Andrew Tridgell [Fri, 23 Sep 2011 07:39:24 +0000 (17:39 +1000)]
samba-tool: cope with GC compares in ldapcmp

the two base DNs do not need to match when doing GC replica compares

7 years agosamba-tool: added --full-sync and --sync-all options to samba-tool drs replicate
Andrew Tridgell [Fri, 23 Sep 2011 07:38:08 +0000 (17:38 +1000)]
samba-tool: added --full-sync and --sync-all options to samba-tool drs replicate

7 years agos4-dbchecker: fixed handling of DSDB DNs in dbcheck
Andrew Tridgell [Fri, 23 Sep 2011 07:37:23 +0000 (17:37 +1000)]
s4-dbchecker: fixed handling of DSDB DNs in dbcheck

we need to use the original value, as ldb.Dn() can't parse a DSDB
binary DN

7 years agos4-dsdb: update callers to dsdb_convert_object_ex()
Andrew Tridgell [Fri, 23 Sep 2011 07:35:48 +0000 (17:35 +1000)]
s4-dsdb: update callers to dsdb_convert_object_ex()

7 years agos4-repl: update instanceType in partial_replica replication
Andrew Tridgell [Fri, 23 Sep 2011 07:34:32 +0000 (17:34 +1000)]
s4-repl: update instanceType in partial_replica replication

when we receive objects to a partial replica, we need to change the
incoming instanceType to not include the INSTANCE_TYPE_WRITE
flag. Partial replicas unset this flag.

7 years agos4-repl: add FULL_SYNC and PARTIAL_REPLICA flags
Andrew Tridgell [Fri, 23 Sep 2011 07:33:07 +0000 (17:33 +1000)]
s4-repl: add FULL_SYNC and PARTIAL_REPLICA flags

this sets the appropriate flags for replication with FULL_SYNC and
partial replica replications

7 years agos4-dsdb: implement DSDB_REPL_FLAG_PRIORITISE_INCOMING
Andrew Tridgell [Fri, 23 Sep 2011 07:30:40 +0000 (17:30 +1000)]
s4-dsdb: implement DSDB_REPL_FLAG_PRIORITISE_INCOMING

With this set, we accept changes even if they have the same tuple as
the local copy. This can be used by a FULL_SYNC replication to recover
a replica that is corrupt

7 years agos4-dsdb: disallow changes based on instanceType
Andrew Tridgell [Fri, 23 Sep 2011 07:28:25 +0000 (17:28 +1000)]
s4-dsdb: disallow changes based on instanceType

if instanceType does not include INSTANCE_TYPE_WRITE, then disallow
changes to any replicated attributes. This ensures partial replicates
are not alterered

7 years agos4-dsdb: added DSDB_REPL_FLAG* to replication
Andrew Tridgell [Fri, 23 Sep 2011 07:27:40 +0000 (17:27 +1000)]
s4-dsdb: added DSDB_REPL_FLAG* to replication

this allows the replication server to control replication via a set of
flags. Initial flags will allow control for partial replications and
full_sync support

7 years agos4-ldap-server: disallow all modifies on global catalog port
Andrew Tridgell [Fri, 23 Sep 2011 06:15:24 +0000 (16:15 +1000)]
s4-ldap-server: disallow all modifies on global catalog port

7 years agos4-ldb: enable display of partialAttributeSet with --show-binary
Andrew Tridgell [Fri, 23 Sep 2011 03:28:06 +0000 (13:28 +1000)]
s4-ldb: enable display of partialAttributeSet with --show-binary

7 years agotesttools: Import new upstream snapshot.
Jelmer Vernooij [Mon, 3 Oct 2011 10:20:19 +0000 (12:20 +0200)]
testtools: Import new upstream snapshot.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct  3 13:54:06 CEST 2011 on sn-devel-104

7 years agodns: Move the dns_srv_record to the correct place in the idl file
Kai Blin [Fri, 30 Sep 2011 02:34:08 +0000 (19:34 -0700)]
dns: Move the dns_srv_record to the correct place in the idl file

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Sun Oct  2 13:35:49 CEST 2011 on sn-devel-104

7 years agodns: Add support for TXT record to idl file
Kai Blin [Fri, 30 Sep 2011 02:32:57 +0000 (19:32 -0700)]
dns: Add support for TXT record to idl file

7 years agowscript: Also generate ctags for python files
Kai Blin [Wed, 28 Sep 2011 19:07:27 +0000 (12:07 -0700)]
wscript: Also generate ctags for python files

7 years agos4 provision: Set server role default when called from command line to 'dc'
Kai Blin [Fri, 30 Sep 2011 23:23:39 +0000 (16:23 -0700)]
s4 provision: Set server role default when called from command line to 'dc'

7 years agos3:registry: fix the test for a REG_SZ blob possibly being a zero terminated ucs2...
Michael Adam [Thu, 29 Sep 2011 16:06:56 +0000 (18:06 +0200)]
s3:registry: fix the test for a REG_SZ blob possibly being a zero terminated ucs2 string

1. catch data blobs with odd number of bytes (not an ucs2 string at all)
2. test the right ucs2 character to be 0
   (prevent out-of bounds access/potential segfault)

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sun Oct  2 01:26:05 CEST 2011 on sn-devel-104

7 years agos3:registry: reg_format: handle unterminated REG_SZ blobs
Gregor Beck [Tue, 6 Sep 2011 07:24:10 +0000 (09:24 +0200)]
s3:registry: reg_format: handle unterminated REG_SZ blobs

Signed-off-by: Michael Adam <obnox@samba.org>
7 years agoAdd the new test_nttrans_fsctl.c to waf
Richard Sharpe [Sat, 1 Oct 2011 16:03:13 +0000 (09:03 -0700)]
Add the new test_nttrans_fsctl.c to waf

Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Sat Oct  1 19:36:53 CEST 2011 on sn-devel-104

7 years agoMove FSCTL handling into the VFS. Initial code changes. Passes smbtorture NTTRANS...
Richard Sharpe [Fri, 16 Sep 2011 18:52:22 +0000 (11:52 -0700)]
Move FSCTL handling into the VFS. Initial code changes. Passes smbtorture NTTRANS-FSCTL. Test added to selftests.

7 years agoAdd a torture test to test existing FSCTL responses
Richard Sharpe [Thu, 15 Sep 2011 23:13:54 +0000 (16:13 -0700)]
Add a torture test to test existing FSCTL responses

7 years agoFix bug #8493 - DFS breaks zip file extracting unless "follow symlinks = no" set
Jeremy Allison [Fri, 30 Sep 2011 20:35:59 +0000 (13:35 -0700)]
Fix bug #8493 - DFS breaks zip file extracting unless "follow symlinks = no" set

If a client sends a mangled name as part of a DFS path, use the
post-mangled name for the pathname walk, not the mangled name.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Oct  1 00:45:59 CEST 2011 on sn-devel-104

7 years agos3-docs: Fix typos.
Karolin Seeger [Mon, 6 Jun 2011 17:58:22 +0000 (19:58 +0200)]
s3-docs: Fix typos.

Thanks to Samba-JP oota <ribbon@samba.gr.jp> for reporting!

Karolin

Autobuild-User: Karolin Seeger <kseeger@samba.org>
Autobuild-Date: Fri Sep 30 23:12:35 CEST 2011 on sn-devel-104

7 years agos3-docs: some corrections for wbinfo
Christian Ambach [Fri, 30 Sep 2011 15:07:05 +0000 (17:07 +0200)]
s3-docs: some corrections for wbinfo

Parameters for --group-info and --gid-info were not listed
properly in the SYNOPSIS and the OPTIONS section

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Fri Sep 30 18:44:34 CEST 2011 on sn-devel-104

7 years agos3:wscript_build - add dependency on "tdb-wrap3" for libnet dssync
Matthias Dieter Wallnöfer [Thu, 29 Sep 2011 10:47:17 +0000 (12:47 +0200)]
s3:wscript_build - add dependency on "tdb-wrap3" for libnet dssync

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Sep 30 16:40:12 CEST 2011 on sn-devel-104

7 years agobuild: Add dep on tdb-wrap3 to get tdb headers
Andrew Bartlett [Wed, 28 Sep 2011 17:33:36 +0000 (10:33 -0700)]
build: Add dep on tdb-wrap3 to get tdb headers

Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
7 years agos3: Re-add (), fix a gcc hint
Volker Lendecke [Fri, 30 Sep 2011 08:11:31 +0000 (10:11 +0200)]
s3: Re-add (), fix a gcc hint

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Sep 30 15:06:47 CEST 2011 on sn-devel-104

7 years agos3: Remove an unused variable
Volker Lendecke [Fri, 30 Sep 2011 08:10:14 +0000 (10:10 +0200)]
s3: Remove an unused variable

7 years agos3: Fix an uninitialized variable warning
Volker Lendecke [Fri, 30 Sep 2011 08:09:19 +0000 (10:09 +0200)]
s3: Fix an uninitialized variable warning

7 years agos3: Fix a C++ warning
Volker Lendecke [Fri, 30 Sep 2011 08:07:35 +0000 (10:07 +0200)]
s3: Fix a C++ warning

7 years agos3: Fix a C++ warning
Volker Lendecke [Fri, 30 Sep 2011 08:07:30 +0000 (10:07 +0200)]
s3: Fix a C++ warning

7 years agoSecond part of bug #8494 - Remove "experimental" label on VFS ACL modules.
Jeremy Allison [Fri, 30 Sep 2011 00:16:58 +0000 (17:16 -0700)]
Second part of bug #8494 - Remove "experimental" label on VFS ACL modules.

Fix the docs.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Sep 30 03:50:43 CEST 2011 on sn-devel-104

7 years agoBug 7551: Return error of cli_push when 'put - /some/file' is used
Bram [Thu, 29 Sep 2011 09:28:03 +0000 (11:28 +0200)]
Bug 7551: Return error of cli_push when 'put - /some/file' is used

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Sep 29 23:47:02 CEST 2011 on sn-devel-104

7 years agos3:smb2cli: fix the num_expected == 0 logic in smb2cli_req_recv()
Stefan Metzmacher [Fri, 23 Sep 2011 20:47:33 +0000 (22:47 +0200)]
s3:smb2cli: fix the num_expected == 0 logic in smb2cli_req_recv()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 29 22:15:06 CEST 2011 on sn-devel-104

7 years agos4:smb_server/smb2: make sure we sign the final session setup
Stefan Metzmacher [Thu, 29 Sep 2011 08:09:41 +0000 (10:09 +0200)]
s4:smb_server/smb2: make sure we sign the final session setup

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 29 18:59:54 CEST 2011 on sn-devel-104

7 years agos4: add SMB2_FSCTL opcodes
David Disseldorp [Mon, 26 Sep 2011 11:38:16 +0000 (13:38 +0200)]
s4: add SMB2_FSCTL opcodes

Also, skip samba4.smb2.ioctl for now. Snapshots are not supported by
default.

Autobuild-User: David Disseldorp <ddiss@samba.org>
Autobuild-Date: Thu Sep 29 14:47:05 CEST 2011 on sn-devel-104

7 years agos3-smb2_server: fix ioctl InputOffset checking
David Disseldorp [Wed, 28 Sep 2011 12:45:42 +0000 (14:45 +0200)]
s3-smb2_server: fix ioctl InputOffset checking

Currently the InputOffset is always check to point to the input data
buffer, regardless of whether input data is present.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agos3-smb2_server: SMB2_OP_IOCTL doesn't require at least 1 dyn byte
David Disseldorp [Sun, 25 Sep 2011 21:39:07 +0000 (23:39 +0200)]
s3-smb2_server: SMB2_OP_IOCTL doesn't require at least 1 dyn byte

Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agos4-torture: add smb2 ioctl test suite
David Disseldorp [Thu, 22 Sep 2011 20:23:08 +0000 (22:23 +0200)]
s4-torture: add smb2 ioctl test suite

Currently only covers FSCTL_GET_SHADOW_COPY_DATA.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agos4-torture: remove unchecked read from smb2 create
David Disseldorp [Wed, 21 Sep 2011 19:50:29 +0000 (21:50 +0200)]
s4-torture: remove unchecked read from smb2 create

Add a corresponding test case to smb2.read.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
7 years agosocket_wrapper: correctly handle dup()/dup2() ref counting
Stefan Metzmacher [Wed, 28 Sep 2011 21:09:49 +0000 (23:09 +0200)]
socket_wrapper: correctly handle dup()/dup2() ref counting

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 29 13:13:56 CEST 2011 on sn-devel-104

7 years agosocket_wrapper: pass down the fd explictly from the swrap_*() to the real_*() calls
Stefan Metzmacher [Wed, 28 Sep 2011 21:04:51 +0000 (23:04 +0200)]
socket_wrapper: pass down the fd explictly from the swrap_*() to the real_*() calls

metze

7 years agos3:smb2_server: SMB2_OP_CANCEL requests don't have to be signed
Stefan Metzmacher [Wed, 28 Sep 2011 06:28:08 +0000 (08:28 +0200)]
s3:smb2_server: SMB2_OP_CANCEL requests don't have to be signed

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Sep 29 02:58:41 CEST 2011 on sn-devel-104

7 years agotest commit to see it push works for me.
Herb Lewis [Wed, 28 Sep 2011 21:14:54 +0000 (14:14 -0700)]
test commit to see it push works for me.

Autobuild-User: Herb Lewis <herb@samba.org>
Autobuild-Date: Thu Sep 29 00:51:16 CEST 2011 on sn-devel-104

7 years agos4:torture/smb2/lock: remove samba4 specific checks for NETWORK_NAME_DELETED/USER_SES...
Stefan Metzmacher [Wed, 28 Sep 2011 06:47:56 +0000 (08:47 +0200)]
s4:torture/smb2/lock: remove samba4 specific checks for NETWORK_NAME_DELETED/USER_SESSION_DELETED

Most Windows versions have a strange order to
verify the session id, tree id and file id.
(They should be checked in that order, but windows
seems to check the file id before the others).

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 28 21:12:07 CEST 2011 on sn-devel-104

7 years agos4:libcli/smb2: ignore SMB2_OP_CANCEL responses
Stefan Metzmacher [Wed, 28 Sep 2011 06:23:24 +0000 (08:23 +0200)]
s4:libcli/smb2: ignore SMB2_OP_CANCEL responses

If there're a problem with signing or the session doesn't exists
any more the server responses with a failure, instead of not
sending a response.

For now we ignore the reponse, as there's not much we could do with it
and it's not likely that we generate bad requests, which trigger
that behavior, except for testing.

metze

7 years agos4:libcli/smb2: correctly sign SMB2_OP_CANCEL request if they belong to a session
Stefan Metzmacher [Wed, 28 Sep 2011 05:50:42 +0000 (07:50 +0200)]
s4:libcli/smb2: correctly sign SMB2_OP_CANCEL request if they belong to a session

metze

7 years agos4:libcli/smb2: don't try to check the signing if we got NT_STATUS_USER_SESSION_DELETED
Stefan Metzmacher [Wed, 28 Sep 2011 04:43:51 +0000 (06:43 +0200)]
s4:libcli/smb2: don't try to check the signing if we got NT_STATUS_USER_SESSION_DELETED

metze

7 years agos3:dbwrap_ctdb: improve the check for skipping the __db_sequence_number__ record...
Michael Adam [Tue, 27 Sep 2011 14:06:48 +0000 (16:06 +0200)]
s3:dbwrap_ctdb: improve the check for skipping the __db_sequence_number__ record in traverse

It did not compare the last charcter (usually '\0')

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Sep 28 16:54:59 CEST 2011 on sn-devel-104

7 years agolibcli: Install libcli.h.
Jelmer Vernooij [Wed, 28 Sep 2011 10:42:33 +0000 (12:42 +0200)]
libcli: Install libcli.h.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Sep 28 14:19:20 CEST 2011 on sn-devel-104

7 years agosmb_unix_ext.h: Protect against multiple inclusion.
Jelmer Vernooij [Wed, 28 Sep 2011 10:05:54 +0000 (12:05 +0200)]
smb_unix_ext.h: Protect against multiple inclusion.

7 years agoInstall headers included by smb_common.h.
Jelmer Vernooij [Wed, 28 Sep 2011 09:32:36 +0000 (11:32 +0200)]
Install headers included by smb_common.h.

7 years agos4:libcli/resolve: only try broadcast messages to ipv4 addresses
Stefan Metzmacher [Wed, 28 Sep 2011 00:02:08 +0000 (02:02 +0200)]
s4:libcli/resolve: only try broadcast messages to ipv4 addresses

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 28 05:10:53 CEST 2011 on sn-devel-104

7 years agodns: Do as BIND and MS DNS and drop quries with qdcount != 1
Kai Blin [Tue, 27 Sep 2011 05:31:46 +0000 (22:31 -0700)]
dns: Do as BIND and MS DNS and drop quries with qdcount != 1

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Wed Sep 28 03:37:22 CEST 2011 on sn-devel-104

7 years agodns: The QCLASS is called IN, not IP
Kai Blin [Tue, 27 Sep 2011 06:37:06 +0000 (23:37 -0700)]
dns: The QCLASS is called IN, not IP

7 years agos3 net: Fix a discard const warning
Kai Blin [Sun, 25 Sep 2011 20:24:50 +0000 (13:24 -0700)]
s3 net: Fix a discard const warning

7 years agoerrormap: Add unix_to_werror() function
Kai Blin [Wed, 26 Jan 2011 21:17:43 +0000 (22:17 +0100)]
errormap: Add unix_to_werror() function

While this function technically is closest to the
map_nt_status_from_unix() function, I think it is better to keep the new
function in line with our usual fooerror_to_barerror() naming scheme.

Signed-off-by: Kai Blin <kai@samba.org>
7 years agos3:libsmb: remove unused TALLOC_FREE(subreq) calls in
Stefan Metzmacher [Tue, 20 Sep 2011 03:00:46 +0000 (05:00 +0200)]
s3:libsmb: remove unused TALLOC_FREE(subreq) calls in

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Sep 28 02:01:09 CEST 2011 on sn-devel-104

7 years agos3:libsmb: call TALLOC_FREE(subreq) directly after cli_sesssetup_blob_recv()
Stefan Metzmacher [Tue, 20 Sep 2011 02:57:45 +0000 (04:57 +0200)]
s3:libsmb: call TALLOC_FREE(subreq) directly after cli_sesssetup_blob_recv()

cli_sesssetup_blob_recv() talloc moves stuff that's needed on
the given memory context.

metze

7 years agos3-messaging Do not ever send a kill to -1
Andrew Bartlett [Tue, 27 Sep 2011 16:54:37 +0000 (09:54 -0700)]
s3-messaging Do not ever send a kill to -1

This from a report by Olaf Flebbe <o.flebbe@science-computing.de>

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Sep 28 00:23:44 CEST 2011 on sn-devel-104

7 years agos3-messaging Ensure that the message is of the correct legnth
Andrew Bartlett [Tue, 27 Sep 2011 16:50:11 +0000 (09:50 -0700)]
s3-messaging Ensure that the message is of the correct legnth

By using ndr_pull_struct_blob_all we are more robust against wrongly formatted messages.

Andrew Bartlett

7 years agos4-ldap_server: Fix segfault on startup failure of ldap server
Andrew Bartlett [Mon, 26 Sep 2011 22:56:23 +0000 (15:56 -0700)]
s4-ldap_server: Fix segfault on startup failure of ldap server

7 years agos3-pdb_samba4: Remove unused attribute from domain search
Andrew Bartlett [Mon, 26 Sep 2011 22:56:00 +0000 (15:56 -0700)]
s3-pdb_samba4: Remove unused attribute from domain search

7 years agoThese modules are no longer experimental but production-ready (especially
Jeremy Allison [Tue, 27 Sep 2011 17:23:08 +0000 (10:23 -0700)]
These modules are no longer experimental but production-ready (especially
the acl_xattr code). Remove the "experimental" tag.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Sep 27 21:00:12 CEST 2011 on sn-devel-104

7 years agoFree the memory talloc'd
Richard Sharpe [Tue, 27 Sep 2011 05:25:43 +0000 (22:25 -0700)]
Free the memory talloc'd

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Sep 27 18:51:47 CEST 2011 on sn-devel-104

7 years agos3-samr: Remove fstring in samr.
Andreas Schneider [Mon, 26 Sep 2011 15:59:02 +0000 (17:59 +0200)]
s3-samr: Remove fstring in samr.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Sep 26 19:56:04 CEST 2011 on sn-devel-104

7 years agos3-passdb: Cleanup use of fstring and move to talloc.
Simo Sorce [Mon, 26 Sep 2011 15:30:05 +0000 (11:30 -0400)]
s3-passdb: Cleanup use of fstring and move to talloc.

Signed-off-by: Andreas Schneider <asn@samba.org>
7 years agos3-group-mapping: Remove unused functions.
Simo Sorce [Mon, 26 Sep 2011 15:26:52 +0000 (11:26 -0400)]
s3-group-mapping: Remove unused functions.

Signed-off-by: Andreas Schneider <asn@samba.org>
7 years agos3: Slightly simplify print_kdc_line()
Volker Lendecke [Mon, 26 Sep 2011 14:28:05 +0000 (16:28 +0200)]
s3: Slightly simplify print_kdc_line()

No code change except for an early "return talloc_asprintf(..)" making an else
branch obsolete.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Sep 26 18:24:25 CEST 2011 on sn-devel-104

7 years agos3: Slightly simplify print_kdc_line()
Volker Lendecke [Mon, 26 Sep 2011 14:28:05 +0000 (16:28 +0200)]
s3: Slightly simplify print_kdc_line()

No code change except for an early "return talloc_asprintf(..)" making an else
branch obsolete.

7 years agos3: Slightly simplify print_kdc_line()
Volker Lendecke [Mon, 26 Sep 2011 14:28:05 +0000 (16:28 +0200)]
s3: Slightly simplify print_kdc_line()

No code change except for an early "return talloc_asprintf(..)" making an else
branch obsolete.

7 years agos3: Remove the smbd_server_conn ref from create_junction
Volker Lendecke [Sat, 24 Sep 2011 03:53:28 +0000 (05:53 +0200)]
s3: Remove the smbd_server_conn ref from create_junction

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Sep 26 16:33:30 CEST 2011 on sn-devel-104

7 years agos3: Remove the smbd_server_conn ref from setup_dfs_referral
Volker Lendecke [Sat, 24 Sep 2011 03:49:08 +0000 (05:49 +0200)]
s3: Remove the smbd_server_conn ref from setup_dfs_referral

7 years agos3: Remove the smbd_server_conn ref from get_referred_path
Volker Lendecke [Sat, 24 Sep 2011 03:42:48 +0000 (05:42 +0200)]
s3: Remove the smbd_server_conn ref from get_referred_path

7 years agos3: Remove the smbd_server_conn ref from dfs_redirect
Volker Lendecke [Sat, 24 Sep 2011 03:35:20 +0000 (05:35 +0200)]
s3: Remove the smbd_server_conn ref from dfs_redirect

7 years agos3: Remove the smbd_server_conn ref from create_conn_struct
Volker Lendecke [Sat, 24 Sep 2011 03:33:11 +0000 (05:33 +0200)]
s3: Remove the smbd_server_conn ref from create_conn_struct