kai/samba.git
11 years agos3-smbd: Call sys_acl_get_perm() directly rather than via the VFS
Andrew Bartlett [Mon, 13 Aug 2012 09:34:36 +0000 (19:34 +1000)]
s3-smbd: Call sys_acl_get_perm() directly rather than via the VFS

This will allow us to remove the struct smb_acl_t manipuations from the VFS layer,
which will be reduced to handling the get/set functions.

Andrew Bartlett

11 years agos3-smbd: Move smb_acl_t declaration to smb_acl.idl
Andrew Bartlett [Sun, 12 Aug 2012 12:02:23 +0000 (22:02 +1000)]
s3-smbd: Move smb_acl_t declaration to smb_acl.idl

This will allow us to marshall this into and from an NDR blob on disk, which will
allow us to fake up ACL support during make test, and to test the NT ACL emulation
using python bindings via the VFS.

Andrew Bartlett

11 years agopidl: Add mode_t as an alias so we can marshall posix ACL structures
Andrew Bartlett [Sun, 12 Aug 2012 12:00:42 +0000 (22:00 +1000)]
pidl: Add mode_t as an alias so we can marshall posix ACL structures

11 years agos3-smbd: Change allocation of smb_acl_t to talloc()
Andrew Bartlett [Sun, 12 Aug 2012 10:41:35 +0000 (20:41 +1000)]
s3-smbd: Change allocation of smb_acl_t to talloc()

The acl element is changed to be a talloc child, and is no longer one element
longer than requested by virtue of the acl[1] base pointer.

This also avoids one of the few remaining cases of over-allocation of a structure.

Andrew Bartlett

11 years agolibwbclient: Add test for wbcPingDc2
Christof Schmitt [Tue, 14 Aug 2012 20:50:23 +0000 (13:50 -0700)]
libwbclient: Add test for wbcPingDc2

The internal domain used in 'make test' does not report a DC name, so
just add tests similar to the old wbcPingDc call.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agowbinfo: Improve output of wbinfo --ping-dc
Christof Schmitt [Fri, 10 Aug 2012 15:41:41 +0000 (08:41 -0700)]
wbinfo: Improve output of wbinfo --ping-dc

Use wbcPingDc2 to get the DC name and print it.

Cleanup error messages: Remove "Could not ping our DC", there is always
a more specific message.  Avoid printing "failed to call wbcPingDc" in
case the ping has been attempted and it returns an error, the error is
already printed.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agolibwbclient: Add wbcPingDc2
Christof Schmitt [Fri, 10 Aug 2012 15:25:14 +0000 (08:25 -0700)]
libwbclient: Add wbcPingDc2

Add wbcPingDc2 that optionally returns the DC that was attempted to
ping. wbcPing is implemented as a wrapper around wbcPingDc2.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agos3-winbind: Return the DC name from DC_PING
Christof Schmitt [Fri, 10 Aug 2012 15:10:42 +0000 (08:10 -0700)]
s3-winbind: Return the DC name from DC_PING

The DC that was attempted to ping is useful for troubleshooting. Return
the DC name in the response to the wbclient.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agos3-winbind: Pass ping-dc result to client
Christof Schmitt [Thu, 9 Aug 2012 22:07:16 +0000 (15:07 -0700)]
s3-winbind: Pass ping-dc result to client

The client checks for an error code in response.data.auth.nt_status,
make sure the result is stored there.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agoselftest: Add knownfail for samba3.winbind.wbclient.wbcPingDc2
Andrew Bartlett [Wed, 15 Aug 2012 01:43:45 +0000 (11:43 +1000)]
selftest: Add knownfail for samba3.winbind.wbclient.wbcPingDc2

The soon-to-be-added command also fails against the s4 winbind.

Andrew Bartlett

11 years agos4:dsdb/repl: fix the usage of 'GC/' prefixed principal names
Stefan Metzmacher [Tue, 14 Aug 2012 12:36:41 +0000 (14:36 +0200)]
s4:dsdb/repl: fix the usage of 'GC/' prefixed principal names

