kai/samba.git
11 years agos3-pylibsmb: Factor out py_tevent_cond_signal
Volker Lendecke [Sat, 22 Sep 2012 17:40:06 +0000 (10:40 -0700)]
s3-pylibsmb: Factor out py_tevent_cond_signal

11 years agos3-pylibsmb: Reduce the number of warnings
Volker Lendecke [Sat, 22 Sep 2012 17:38:46 +0000 (10:38 -0700)]
s3-pylibsmb: Reduce the number of warnings

11 years agos3: Convert cli_oplock_break_waiter to smbXcli
Volker Lendecke [Sat, 22 Sep 2012 16:57:47 +0000 (18:57 +0200)]
s3: Convert cli_oplock_break_waiter to smbXcli

11 years agos3: Add "readdir" to pylibsmb
Volker Lendecke [Mon, 20 Aug 2012 12:38:42 +0000 (14:38 +0200)]
s3: Add "readdir" to pylibsmb

11 years agos3: Fix some nonempty line endings
Volker Lendecke [Tue, 18 Sep 2012 23:19:07 +0000 (16:19 -0700)]
s3: Fix some nonempty line endings

11 years agos3-pylibsmb: move py_tevent_req_wait_exc up in the file
Christian Ambach [Sun, 16 Sep 2012 18:39:26 +0000 (11:39 -0700)]
s3-pylibsmb: move py_tevent_req_wait_exc up in the file

this is needed to be able to use it in other functions and
spares the prototype

Pair-Programmed-With: Volker Lendecke <vl@samba.org>

11 years agos3-pylibsmb: Factor out py_tevent_cond_wait
Volker Lendecke [Fri, 21 Sep 2012 19:05:04 +0000 (12:05 -0700)]
s3-pylibsmb: Factor out py_tevent_cond_wait

11 years agobuild: Remove unused define UNIXWARE
Andrew Bartlett [Sun, 23 Sep 2012 04:37:24 +0000 (14:37 +1000)]
build: Remove unused define UNIXWARE

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sun Sep 23 08:33:02 CEST 2012 on sn-devel-104

11 years agolib/replace: Remove unused nap and therefore the SCO define
Andrew Bartlett [Sun, 23 Sep 2012 04:35:58 +0000 (14:35 +1000)]
lib/replace: Remove unused nap and therefore the SCO define

In any case, the Samba Team stopped supporting SCO systems a long time ago.

Andrew Bartlett

11 years agobuild: Make waf configure match autoconf for HPUX ACLs
Andrew Bartlett [Sun, 23 Sep 2012 04:30:37 +0000 (14:30 +1000)]
build: Make waf configure match autoconf for HPUX ACLs

11 years agobuild: Rework waf STAT_ST_BLOCKSIZE to match autoconf, with 512 as the default
Andrew Bartlett [Sun, 23 Sep 2012 04:30:10 +0000 (14:30 +1000)]
build: Rework waf STAT_ST_BLOCKSIZE to match autoconf, with 512 as the default

The autoconf build simply has 512 as the default, without a warning.  Rather than
enumerate every OS ever made, just handle the known exceptions.

Andrew Bartlett

11 years agolib/util: Remove unbuilt file util_getent.c and BROKEN_GETGRNAM
Andrew Bartlett [Sun, 23 Sep 2012 04:25:00 +0000 (14:25 +1000)]
lib/util: Remove unbuilt file util_getent.c and BROKEN_GETGRNAM

Removing this unbuilt file allows removing BROKEN_GETGRNAM which was only
ever defined per-OS, not based on an actual test.

Andrew Bartlett

11 years agobuild: Remove unused IRIX and IRIX6 defines
Andrew Bartlett [Sun, 23 Sep 2012 03:57:44 +0000 (13:57 +1000)]
build: Remove unused IRIX and IRIX6 defines

11 years agolib/replace: Try to fix build on HP-UX for os2_delete test
Andrew Bartlett [Sun, 23 Sep 2012 03:39:01 +0000 (13:39 +1000)]
lib/replace: Try to fix build on HP-UX for os2_delete test

The issue is that this file is both used in an autoconf test, and
later in a smbtorture test.  Because os2_delete.c does not include
replace.h, bool may not be defined.

So, instead we shift the need for bool to a different header.

(The readdir tests in repdir.m4 are not yet in the waf configure).

Andrew Bartlett

11 years agontdb: Try to fix the build on Solaris which does not have err
Andrew Bartlett [Sun, 23 Sep 2012 03:20:45 +0000 (13:20 +1000)]
ntdb: Try to fix the build on Solaris which does not have err

11 years agos4:torture:smb2: add a durable-open.read-only test
Michael Adam [Fri, 7 Sep 2012 10:09:13 +0000 (12:09 +0200)]
s4:torture:smb2: add a durable-open.read-only test

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Sep 23 05:47:30 CEST 2012 on sn-devel-104

11 years agoscript/autobuild.py: remove --rebase-master and --push-master options
Stefan Metzmacher [Sat, 22 Sep 2012 22:50:48 +0000 (00:50 +0200)]
script/autobuild.py: remove --rebase-master and --push-master options

You should explicitly pass the urls to --rebase= and --pushto=

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sun Sep 23 02:53:56 CEST 2012 on sn-devel-104

11 years agos3:vfs_fake_acls fix a compiler warning
Christian Ambach [Sat, 22 Sep 2012 20:33:02 +0000 (13:33 -0700)]
s3:vfs_fake_acls fix a compiler warning

about acl being potentially uninitialized

Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Sun Sep 23 01:08:39 CEST 2012 on sn-devel-104

11 years agos3:winbindd fix a compiler warning
Christian Ambach [Sat, 22 Sep 2012 20:32:00 +0000 (13:32 -0700)]
s3:winbindd fix a compiler warning

about result being potentially uninitialized

11 years agoscript/autobuild.py: add --log-base option
Stefan Metzmacher [Sat, 22 Sep 2012 00:40:19 +0000 (02:40 +0200)]
script/autobuild.py: add --log-base option

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep 22 23:21:59 CEST 2012 on sn-devel-104

11 years agoscript/autobuild.py: add log_base variable to avoid hardcoded values
Stefan Metzmacher [Sat, 22 Sep 2012 00:34:38 +0000 (02:34 +0200)]
script/autobuild.py: add log_base variable to avoid hardcoded values

metze

11 years agoscript/autobuild.py: add --branch option
Stefan Metzmacher [Sat, 22 Sep 2012 00:26:10 +0000 (02:26 +0200)]
script/autobuild.py: add --branch option

metze

11 years agoscript/autobuild.py: use some variables for push_remote and push_branch
Stefan Metzmacher [Sat, 22 Sep 2012 00:18:11 +0000 (02:18 +0200)]
script/autobuild.py: use some variables for push_remote and push_branch

metze

11 years agoscript/autobuild.py: use some variables for rebase_remote and rebase_branch
Stefan Metzmacher [Fri, 21 Sep 2012 22:23:21 +0000 (00:23 +0200)]
script/autobuild.py: use some variables for rebase_remote and rebase_branch

metze

11 years agoselftest: skip the samba4.smb2.compound testsuite
Michael Adam [Sat, 22 Sep 2012 17:07:51 +0000 (19:07 +0200)]
selftest: skip the samba4.smb2.compound testsuite

Too many tests are starting but never finish.

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Sat Sep 22 20:50:06 CEST 2012 on sn-devel-104

11 years agos3:smbd:smb2: initialize variable in vfs_default_durable_reconnect()
Michael Adam [Fri, 21 Sep 2012 20:56:20 +0000 (22:56 +0200)]
s3:smbd:smb2: initialize variable in vfs_default_durable_reconnect()

Found by Ambi's state-of-the-art compiler!

11 years agoselftest: we fail samba3.smb2.compound.interim2
Michael Adam [Thu, 20 Sep 2012 18:46:53 +0000 (20:46 +0200)]
selftest: we fail samba3.smb2.compound.interim2

We currently return NT_STATUS_CANCELLED where we should
return NT_STATUS_INTERNAL_ERROR.

11 years agos4:torture:smb2:compound: remove two unused macros
Michael Adam [Wed, 19 Sep 2012 22:43:54 +0000 (00:43 +0200)]
s4:torture:smb2:compound: remove two unused macros