The "serverReference" attribute is available on the "server" object
not on the "nTDSA" object.

This allows connections to RODCs, as they don't have a
E3514235-4B06-11D1-AB04-00C04FC2DCD2/${NTDSGUID}/${DNSDOMAIN}
principal.

Pair-Programmed-With: Björn Baumbach <bb@sernet.de>

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Aug 14 18:57:41 CEST 2012 on sn-devel-104

11 years agos4:samba-tool/drs: print the dns name of the server belonging to a connection
Stefan Metzmacher [Tue, 14 Aug 2012 12:35:13 +0000 (14:35 +0200)]
s4:samba-tool/drs: print the dns name of the server belonging to a connection

Pair-Programmed-With: Björn Baumbach <bb@sernet.de>

metze

11 years agos4:ntp_signd: fix SEGV if SID cannot be found
Arvid Requate [Tue, 14 Aug 2012 12:16:54 +0000 (14:16 +0200)]
s4:ntp_signd: fix SEGV if SID cannot be found

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug 14 17:16:54 CEST 2012 on sn-devel-104

11 years agos3-passdb: Silence scary DEBUG(0) message on first use of secrets.tdb databases
Andrew Bartlett [Tue, 14 Aug 2012 12:58:19 +0000 (22:58 +1000)]
s3-passdb: Silence scary DEBUG(0) message on first use of secrets.tdb databases

When pdb_samba4 first opens this databse, this message is printed.

Andrew Bartlett

11 years agos4-dsdb: Use samdb_dn_is_our_ntdsa()
Andrew Bartlett [Tue, 14 Aug 2012 09:48:32 +0000 (19:48 +1000)]
s4-dsdb: Use samdb_dn_is_our_ntdsa()

This uses a GUID based comparison, and avoids re-fetching the
samdb_ntds_settings_dn each time.

Andrew Bartlett

11 years agos4-dsdb: Add samdb_dn_is_our_ntdsa()
Andrew Bartlett [Tue, 14 Aug 2012 09:44:18 +0000 (19:44 +1000)]
s4-dsdb: Add samdb_dn_is_our_ntdsa()

This is like samdb_reference_dn_is_our_ntdsa but without the attribute de-reference.

Andrew Bartlett

11 years agos4-dsdb: Use samdb_reference_dn_is_our_ntdsa()
Andrew Bartlett [Tue, 14 Aug 2012 08:48:24 +0000 (18:48 +1000)]
s4-dsdb: Use samdb_reference_dn_is_our_ntdsa()

11 years agos4-repl: Use samdb_reference_dn_is_our_ntdsa()
Andrew Bartlett [Tue, 14 Aug 2012 08:47:54 +0000 (18:47 +1000)]
s4-repl: Use samdb_reference_dn_is_our_ntdsa()

11 years agos4-dsdb: Add helper function samdb_reference_dn_is_our_ntdsa()
Andrew Bartlett [Tue, 14 Aug 2012 08:46:47 +0000 (18:46 +1000)]
s4-dsdb: Add helper function samdb_reference_dn_is_our_ntdsa()

We often want to know if we own an FSMO role (for example).  This tries to be more
efficient by comparing the GUID, rather than the string DN, as this does not need
to be re-fetched each time.

Andrew Bartlett

11 years agos4-dsdb: Use ldb_dn_copy() rather than talloc_reference()
Andrew Bartlett [Tue, 14 Aug 2012 07:49:12 +0000 (17:49 +1000)]
s4-dsdb: Use ldb_dn_copy() rather than talloc_reference()

As the normal case (outside provision) uses a copy, this avoids a case
where a caller might modify a global variable accidentily.

As suggested by metze.

Andrew Bartlett

11 years agos4-libnet: Prepare libnet_BecomeDC for samdb_reference_dn() returning an extended DN
Andrew Bartlett [Tue, 14 Aug 2012 12:54:26 +0000 (22:54 +1000)]
s4-libnet: Prepare libnet_BecomeDC for samdb_reference_dn() returning an extended DN

Remote LDAP servers will not accept an extended DN with other components.

Andrew Bartlett

11 years agos4-libnet: Improve debugging of libnet_BecomeDC LDAP errors
Andrew Bartlett [Tue, 14 Aug 2012 12:53:35 +0000 (22:53 +1000)]
s4-libnet: Improve debugging of libnet_BecomeDC LDAP errors

11 years agos4:dsdb/repl: ldb_errstring() takes a 'struct ldb_context' not 'int'
Stefan Metzmacher [Tue, 14 Aug 2012 08:46:26 +0000 (10:46 +0200)]
s4:dsdb/repl: ldb_errstring() takes a 'struct ldb_context' not 'int'

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Aug 14 13:58:31 CEST 2012 on sn-devel-104

11 years agos4:dsdb/repl: make sure instanceType_e is not changed by a reallocation
Stefan Metzmacher [Mon, 13 Aug 2012 13:33:49 +0000 (15:33 +0200)]
s4:dsdb/repl: make sure instanceType_e is not changed by a reallocation

Pair-Programmed-With: Björn Baumbach <bb@sernet.de>

metze

11 years agos4:dsdb/repl: avoid reallocation of msg->elements
Stefan Metzmacher [Mon, 13 Aug 2012 13:31:16 +0000 (15:31 +0200)]
s4:dsdb/repl: avoid reallocation of msg->elements

The index into the elements needs to match between
msg->elements and md->ctr.ctr1.array, which means we should
pre-allocate them with the same size.

Pair-Programmed-With: Björn Baumbach <bb@sernet.de>

metze

11 years agos4-dsdb: Add mem_ctx argument to samdb_ntds_settings_dn
Andrew Bartlett [Tue, 14 Aug 2012 06:08:47 +0000 (16:08 +1000)]
s4-dsdb: Add mem_ctx argument to samdb_ntds_settings_dn

As this value is calculated new each time, we need to give it a context to live on.

If the value is the forced value during provision, a reference is taken.

This was responsible for the memory leak in the replication process.  In the
example I was given, this DN appeared in memory 13596 times!

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug 14 10:05:14 CEST 2012 on sn-devel-104

11 years agos4-dsdb: Improve memory handling in dsdb_schema_from_ldb_results() by adding a tmp_ctx
Andrew Bartlett [Tue, 14 Aug 2012 06:05:53 +0000 (16:05 +1000)]
s4-dsdb: Improve memory handling in dsdb_schema_from_ldb_results() by adding a tmp_ctx

11 years agos4-dsdb: Improve memory handling in kccsrv_add_connection()
Andrew Bartlett [Tue, 14 Aug 2012 05:58:59 +0000 (15:58 +1000)]
s4-dsdb: Improve memory handling in kccsrv_add_connection()

11 years agos4-dsdb: Improve memory handling in kccsrv_find_connections() by adding a tmp_ctx
Andrew Bartlett [Tue, 14 Aug 2012 05:56:04 +0000 (15:56 +1000)]
s4-dsdb: Improve memory handling in kccsrv_find_connections() by adding a tmp_ctx

11 years agos4-dsdb: Add const
Andrew Bartlett [Tue, 14 Aug 2012 05:54:26 +0000 (15:54 +1000)]
s4-dsdb: Add const

11 years agoVERSION: Move on to beta6!
Andrew Bartlett [Mon, 13 Aug 2012 23:32:00 +0000 (09:32 +1000)]
VERSION: Move on to beta6!

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug 14 04:05:06 CEST 2012 on sn-devel-104

11 years agoVERSION: Mark as the beta6 release save-diskspace-tags/samba-4.0.0beta6
Andrew Bartlett [Mon, 13 Aug 2012 23:31:26 +0000 (09:31 +1000)]
VERSION: Mark as the beta6 release