11 years agos4:torture:smb2: don't skip the compound.interim2 test for non win7/win2k8
Michael Adam [Wed, 19 Sep 2012 22:41:48 +0000 (00:41 +0200)]
s4:torture:smb2: don't skip the compound.interim2 test for non win7/win2k8

11 years agos4:torture:smb2: don't skip the compound.interim1 test for non win7/win2k8
Michael Adam [Wed, 19 Sep 2012 22:41:04 +0000 (00:41 +0200)]
s4:torture:smb2: don't skip the compound.interim1 test for non win7/win2k8

11 years agos3:smbd: remove struct member smbd_smb2_request.cancelled - it was only written
Michael Adam [Sat, 22 Sep 2012 00:05:18 +0000 (02:05 +0200)]
s3:smbd: remove struct member smbd_smb2_request.cancelled - it was only written

11 years agos3:smb2_lock: let smbd_smb2_create_cancel() trigger NT_STATUS_CANCELED
Stefan Metzmacher [Thu, 20 Sep 2012 14:16:03 +0000 (16:16 +0200)]
s3:smb2_lock: let smbd_smb2_create_cancel() trigger NT_STATUS_CANCELED

Instead of violating the tevent_req layers.

metze

11 years agos3:smb2_lock: smbd_smb2_notify_recv() can already return NT_STATUS_CANCELED
Stefan Metzmacher [Thu, 20 Sep 2012 14:16:03 +0000 (16:16 +0200)]
s3:smb2_lock: smbd_smb2_notify_recv() can already return NT_STATUS_CANCELED

That's why we can remove the code that violates the tevent_req layers.

metze

11 years agos3:smb2_notify: make use of tevent_req_defer_callback() instead of custom tevent_imme...
Stefan Metzmacher [Thu, 20 Sep 2012 14:25:58 +0000 (16:25 +0200)]
s3:smb2_notify: make use of tevent_req_defer_callback() instead of custom tevent_immediate

metze

11 years agos3:smb2_notify: don't call tevent_req_done() from smbd_smb2_notify_cancel()
Stefan Metzmacher [Thu, 20 Sep 2012 14:23:26 +0000 (16:23 +0200)]
s3:smb2_notify: don't call tevent_req_done() from smbd_smb2_notify_cancel()

smbd_notify_cancel_by_smbreq() will already trigger this via
smbd_smb2_notify_reply() and smbd_smb2_notify_reply_trigger().

metze

11 years agos3:smb2_lock: let smbd_smb2_lock_cancel() trigger NT_STATUS_CANCELED
Stefan Metzmacher [Thu, 20 Sep 2012 14:16:03 +0000 (16:16 +0200)]
s3:smb2_lock: let smbd_smb2_lock_cancel() trigger NT_STATUS_CANCELED

Instead of violating the tevent_req layers.

metze

11 years agos3:smb2_server: avoid segfault in smbd_smb2_request_pending_queue()
Stefan Metzmacher [Thu, 20 Sep 2012 14:04:01 +0000 (16:04 +0200)]
s3:smb2_server: avoid segfault in smbd_smb2_request_pending_queue()

Because we should not call smbd_smb2_request_error() on an
request that is still running.

If the subreq implementes a cancel function, this should
take care of triggering smbd_smb2_request_error.

metze

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agos4:torture:smb2: extend the compound.invalid1 test
Stefan Metzmacher [Fri, 21 Sep 2012 20:20:20 +0000 (22:20 +0200)]
s4:torture:smb2: extend the compound.invalid1 test

Test that when turning the related flag back off for the
last compound request, the return code changes from
invalid parameter to file closed.

Pair-Programmed-With: Michael Adam <obnox@samba.org>

11 years agos3:smbd:smb2: simplify smbd_smb2_request_validate() and smbd_smb2_request_dispatch()
Michael Adam [Fri, 21 Sep 2012 19:43:36 +0000 (21:43 +0200)]
s3:smbd:smb2: simplify smbd_smb2_request_validate() and smbd_smb2_request_dispatch()

removes unnneccary checks/assignments for compound_related and next_status
and duplicate setting of error status.