11 years agoWHATSNEW: prepare for 4.0 beta6
Andrew Bartlett [Mon, 13 Aug 2012 23:30:30 +0000 (09:30 +1000)]
WHATSNEW: prepare for 4.0 beta6

11 years agos3-vfs: Put vfs_aixacl_util.c helper functions into a header file
Andrew Bartlett [Mon, 13 Aug 2012 10:14:43 +0000 (20:14 +1000)]
s3-vfs: Put vfs_aixacl_util.c helper functions into a header file

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug 14 02:16:11 CEST 2012 on sn-devel-104

11 years agos4:kdc/wdc-samba4.c - fix user logins on specific workstations
Matthias Dieter Wallnöfer [Mon, 13 Aug 2012 18:17:20 +0000 (20:17 +0200)]
s4:kdc/wdc-samba4.c - fix user logins on specific workstations

The decrement operation has been missing.

Problem found by Mohammad Ebrahim Abravi <lamp.mia@gmail.com>

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agos4-classicupgrade: Tests if sam policies exist before trying to import them.
Wesley Young [Mon, 13 Aug 2012 01:08:36 +0000 (01:08 +0000)]
s4-classicupgrade: Tests if sam policies exist before trying to import them.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agos3-selftest: Add smbclient tarmode test
Salvador I. Gonzalez [Sat, 11 Aug 2012 14:48:36 +0000 (10:48 -0400)]
s3-selftest: Add smbclient tarmode test

(With small changes to have test complete by Andrew Bartlett)

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agos3-selftest: Fix copy/paste error in test usage string
Salvador I. Gonzalez [Sat, 11 Aug 2012 14:47:58 +0000 (10:47 -0400)]
s3-selftest: Fix copy/paste error in test usage string

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agoFix smbclient/tarmode panic on connecting to Windows 2000 clients.
Salvador I. Gonzalez [Sat, 11 Aug 2012 17:46:41 +0000 (13:46 -0400)]
Fix smbclient/tarmode panic on connecting to Windows 2000 clients.

  'Freed frame ../source3/libsmb/clilist.c:934, expected ../source3/client/clitar.c:821'
  Cause: (strequal(finfo->name,"..") || strequal(finfo->name,"."))
    evaluates to true, do_tar returns without freeing ctx

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Aug 13 23:12:50 CEST 2012 on sn-devel-104

11 years agoEnsure we update last_access on the winbindd child struct on each request.
Jeremy Allison [Mon, 13 Aug 2012 17:34:52 +0000 (10:34 -0700)]
Ensure we update last_access on the winbindd child struct on each request.

11 years agos3: skip loading vfs modules for printer connections
Björn Jacke [Sun, 12 Aug 2012 13:51:30 +0000 (15:51 +0200)]
s3: skip loading vfs modules for printer connections

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Sun Aug 12 23:40:23 CEST 2012 on sn-devel-104

11 years agos4-dsdb: Take more care in handling of global schema memory
Andrew Bartlett [Sat, 11 Aug 2012 02:29:06 +0000 (12:29 +1000)]
s4-dsdb: Take more care in handling of global schema memory

This reworks dsdb_replicated_objects_commit() to have a proper local tmp_ctx and
to be more careful about what schema is set (only setting a global schema if
the original schema was global).

In particular, the new working_schema is not given a talloc reference
to the old schema.  This ensures that the old schema can go away when
no longer used.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Aug 11 10:31:57 CEST 2012 on sn-devel-104

11 years agos4-dsdb: Remove support for per-partition sequence numbers
Andrew Bartlett [Sat, 11 Aug 2012 01:00:53 +0000 (11:00 +1000)]
s4-dsdb: Remove support for per-partition sequence numbers

These sequence numbers were only used for telling if the schema was
changed, and are no longer directly related to the replication USN.

The per-partition replication USN can be obtained from the
@REPLCHANGED record on the per-partition database, and this is done
with an ldb_search().

Andrew Bartlett

11 years agos4-dsdb: Use only the replication USN for schema reload.
Andrew Bartlett [Sat, 11 Aug 2012 00:56:58 +0000 (10:56 +1000)]
s4-dsdb: Use only the replication USN for schema reload.

This way we do not track both the partition seq number and the
replication USN for schema reload purposes.

We only need one indication of actual data change, and the replication
per-partition sequence number is no more expensive to obtain than the
ldb per-partition sequence number.

Andrew Bartlett

11 years agos3-nfs4acls: Remove lookup_sid and sidmap from NFSv4 ACL mapping and check gid first
Andrew Bartlett [Sun, 6 May 2012 22:48:24 +0000 (08:48 +1000)]
s3-nfs4acls: Remove lookup_sid and sidmap from NFSv4 ACL mapping and check gid first

By checking just the IDMAP, and by removing the sidmap and lookup_sid calls, we support
IDMAP_BOTH.  This is because by checking for a mapping to a GID first, we can rely on
the fact that IDMAP_BOTH will resolve to a GID.

If the sidmap idea is valued - it allows multiple SIDs to map to a single unix ID, this should
be done in the IDMAP layer.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Aug 11 01:17:36 CEST 2012 on sn-devel-104

11 years agos3-smbd: Merge ACE entries based on mapped UID/GID not SID
Andrew Bartlett [Tue, 7 Aug 2012 02:11:50 +0000 (12:11 +1000)]
s3-smbd: Merge ACE entries based on mapped UID/GID not SID

As the test for a valid posix ACL is based on the unix uid/gid only appearing once in the ACL
the merge process also needs to be UID/GID based.

This is a problem when we have multiple builtin groups mapped to the same POSIX group
as happens in a Samba4 provision.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
11 years agos3-smbd: Convert posix_acls.c to use struct unixid internally
Andrew Bartlett [Tue, 7 Aug 2012 02:02:49 +0000 (12:02 +1000)]
s3-smbd: Convert posix_acls.c to use struct unixid internally

This is consistent with the rest of Samba which uses this structure to represent
a unix uid or gid.

World values remain represented by the owner_type being WORLD_ACE in the containing
structure.  A -1 value is filled in to the unixid.id in the same way the .world value
was initialised in the union.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
11 years agos3-smbd: Create a shortcut for building the token of a user by SID for posix_acls
Andrew Bartlett [Wed, 9 May 2012 23:19:46 +0000 (09:19 +1000)]
s3-smbd: Create a shortcut for building the token of a user by SID for posix_acls

When a user owns a file, but does not have specific permissions on that file, we need to
make up the user permissions.  This change ensures that the first thing that we do
is to look up the SID, and confirm it is a user.  Then, we avoid the getpwnam()
and directly create the token via the SID.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
11 years agotorture: Reproducer for 64c0367
Volker Lendecke [Tue, 7 Aug 2012 15:12:19 +0000 (17:12 +0200)]
torture: Reproducer for 64c0367

Signed-off-by: Jeremy Allison <jra@samba.org>
11 years agotdb/test: fix build on OSF/1
Björn Jacke [Fri, 10 Aug 2012 19:50:22 +0000 (21:50 +0200)]
tdb/test: fix build on OSF/1

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Aug 10 23:33:20 CEST 2012 on sn-devel-104

11 years agoRevert "s3:smbd: include smbXsrv.h before smbd/proto.h to have the smbXsrv_ structs...
Stefan Metzmacher [Fri, 10 Aug 2012 09:58:39 +0000 (11:58 +0200)]
Revert "s3:smbd: include smbXsrv.h before smbd/proto.h to have the smbXsrv_ structs available"

This reverts commit 98ccca8dca70b87d04a93c8ef5232a071ab7c2af.

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Aug 10 17:35:38 CEST 2012 on sn-devel-104