And remove (now) unused next_status from struct smbd_smb2_request.

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

11 years agos3:smbd:smb2: add check for session_status for compound requests
Michael Adam [Sat, 22 Sep 2012 02:06:27 +0000 (04:06 +0200)]
s3:smbd:smb2: add check for session_status for compound requests

11 years agos3:smb2_server: do the req->next_status check before the signing checks
Stefan Metzmacher [Wed, 19 Sep 2012 22:52:19 +0000 (00:52 +0200)]
s3:smb2_server: do the req->next_status check before the signing checks

Windows 2012 returns NT_STATUS_INVALID_PARAMETER to
the smb2.compound.invalid1 test if that uses signing
(instead of NT_STATUS_ACCESS_DENIED).

metze

11 years agos3:smb2_server: reset req->last_session_id and req->last_tid after using it
Stefan Metzmacher [Thu, 20 Sep 2012 03:10:28 +0000 (05:10 +0200)]
s3:smb2_server: reset req->last_session_id and req->last_tid after using it

If we can find a valid session or tcon we'll set it after the lookup,
but it need to make sure to reset it if we don't find the session.

This fixes a problem where a compound unrelated request between
related requests doesn't reset the session.

If we have 3 requests in a compound chain, request 3 should never
use the id's cached from request 1. It should only every inherit
handles from request 2.

metze

11 years agos4:torture:smb2: fix the compound.invalid3 test to work against windows
Michael Adam [Wed, 19 Sep 2012 22:36:29 +0000 (00:36 +0200)]
s4:torture:smb2: fix the compound.invalid3 test to work against windows

11 years agos4:torture:smb2: fix compound.related3 test to work against windows
Michael Adam [Wed, 19 Sep 2012 22:35:52 +0000 (00:35 +0200)]
s4:torture:smb2: fix compound.related3 test to work against windows

11 years agos3: Compound requests should continue processing.
Ira Cooper [Wed, 19 Sep 2012 18:39:07 +0000 (18:39 +0000)]
s3: Compound requests should continue processing.

This patch addresses #9173.

Signed-off-by: Michael Adam <obnox@samba.org>
11 years agobuild: Fix enabled handling for HAVE_LDAP, we need to use bld.CONFIG_SET
Andrew Bartlett [Sat, 22 Sep 2012 05:27:24 +0000 (22:27 -0700)]
build: Fix enabled handling for HAVE_LDAP, we need to use bld.CONFIG_SET

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Sep 22 09:09:17 CEST 2012 on sn-devel-104

11 years agobuild: Try not build with LDAP if we do not have ldap.h
Andrew Bartlett [Sat, 22 Sep 2012 04:57:22 +0000 (21:57 -0700)]
build: Try not build with LDAP if we do not have ldap.h