11 years agoRevert "s3:smbd: Include smbXsrv.h before vfs.h (in smbd.h) so that the smbXsrv struc...
Stefan Metzmacher [Fri, 10 Aug 2012 09:56:21 +0000 (11:56 +0200)]
Revert "s3:smbd: Include smbXsrv.h before vfs.h (in smbd.h) so that the smbXsrv structures are available"

This reverts commit e332bfaff51e54638bd37cd1fe08e57608e16e86.

11 years agoRevert "s3:smb: include "smbXsrv.h" before "vfs.h""
Stefan Metzmacher [Fri, 10 Aug 2012 09:58:28 +0000 (11:58 +0200)]
Revert "s3:smb: include "smbXsrv.h" before "vfs.h""

This reverts commit db0c233624e633b3cc1a6e0e44dccc09aaa121f2.

11 years agos3:smbXsrv.idl: remove smbXsrv_*0 defines
Stefan Metzmacher [Fri, 10 Aug 2012 09:55:13 +0000 (11:55 +0200)]
s3:smbXsrv.idl: remove smbXsrv_*0 defines

This makes ctags more usable.

metze

11 years agos3:param: fix compiler warnings with FN_GLOBAL_CONST_STRING()
Stefan Metzmacher [Fri, 10 Aug 2012 10:05:15 +0000 (12:05 +0200)]
s3:param: fix compiler warnings with FN_GLOBAL_CONST_STRING()

metze

11 years agobuild: rename security → samba-security
Björn Jacke [Fri, 10 Aug 2012 09:37:28 +0000 (11:37 +0200)]
build: rename security → samba-security

there is a libsecurity on OSF1 which clasheѕ with our security lib. see bug #9023.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Fri Aug 10 14:22:21 CEST 2012 on sn-devel-104

11 years agonsswitch: add ABI checking and symbol versions to libwbclient
Andrew Bartlett [Fri, 10 Aug 2012 00:17:31 +0000 (10:17 +1000)]
nsswitch: add ABI checking and symbol versions to libwbclient

This will ensure that we do not unintentionally break the ABI.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Aug 10 04:08:54 CEST 2012 on sn-devel-104

11 years agos4-dsdb: Explain better what records are written during schema set
Andrew Bartlett [Thu, 9 Aug 2012 22:44:04 +0000 (08:44 +1000)]
s4-dsdb: Explain better what records are written during schema set

This is controlled by setting write_indices_and_attributes.

Andrew Bartlett

11 years agolib/ldb: Use tdb_parse_record and a callback rather than tdb_fetch()
Andrew Bartlett [Thu, 9 Aug 2012 12:46:48 +0000 (22:46 +1000)]
lib/ldb: Use tdb_parse_record and a callback rather than tdb_fetch()

This avoid allocation at the tdb layer as we will allocate this
with talloc right away anyway.

Andrew Bartlett

11 years agoRemove smb_panic() from unix_strlower(). Just rely on error code return.
Jeremy Allison [Thu, 9 Aug 2012 00:32:50 +0000 (17:32 -0700)]
Remove smb_panic() from unix_strlower(). Just rely on error code return.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Aug  9 23:52:53 CEST 2012 on sn-devel-104

11 years agoCorrectly check for errors in strlower_m() returns.
Jeremy Allison [Thu, 9 Aug 2012 00:01:00 +0000 (17:01 -0700)]
Correctly check for errors in strlower_m() returns.

11 years agoFix strlower_m() to return an error indication.
Jeremy Allison [Wed, 8 Aug 2012 22:56:58 +0000 (15:56 -0700)]
Fix strlower_m() to return an error indication.

11 years agoCheck error returns on strnorm().
Jeremy Allison [Wed, 8 Aug 2012 22:49:34 +0000 (15:49 -0700)]
Check error returns on strnorm().

11 years agoCheck error returns from strupper_m() (in all reasonable places).
Jeremy Allison [Wed, 8 Aug 2012 22:35:28 +0000 (15:35 -0700)]
Check error returns from strupper_m() (in all reasonable places).