11 years agos4:dns.py: reproducer for (bug #9184)
Stefan Metzmacher [Fri, 21 Sep 2012 21:06:13 +0000 (23:06 +0200)]
s4:dns.py: reproducer for (bug #9184)

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Sat Sep 22 06:08:05 CEST 2012 on sn-devel-104

11 years agolib/tsocket: fix receiving of udp packets from 0 bytes (bug #9184)
Stefan Metzmacher [Fri, 21 Sep 2012 20:54:26 +0000 (22:54 +0200)]
lib/tsocket: fix receiving of udp packets from 0 bytes (bug #9184)

It's possible for a client to send 0 bytes in a UDP packet,
we need still need to call recvfrom() and skip the invalid
packet at a higher level. Otherwise the kernel receive queue
is blocked.

metze

11 years agolibcli/echo: validate the message length
Stefan Metzmacher [Fri, 21 Sep 2012 20:18:10 +0000 (22:18 +0200)]
libcli/echo: validate the message length

metze

11 years agos3:pdb_ldap remove unused function
Christian Ambach [Fri, 21 Sep 2012 20:54:47 +0000 (13:54 -0700)]
s3:pdb_ldap remove unused function

Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Sat Sep 22 04:28:37 CEST 2012 on sn-devel-104

11 years agos3:rpcclient fix a compiler warning
Christian Ambach [Fri, 21 Sep 2012 21:00:53 +0000 (14:00 -0700)]
s3:rpcclient fix a compiler warning

11 years agos3:utils/net fix a compiler warning
Christian Ambach [Fri, 21 Sep 2012 20:58:29 +0000 (13:58 -0700)]
s3:utils/net fix a compiler warning

ret might be used uninitialized in out-of-memory condition

11 years agoauth/kerberos: add HAVE_KRB5 guard to fix non-krb5 build after winbindd pac changes
Andrew Bartlett [Fri, 21 Sep 2012 22:59:11 +0000 (15:59 -0700)]
auth/kerberos: add HAVE_KRB5 guard to fix non-krb5 build after winbindd pac changes

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Sat Sep 22 02:44:07 CEST 2012 on sn-devel-104

11 years agos3:smbd: release the share mode lock before calling exit_server() (bug #9191)
Stefan Metzmacher [Fri, 21 Sep 2012 18:36:16 +0000 (20:36 +0200)]
s3:smbd: release the share mode lock before calling exit_server() (bug #9191)

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Sep 21 22:36:57 CEST 2012 on sn-devel-104

11 years agos3:dbwrap_ctdb: set errno = ENOSYS if clustering is not supported
Gregor Beck [Tue, 8 Nov 2011 15:06:56 +0000 (16:06 +0100)]
s3:dbwrap_ctdb: set errno = ENOSYS if clustering is not supported

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Sep 21 18:05:56 CEST 2012 on sn-devel-104

11 years agolibtorture: factor out simple ui backend
Gregor Beck [Tue, 18 Oct 2011 11:15:22 +0000 (13:15 +0200)]
libtorture: factor out simple ui backend

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3:dbwrap: remove unused args from db_open_file()
Gregor Beck [Tue, 25 Oct 2011 12:51:23 +0000 (14:51 +0200)]
s3:dbwrap: remove unused args from db_open_file()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3:dbwrap: let dbwrap_fetch_uint32 distinguish between "not found" and "wrong format"
Gregor Beck [Tue, 25 Oct 2011 07:33:05 +0000 (09:33 +0200)]
s3:dbwrap: let dbwrap_fetch_uint32 distinguish between "not found" and "wrong format"

Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agodynconfig/config.m4: disallow --prefix=/usr and --prefix=/usr/local without --enable-fhs
Stefan Metzmacher [Wed, 18 Jan 2012 07:33:37 +0000 (08:33 +0100)]
dynconfig/config.m4: disallow --prefix=/usr and --prefix=/usr/local without --enable-fhs

This matches the waf configure behavior and catches the case where old build
scripts try '--with-fhs' instead of '--enable-fhs'.

metze

11 years agolibwbclient: bump ABI to 0.11 as wbcAuthenticateUserEx now provides PAC parsing
Andrew Bartlett [Fri, 21 Sep 2012 02:46:31 +0000 (19:46 -0700)]
libwbclient: bump ABI to 0.11 as wbcAuthenticateUserEx now provides PAC parsing

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Sep 21 06:37:15 CEST 2012 on sn-devel-104

11 years agos4-torture: Complete test for winbindd PAC parsing
Christof Schmitt [Fri, 21 Sep 2012 01:30:07 +0000 (18:30 -0700)]
s4-torture: Complete test for winbindd PAC parsing

Decode the PAC through the wbcAuthenticateUserEx call, also decode it
locally and compare the result.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agoauth/kerberos: Adjust log level for failed PAC signature verification
Christof Schmitt [Mon, 30 Jul 2012 18:03:54 +0000 (11:03 -0700)]
auth/kerberos: Adjust log level for failed PAC signature verification

With winbindd trying to verify the signature of an application provided
PAC, this message can be easily triggered. Adjust the debug level to
avoid filling up the logs.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agowinbind: Extend wbcAuthenticateUserEx to provide PAC
Christof Schmitt [Wed, 18 Jul 2012 21:38:47 +0000 (14:38 -0700)]
winbind: Extend wbcAuthenticateUserEx to provide PAC

With this new interface, external applications that have authenticated
to an ADS can pass the PAC from the Kerberos ticket to
wbcAuthenticateUserEx. winbindd decodes and extracts the info3
information for the external application. If winbindd can verify the PAC
signature, the info3 from the PACis also added to the netsamlogon_cache.

The info3 data can be used by the external application to get the uid
and primary gid. The data in netsamlogon_cache allows to retrieve the
complete group list through the NSS function getgrouplist.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agoauth: Fix some nonempty blank lines
Volker Lendecke [Tue, 18 Sep 2012 17:34:48 +0000 (10:34 -0700)]
auth: Fix some nonempty blank lines

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
11 years agowaf: Make samba "ok" with directories for install being symlinks
Ira Cooper [Thu, 20 Sep 2012 19:38:12 +0000 (19:38 +0000)]
waf: Make samba "ok" with directories for install being symlinks

stat -> lstat conversion.  This allows people for whom $PREFIX/var is a
symlink to complete make install.

Autobuild-User(master): Ira Cooper <ira@samba.org>
Autobuild-Date(master): Thu Sep 20 23:26:26 CEST 2012 on sn-devel-104

11 years agovfs: fix acl_blob_get* in vfs_full_audit
David Disseldorp [Thu, 20 Sep 2012 06:35:27 +0000 (08:35 +0200)]
vfs: fix acl_blob_get* in vfs_full_audit

Plumb-in functions and use correct return types.

Autobuild-User(master): David Disseldorp <ddiss@samba.org>
Autobuild-Date(master): Thu Sep 20 20:42:09 CEST 2012 on sn-devel-104

11 years agovfs: fix lock logging in vfs_full_audit
David Disseldorp [Thu, 20 Sep 2012 06:20:57 +0000 (08:20 +0200)]
vfs: fix lock logging in vfs_full_audit

11 years agoCorrect command help message
Daniele Dario [Thu, 20 Sep 2012 13:05:13 +0000 (15:05 +0200)]
Correct command help message

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Sep 20 16:55:17 CEST 2012 on sn-devel-104

11 years agos3-printing: Increase debug level for info that the db is empty.
Andreas Schneider [Thu, 20 Sep 2012 08:20:31 +0000 (10:20 +0200)]
s3-printing: Increase debug level for info that the db is empty.

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Sep 20 12:01:48 CEST 2012 on sn-devel-104

11 years agos3:smb2_server: fix usage of invalid memory in smb2_signing_check_pdu()
Stefan Metzmacher [Wed, 19 Sep 2012 22:42:02 +0000 (00:42 +0200)]
s3:smb2_server: fix usage of invalid memory in smb2_signing_check_pdu()

metze

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Sep 20 07:18:31 CEST 2012 on sn-devel-104

11 years agos3:winbind:idmap_tdb_common: improve readability of assignment by adding an "if"
Michael Adam [Wed, 19 Sep 2012 00:57:37 +0000 (02:57 +0200)]
s3:winbind:idmap_tdb_common: improve readability of assignment by adding an "if"

in idmap_tdb_common_sids_to_unixids()

11 years agos3:winbind:idmap_tdb_common: improve readability of assignment by adding an "if"
Michael Adam [Wed, 19 Sep 2012 00:57:37 +0000 (02:57 +0200)]
s3:winbind:idmap_tdb_common: improve readability of assignment by adding an "if"

in idmap_tdb_common_unixids_to_sids()

11 years agos3: Fix idmap_hash
Volker Lendecke [Tue, 18 Sep 2012 22:31:26 +0000 (15:31 -0700)]
s3: Fix idmap_hash

Calling be_init with NULL safely crashes, because we dereference NULL. We
don't need to call it here, this is called in all workers anyway. Thanks
to Jiri Sasek <jiri.sasek@oracle.com> for finding this.

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Sep 20 05:03:54 CEST 2012 on sn-devel-104

11 years agoselftest: we currently fail smb2.durable-v2-open.app-instance
Michael Adam [Fri, 7 Sep 2012 14:42:37 +0000 (16:42 +0200)]
selftest: we currently fail smb2.durable-v2-open.app-instance

Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Sep 19 23:05:43 CEST 2012 on sn-devel-104

11 years agos4:torture:smb2: add a new test durable-v2-open.app-instance
Michael Adam [Fri, 7 Sep 2012 12:30:07 +0000 (14:30 +0200)]
s4:torture:smb2: add a new test durable-v2-open.app-instance

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

11 years agos4:libci: add a SMB2_CREATE_APP_INSTANCE_ID blob to the request if the in.app_instanc...
Michael Adam [Fri, 7 Sep 2012 10:06:36 +0000 (12:06 +0200)]
s4:libci: add a SMB2_CREATE_APP_INSTANCE_ID blob to the request if the in.app_instance_id is present

11 years agos4:libcli: add a app_instance_id member to the smb2_create input struct
Michael Adam [Fri, 7 Sep 2012 10:06:05 +0000 (12:06 +0200)]
s4:libcli: add a app_instance_id member to the smb2_create input struct

11 years agolibcli: add a define for the APP_INSTANCE_ID smb2 create context
Michael Adam [Fri, 7 Sep 2012 10:05:24 +0000 (12:05 +0200)]
libcli: add a define for the APP_INSTANCE_ID smb2 create context

11 years agos4:torture/smb2: improve the smb2.create.blob test
Stefan Metzmacher [Wed, 19 Sep 2012 19:18:46 +0000 (21:18 +0200)]
s4:torture/smb2: improve the smb2.create.blob test

metze

11 years agolibcli/smb: fix padding in smb2_create_blob*
Stefan Metzmacher [Wed, 19 Sep 2012 06:11:23 +0000 (08:11 +0200)]
libcli/smb: fix padding in smb2_create_blob*

metze

11 years agopam_winbind: match more return codes when wbcGetPwnam has failed.
Günther Deschner [Wed, 19 Sep 2012 08:59:50 +0000 (10:59 +0200)]
pam_winbind: match more return codes when wbcGetPwnam has failed.

This is required to properly return PAM_USER_UNKNOWN in case winbind had a
problem.

Guenther

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Sep 19 15:06:10 CEST 2012 on sn-devel-104

11 years agos3: Use SBVAL in put_long_date_timespec
Volker Lendecke [Tue, 18 Sep 2012 21:35:39 +0000 (14:35 -0700)]
s3: Use SBVAL in put_long_date_timespec

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Sep 19 01:16:25 CEST 2012 on sn-devel-104

11 years agos3: Fix some nonempty line endings
Volker Lendecke [Tue, 18 Sep 2012 18:56:03 +0000 (11:56 -0700)]
s3: Fix some nonempty line endings

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Sep 18 22:39:07 CEST 2012 on sn-devel-104

11 years agoreplace: fix 520c9b0b0ae33
Björn Jacke [Tue, 18 Sep 2012 12:04:06 +0000 (14:04 +0200)]
replace: fix 520c9b0b0ae33

fix typo in ifdef. Thanks to Joachim Schmitz for spotting this!

Autobuild-User(master): Björn Jacke <bj@sernet.de>
Autobuild-Date(master): Tue Sep 18 16:06:18 CEST 2012 on sn-devel-104

11 years agoquota: add supprt for gfs2
Björn Jacke [Tue, 18 Sep 2012 11:57:30 +0000 (13:57 +0200)]
quota: add supprt for gfs2

gfs2 uses the same generic quota interface as xfs and it has the same base
block/quota block size ratio and seems to work nice with the xfs quota module.

(People using gfs should be aware that quota reporting is lagging quite a bit
on gfs.  If you copy a file on a gfs volume the quota values are being updated
with a delay of 30s here with kernel 3.5. This reporting can lead to data
corruption if a client thinks he can write but actually he suddently can't.)

11 years agoRHEL packaging: Try to fix makerpms.sh on RHEL.
Karolin Seeger [Tue, 18 Sep 2012 09:08:17 +0000 (11:08 +0200)]
RHEL packaging: Try to fix makerpms.sh on RHEL.

Address bug #9165 - makerpms.sh can't create package fo RHEL.

Karolin

Autobuild-User(master): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(master): Tue Sep 18 12:51:01 CEST 2012 on sn-devel-104

11 years agopanic action is defined as GLOBAL_VAR(szPanicAction) not GLOBAL_VAR(panic_action)
Matthieu Patou [Mon, 17 Sep 2012 23:51:02 +0000 (16:51 -0700)]
panic action is defined as GLOBAL_VAR(szPanicAction) not GLOBAL_VAR(panic_action)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Tue Sep 18 06:12:00 CEST 2012 on sn-devel-104

11 years agopackaging/RHEL-CTDB: add "BUILD_GPFS=no configure.rpm" and "BUILD_GPFS=no makerpms.sh"
Stefan Metzmacher [Mon, 17 Sep 2012 16:15:03 +0000 (18:15 +0200)]
packaging/RHEL-CTDB: add "BUILD_GPFS=no configure.rpm" and "BUILD_GPFS=no makerpms.sh"

metze

11 years agopackaging/RHEL-CTDB: try harder to set $RPMVER
Stefan Metzmacher [Mon, 17 Sep 2012 16:15:03 +0000 (18:15 +0200)]
packaging/RHEL-CTDB: try harder to set $RPMVER

metze

11 years agopackaging/RHEL-CTDB: fix the build
Stefan Metzmacher [Mon, 17 Sep 2012 16:15:03 +0000 (18:15 +0200)]
packaging/RHEL-CTDB: fix the build

metze

11 years agosource3/script: fix installman.sh after the last build-manpages-nogit change
Michael Adam [Tue, 18 Sep 2012 00:30:27 +0000 (20:30 -0400)]
source3/script: fix installman.sh after the last build-manpages-nogit change

    commit cfdab79729e8507a7504b0224c60454d3bc40ffc
    Author: Michael Adam <obnox@samba.org>
    Date:   Wed Sep 12 15:46:35 2012 +0200

        release-scripts: let build-manpages-nogit store generated docs under ./bin/docs

        not under ./docs

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agoFix service control for non-internal services.
Vladimir Marek [Mon, 17 Sep 2012 20:50:55 +0000 (13:50 -0700)]
Fix service control for non-internal services.

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Sep 18 01:42:23 CEST 2012 on sn-devel-104

11 years agolibreplace: Bug 8107, Fix poll replacement to become a msleep replacement
Joachim Schmitz [Mon, 17 Sep 2012 12:26:31 +0000 (05:26 -0700)]
libreplace: Bug 8107, Fix poll replacement to become a msleep replacement

Signed-off-by: Jeremy Allison <jra@samba.org>
11 years agoldb: bump version to 1.1.13 so the 4.0 release can get the isprint fix save-diskspace-tags/ldb-1.1.13
Andrew Bartlett [Mon, 17 Sep 2012 18:57:33 +0000 (11:57 -0700)]
ldb: bump version to 1.1.13 so the 4.0 release can get the isprint fix

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Mon Sep 17 23:47:57 CEST 2012 on sn-devel-104

11 years agodocs: Remove another reference to security=share
Andrew Bartlett [Mon, 17 Sep 2012 18:56:28 +0000 (11:56 -0700)]
docs: Remove another reference to security=share

11 years agodocs: Remove references to specific windows versions, instead mention Home/Profession...
Andrew Bartlett [Mon, 17 Sep 2012 18:56:08 +0000 (11:56 -0700)]
docs: Remove references to specific windows versions, instead mention Home/Professional/Server

The flavours of windows seem to last longer than the individual products.

Andrew Bartlett

11 years agodocs: Remove references to mulitple passdb backends
Andrew Bartlett [Mon, 17 Sep 2012 18:55:12 +0000 (11:55 -0700)]
docs: Remove references to mulitple passdb backends

These are long-gone and confusing.

Andrew Bartlett

11 years agodocs: Remove references to sysv-style CUPS from TOSHARG-CUPS-printing
Andrew Bartlett [Mon, 17 Sep 2012 18:54:25 +0000 (11:54 -0700)]
docs: Remove references to sysv-style CUPS from TOSHARG-CUPS-printing

This also simplifies the cups config by not duplicating the printcap name parameter
that is already set by default when printing=cups is set.

Andrew Bartlett

11 years agodocs: Remove very outdated TOSHARG-Other-Clients section
Andrew Bartlett [Sat, 15 Sep 2012 22:55:55 +0000 (15:55 -0700)]
docs: Remove very outdated TOSHARG-Other-Clients section