11 years agoFix missing ads_destroy in error path.
Jeremy Allison [Wed, 8 Aug 2012 22:21:33 +0000 (15:21 -0700)]
Fix missing ads_destroy in error path.

11 years agoChange strupper_m() to return a value.
Jeremy Allison [Wed, 8 Aug 2012 19:16:40 +0000 (12:16 -0700)]
Change strupper_m() to return a value.

11 years agoFix bad return in unix_strupper.
Jeremy Allison [Wed, 8 Aug 2012 19:10:01 +0000 (12:10 -0700)]
Fix bad return in unix_strupper.

11 years agoPrepare to remove smb_panic() from unix_strlower().
Jeremy Allison [Wed, 8 Aug 2012 19:07:54 +0000 (12:07 -0700)]
Prepare to remove smb_panic() from unix_strlower().

11 years agoFix bad return values in unix_strlower/unix_strupper.
Jeremy Allison [Wed, 8 Aug 2012 19:06:34 +0000 (12:06 -0700)]
Fix bad return values in unix_strlower/unix_strupper.

11 years agos4:torture:basic: check the return status of the last open in deltest16
Michael Adam [Thu, 9 Aug 2012 09:12:55 +0000 (11:12 +0200)]
s4:torture:basic: check the return status of the last open in deltest16

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Aug  9 18:01:50 CEST 2012 on sn-devel-104

11 years agos4:torture:basic: fix a message typo in the delete17 test
Michael Adam [Wed, 8 Aug 2012 21:36:52 +0000 (23:36 +0200)]
s4:torture:basic: fix a message typo in the delete17 test

11 years agos4:torture:basic: fix abundance of spaces in deltest6
Michael Adam [Thu, 9 Aug 2012 10:56:48 +0000 (12:56 +0200)]
s4:torture:basic: fix abundance of spaces in deltest6

11 years agos4:torture:basic:delete: fix 4 vs 8 spc tab formatting in check_delete_on_close()
Michael Adam [Wed, 8 Aug 2012 15:29:04 +0000 (17:29 +0200)]
s4:torture:basic:delete: fix 4 vs 8 spc tab formatting in check_delete_on_close()

11 years agos3:torture:delete: add a 12th subtest to the delete-on-close tests
Michael Adam [Wed, 8 Aug 2012 10:44:01 +0000 (12:44 +0200)]
s3:torture:delete: add a 12th subtest to the delete-on-close tests

test whether second open is possible with initial delete on close
and how setting and unsetting delete on close on the handle affects
the initial delete on close (it does not...)

11 years agos3:torture:delete: fix 11th test to work against windows
Michael Adam [Thu, 9 Aug 2012 14:11:08 +0000 (16:11 +0200)]
s3:torture:delete: fix 11th test to work against windows

11 years agos3:torture:delete: simplify return code handling, fixing a couple of return codes...
Michael Adam [Wed, 8 Aug 2012 10:25:09 +0000 (12:25 +0200)]
s3:torture:delete: simplify return code handling, fixing a couple of return codes in error cases

11 years agos3:torture:delete: reduce indentation
Michael Adam [Wed, 8 Aug 2012 10:20:24 +0000 (12:20 +0200)]
s3:torture:delete: reduce indentation

11 years agos3:torture:delete: add a comment
Michael Adam [Wed, 8 Aug 2012 10:19:52 +0000 (12:19 +0200)]
s3:torture:delete: add a comment

11 years agos3:torture:delete: add a comment
Michael Adam [Wed, 8 Aug 2012 10:18:40 +0000 (12:18 +0200)]
s3:torture:delete: add a comment

11 years agos3:torture:delete: add a comment
Michael Adam [Wed, 8 Aug 2012 10:17:53 +0000 (12:17 +0200)]
s3:torture:delete: add a comment

11 years agos3:torture:delete: move the success message for a subtest to the correct place
Michael Adam [Wed, 8 Aug 2012 09:32:55 +0000 (11:32 +0200)]
s3:torture:delete: move the success message for a subtest to the correct place

11 years agos3:torture:delete: remove an else, reducing indentation
Michael Adam [Wed, 8 Aug 2012 10:19:31 +0000 (12:19 +0200)]
s3:torture:delete: remove an else, reducing indentation

11 years agos3:torture:delete: remove an else, reducing indentation
Michael Adam [Wed, 8 Aug 2012 10:17:29 +0000 (12:17 +0200)]
s3:torture:delete: remove an else, reducing indentation

11 years agos3:torture:delete: remove an else, reducing indentation
Michael Adam [Wed, 8 Aug 2012 09:27:55 +0000 (11:27 +0200)]
s3:torture:delete: remove an else, reducing indentation

11 years agos3:torture:delete: remove an else, reducing indentation
Michael Adam [Wed, 8 Aug 2012 10:15:16 +0000 (12:15 +0200)]
s3:torture:delete: remove an else, reducing indentation

11 years agos3:torture:delete: really fail the test in a failure case
Michael Adam [Wed, 8 Aug 2012 10:14:36 +0000 (12:14 +0200)]
s3:torture:delete: really fail the test in a failure case

11 years agos3:torture:delete: fix a comment
Michael Adam [Wed, 8 Aug 2012 10:06:13 +0000 (12:06 +0200)]
s3:torture:delete: fix a comment

11 years agos3:torture:delete: fix a message
Michael Adam [Wed, 8 Aug 2012 10:05:53 +0000 (12:05 +0200)]
s3:torture:delete: fix a message

11 years agos3:torture:delete: fix a message
Michael Adam [Wed, 8 Aug 2012 10:05:38 +0000 (12:05 +0200)]
s3:torture:delete: fix a message

11 years agos3:torture:delete: fix a message
Michael Adam [Wed, 8 Aug 2012 09:56:48 +0000 (11:56 +0200)]
s3:torture:delete: fix a message

11 years agos3:torture:delete: fix a message (counting the opens)
Michael Adam [Wed, 8 Aug 2012 09:24:55 +0000 (11:24 +0200)]
s3:torture:delete: fix a message (counting the opens)

11 years agos3:torture:delete: untangle function call from result check
Michael Adam [Wed, 8 Aug 2012 18:07:38 +0000 (20:07 +0200)]
s3:torture:delete: untangle function call from result check

11 years agos3:torture:delete: untangle function call from result check
Michael Adam [Wed, 8 Aug 2012 10:18:55 +0000 (12:18 +0200)]
s3:torture:delete: untangle function call from result check

11 years agos3:torture:delete: untangle function call from result check
Michael Adam [Wed, 8 Aug 2012 10:18:16 +0000 (12:18 +0200)]
s3:torture:delete: untangle function call from result check

11 years agos3:torture:delete: untanlge function call from result check
Michael Adam [Wed, 8 Aug 2012 10:07:29 +0000 (12:07 +0200)]
s3:torture:delete: untanlge function call from result check

11 years agos3:torture:delete: untangle function call from result check
Michael Adam [Wed, 8 Aug 2012 09:58:24 +0000 (11:58 +0200)]
s3:torture:delete: untangle function call from result check

11 years agos3:torture:delete: untangle function call from result check
Michael Adam [Wed, 8 Aug 2012 09:58:01 +0000 (11:58 +0200)]
s3:torture:delete: untangle function call from result check

11 years agos3:torture:delete: untangle function call from result check
Michael Adam [Wed, 8 Aug 2012 09:57:33 +0000 (11:57 +0200)]
s3:torture:delete: untangle function call from result check

11 years agos3:torture:delete: untangle function call from result check
Michael Adam [Wed, 8 Aug 2012 09:57:03 +0000 (11:57 +0200)]
s3:torture:delete: untangle function call from result check

11 years agos3:torture:delete: untangle function call from result check
Michael Adam [Wed, 8 Aug 2012 09:56:17 +0000 (11:56 +0200)]
s3:torture:delete: untangle function call from result check