kai/samba-autobuild/.git
8 years agopidl/NDR/Parser: declare all union helper variables in ParseUnionPull()
Stefan Metzmacher [Thu, 15 Mar 2012 12:09:51 +0000 (13:09 +0100)]
pidl/NDR/Parser: declare all union helper variables in ParseUnionPull()

metze

8 years agos3: Use talloc_get_size instead of strlen
Volker Lendecke [Sat, 7 Apr 2012 12:17:25 +0000 (14:17 +0200)]
s3: Use talloc_get_size instead of strlen

We've just talloc_asprintf'ed the fullpath, so talloc_get_size knows the
strlen.

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Tue Apr 10 13:20:22 CEST 2012 on sn-devel-104

8 years agoldb-tools: Place the whole of an ldif file in a transaction ldb-1.1.5
Andrew Bartlett [Wed, 4 Apr 2012 05:17:32 +0000 (15:17 +1000)]
ldb-tools: Place the whole of an ldif file in a transaction

This ensures that when operating ldbadd and ldbmodify against local
ldb files, either an ldif file succeeds or fails as a whole.

Also tests to verify that this is working correctly, and an ABI bump
due to the extra (private, but exported to ldb* tools) symbol and
behaviour change.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Apr 10 11:14:43 CEST 2012 on sn-devel-104

8 years agoldb: Allow access to the line number while reading ldif from a file
Andrew Bartlett [Tue, 10 Apr 2012 07:29:11 +0000 (17:29 +1000)]
ldb: Allow access to the line number while reading ldif from a file

8 years agoldb: Detect failures in ldb.base again
Andrew Bartlett [Wed, 4 Apr 2012 08:52:25 +0000 (18:52 +1000)]
ldb: Detect failures in ldb.base again

We need to wrap the ldb tests in the subunit blackbox helpers.

We also needed to change to the right directory, or else the :< file://
syntax check does not work, as samba4.png is not found.

Andrew Bartlett

8 years agoRevert "ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl function"
Andrew Bartlett [Wed, 4 Apr 2012 02:51:00 +0000 (12:51 +1000)]
Revert "ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl function"

This reverts commit 40a4aea8918c2637703af03383f440d068820e48.

Autocommit is important, as otherwise an ldb module could error out
during an operation, and leave an corrupt database.

Andrew Bartlett

8 years agoOn advice from Jelmer and Andrew, move the blksize_t and blkcnt_t tests into librepla...
Jeremy Allison [Mon, 9 Apr 2012 22:31:23 +0000 (15:31 -0700)]
On advice from Jelmer and Andrew, move the blksize_t and blkcnt_t tests into libreplace to make it standalone.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Tue Apr 10 04:07:11 CEST 2012 on sn-devel-104

8 years agowafsamba/bundled: Fix typo in tuplize_version.
Jelmer Vernooij [Mon, 9 Apr 2012 22:45:20 +0000 (00:45 +0200)]
wafsamba/bundled: Fix typo in tuplize_version.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Apr 10 02:21:39 CEST 2012 on sn-devel-104

8 years agowafsamba: Parse Python versions as integers separated by dots.
Jelmer Vernooij [Mon, 9 Apr 2012 18:05:06 +0000 (20:05 +0200)]
wafsamba: Parse Python versions as integers separated by dots.

This causes tdb "1.2.10" to no longer be considered older than "1.2.9".

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Apr  9 23:16:17 CEST 2012 on sn-devel-104

8 years agoMove blksize_t and blkcnt_t to replace.h from includes.h. Should help with platforms...
Jeremy Allison [Mon, 9 Apr 2012 18:04:07 +0000 (11:04 -0700)]
Move blksize_t and blkcnt_t to replace.h from includes.h. Should help with platforms that don't have these.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Mon Apr  9 21:40:42 CEST 2012 on sn-devel-104

8 years agolibreplace: We have a poll replacement based on select
Volker Lendecke [Sun, 8 Apr 2012 22:44:38 +0000 (00:44 +0200)]
libreplace: We have a poll replacement based on select

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Mon Apr  9 19:39:51 CEST 2012 on sn-devel-104

8 years agotevent: Fix a typo
Volker Lendecke [Sun, 8 Apr 2012 22:40:38 +0000 (00:40 +0200)]
tevent: Fix a typo

8 years agos3: Fix the pthreadpool build on OS/X
Volker Lendecke [Mon, 9 Apr 2012 07:17:29 +0000 (09:17 +0200)]
s3: Fix the pthreadpool build on OS/X

OS/X does not have clock_gettime, and without replace.h we do not
get the replacement macro

8 years agos3: Initialize aio_pending_size from aio_pthread
Volker Lendecke [Sun, 8 Apr 2012 19:49:59 +0000 (21:49 +0200)]
s3: Initialize aio_pending_size from aio_pthread

8 years agos3: Initialize aio_pending_size from aio_pthread
Volker Lendecke [Sun, 8 Apr 2012 19:47:38 +0000 (21:47 +0200)]
s3: Initialize aio_pending_size from aio_pthread

8 years agos3: Move the aio signal init to the vfs module
Volker Lendecke [Sun, 8 Apr 2012 18:11:53 +0000 (20:11 +0200)]
s3: Move the aio signal init to the vfs module

On platforms that don't have an RT signal space, signal initialization
fails. aio_fork and aio_pthread don't need the signal, so this would
block them from running as well.

8 years agoautobuild: Also test a distribution-style build with external libs
Andrew Bartlett [Mon, 9 Apr 2012 04:52:03 +0000 (14:52 +1000)]
autobuild: Also test a distribution-style build with external libs

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Apr  9 10:06:38 CEST 2012 on sn-devel-104

8 years agowafsamba: Return missing libs rather than last syslib.
Jelmer Vernooij [Sun, 8 Apr 2012 01:56:24 +0000 (03:56 +0200)]
wafsamba: Return missing libs rather than last syslib.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Apr  8 05:31:15 CEST 2012 on sn-devel-104

8 years agos3: Compile fix for dbwrap_file.c
Volker Lendecke [Sat, 7 Apr 2012 10:33:32 +0000 (12:33 +0200)]
s3: Compile fix for dbwrap_file.c

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Sat Apr  7 14:10:35 CEST 2012 on sn-devel-104

8 years agoFound whilst back-porting the fix for bug 8837 - smbd crashes when deleting directory...
Jeremy Allison [Fri, 6 Apr 2012 22:35:55 +0000 (15:35 -0700)]
Found whilst back-porting the fix for bug 8837 - smbd crashes when deleting directory and veto files are enabled.

The delete tokens are unique to each name hash representing a pathname,
if we don't correctly return here we'll add duplicate tokens for a
given pasname hash.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Apr  7 02:13:58 CEST 2012 on sn-devel-104

8 years agoBug found by Herb. blkcnt_t st_ex_blksize is defined as a signed value. When it is
Jeremy Allison [Fri, 6 Apr 2012 21:20:12 +0000 (14:20 -0700)]
Bug found by Herb. blkcnt_t st_ex_blksize is defined as a signed value. When it is
on a 32-bit system and defined as a long, then inside vfswrap_get_alloc_size()
we cast to a uint64_t. This sign-extends when converting to unsigned,
so if the high bit of st_ex_blksize is set we return insane values to clients.

8 years agodocs-xml: fix default name resolve order (fix bug #7564)
Björn Baumbach [Wed, 4 Apr 2012 14:58:24 +0000 (16:58 +0200)]
docs-xml: fix default name resolve order (fix bug #7564)

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Fri Apr  6 09:54:37 CEST 2012 on sn-devel-104

8 years agodocs: remove whitespace in example samba.ldif (fix bug #8789)
Björn Baumbach [Wed, 4 Apr 2012 14:41:35 +0000 (16:41 +0200)]
docs: remove whitespace in example samba.ldif (fix bug #8789)

8 years agodocs: add reload-printers command to smbcontrol manual page
Björn Baumbach [Tue, 17 Jan 2012 11:31:17 +0000 (12:31 +0100)]
docs: add reload-printers command to smbcontrol manual page

8 years agos3-utils: add do_reload_printers command to smbcontol
Björn Baumbach [Tue, 10 Jan 2012 15:59:38 +0000 (16:59 +0100)]
s3-utils: add do_reload_printers command to smbcontol

Add command to force smbd to reload printers by sending MSG_PRINTER_PCAP.

8 years agobuild: Remove SMB_OFF_T, replace with off_t
Andrew Bartlett [Thu, 5 Apr 2012 04:53:08 +0000 (14:53 +1000)]
build: Remove SMB_OFF_T, replace with off_t

Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Apr  6 01:47:43 CEST 2012 on sn-devel-104

8 years agos3-build: Remove unused configure checks for xattr functions
Andrew Bartlett [Tue, 3 Apr 2012 22:47:26 +0000 (08:47 +1000)]
s3-build: Remove unused configure checks for xattr functions

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr  5 07:13:29 CEST 2012 on sn-devel-104

8 years agos3-vfs: Remove unused lremovexattr call from VFS modules, system.c and configure
Andrew Bartlett [Tue, 3 Apr 2012 22:46:25 +0000 (08:46 +1000)]
s3-vfs: Remove unused lremovexattr call from VFS modules, system.c and configure

If this is ever needed again, it would be more appropriate as an options argument
to removexattr.

Andrew Bartlett

8 years agos3-build: Remove unused configure checks for xattr functions
Andrew Bartlett [Tue, 3 Apr 2012 22:35:01 +0000 (08:35 +1000)]
s3-build: Remove unused configure checks for xattr functions

8 years agos3-vfs: Remove unused lsetxattr call from VFS modules, system.c and configure
Andrew Bartlett [Tue, 3 Apr 2012 22:34:25 +0000 (08:34 +1000)]
s3-vfs: Remove unused lsetxattr call from VFS modules, system.c and configure

If this is ever needed again, it would be more appropriate as an options argument
to listxattr.

Andrew Bartlett

8 years agos3-vfs: Remove unused llistxattr call from VFS modules, system.c and configure
Andrew Bartlett [Tue, 3 Apr 2012 22:26:22 +0000 (08:26 +1000)]
s3-vfs: Remove unused llistxattr call from VFS modules, system.c and configure

If this is ever needed again, it would be more appropriate as an options argument
to listxattr.

Andrew Bartlett

8 years agos3-vfs: Remove unused lgetxattr call from VFS modules, system.c and configure
Andrew Bartlett [Mon, 2 Apr 2012 02:43:15 +0000 (12:43 +1000)]
s3-vfs: Remove unused lgetxattr call from VFS modules, system.c and configure

8 years agobuild: Add configure summary checking to waf build
Andrew Bartlett [Thu, 5 Apr 2012 00:36:55 +0000 (10:36 +1000)]
build: Add configure summary checking to waf build

When we remove the autoconf build, this can be re-expressed in python, but
for now it is good to share this double-check.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu Apr  5 04:11:45 CEST 2012 on sn-devel-104

8 years agobuild: Fix bitrotted configure summary, we now also test HAVE_IFACE_GETIFADDRS
Andrew Bartlett [Thu, 5 Apr 2012 00:26:29 +0000 (10:26 +1000)]
build: Fix bitrotted configure summary, we now also test HAVE_IFACE_GETIFADDRS

8 years agobuild: Restore configure summary checking
Andrew Bartlett [Thu, 5 Apr 2012 00:21:09 +0000 (10:21 +1000)]
build: Restore configure summary checking

This was accidentily lost in:

commit b1ce226af8b61ad7e3c37860a59c6715012e738b
Author: James Peach <jpeach@samba.org>
Date:   Fri Jun 15 21:58:49 2007 +0000

    r23510: Tidy calls to smb_panic by removing trailing newlines. Print the
    failed expression in SMB_ASSERT.
    (This used to be commit 171dc060e2a576d724eed1ca65636bdafffd7713)

8 years agobuild: Add more assertions that fcntl locking works 64-bit
Andrew Bartlett [Wed, 4 Apr 2012 23:59:41 +0000 (09:59 +1000)]
build: Add more assertions that fcntl locking works 64-bit

8 years agobuild: Remove unused GLIBC_HACK_FCNTL64
Andrew Bartlett [Wed, 28 Mar 2012 02:53:37 +0000 (13:53 +1100)]
build: Remove unused GLIBC_HACK_FCNTL64

This is not set from anywhere, and refers to Red Hat 7.0, which is
really, really old now.

Andrew Bartlett

8 years agobuild: Fix sys_open() removal by including system/filesys.h
Andrew Bartlett [Wed, 28 Mar 2012 02:48:01 +0000 (13:48 +1100)]
build: Fix sys_open() removal by including system/filesys.h

8 years agobuild: Remove SMB_F* locking defines
Andrew Bartlett [Wed, 28 Mar 2012 02:32:54 +0000 (13:32 +1100)]
build: Remove SMB_F* locking defines

8 years agobuild: Remove SMB_STRUCT_FLOCK define
Andrew Bartlett [Wed, 28 Mar 2012 02:26:34 +0000 (13:26 +1100)]
build: Remove SMB_STRUCT_FLOCK define

8 years agobuild: Remove SMB_STRUCT_DIR define
Andrew Bartlett [Wed, 28 Mar 2012 02:22:03 +0000 (13:22 +1100)]
build: Remove SMB_STRUCT_DIR define

8 years agobuild: Remove SMB_STRUCT_DIRENT define
Andrew Bartlett [Wed, 28 Mar 2012 02:18:14 +0000 (13:18 +1100)]
build: Remove SMB_STRUCT_DIRENT define

8 years agobuild: Remove sys_rewinddir wrapper
Andrew Bartlett [Wed, 28 Mar 2012 02:09:39 +0000 (13:09 +1100)]
build: Remove sys_rewinddir wrapper

8 years agobuild: Remove sys_closedir wrapper
Andrew Bartlett [Wed, 28 Mar 2012 02:08:27 +0000 (13:08 +1100)]
build: Remove sys_closedir wrapper

8 years agobuild: Remove sys_telldir wrapper
Andrew Bartlett [Wed, 28 Mar 2012 02:05:21 +0000 (13:05 +1100)]
build: Remove sys_telldir wrapper

8 years agobuild: Remove sys_seekdir wrapper
Andrew Bartlett [Wed, 28 Mar 2012 02:04:03 +0000 (13:04 +1100)]
build: Remove sys_seekdir wrapper

8 years agobuild: Remove sys_readdir wrapper
Andrew Bartlett [Wed, 28 Mar 2012 02:03:00 +0000 (13:03 +1100)]
build: Remove sys_readdir wrapper

8 years agobuild: Remove sys_opendir wrapper
Andrew Bartlett [Wed, 28 Mar 2012 02:01:19 +0000 (13:01 +1100)]
build: Remove sys_opendir wrapper

8 years agobuild: Remove sys_fopen wrapper
Andrew Bartlett [Wed, 28 Mar 2012 01:51:17 +0000 (12:51 +1100)]
build: Remove sys_fopen wrapper

8 years agobuild: Remove sys_open wrapper
Andrew Bartlett [Wed, 28 Mar 2012 01:48:00 +0000 (12:48 +1100)]
build: Remove sys_open wrapper

8 years agobuild: Remove sys_creat wrapper
Andrew Bartlett [Wed, 28 Mar 2012 01:45:06 +0000 (12:45 +1100)]
build: Remove sys_creat wrapper

8 years agobuild: Remove fallback call to sys_open as HAVE_CREAT is not actually checked for
Andrew Bartlett [Wed, 28 Mar 2012 01:41:41 +0000 (12:41 +1100)]
build: Remove fallback call to sys_open as HAVE_CREAT is not actually checked for

8 years agobuild: Remove sys_ftell wrapper
Andrew Bartlett [Wed, 28 Mar 2012 01:38:31 +0000 (12:38 +1100)]
build: Remove sys_ftell wrapper

8 years agobuild: Remove sys_lseek wrapper
Andrew Bartlett [Wed, 28 Mar 2012 01:37:04 +0000 (12:37 +1100)]
build: Remove sys_lseek wrapper

8 years agobuild: Remove sys_ftruncate wrapper
Andrew Bartlett [Wed, 28 Mar 2012 01:35:09 +0000 (12:35 +1100)]
build: Remove sys_ftruncate wrapper

8 years agobuild: combine off_t 64 bit and largefile test
Andrew Bartlett [Tue, 27 Mar 2012 23:56:54 +0000 (10:56 +1100)]
build: combine off_t 64 bit and largefile test

8 years agovfs: Remove -D_LARGEFILE64_SOURCE from vfs examples Makefile
Andrew Bartlett [Tue, 27 Mar 2012 23:40:02 +0000 (10:40 +1100)]
vfs: Remove -D_LARGEFILE64_SOURCE from vfs examples Makefile

8 years agobuild: #ifdef LARGE_SMB_OFF_T as off_t is now always 64 bits
Andrew Bartlett [Tue, 27 Mar 2012 23:21:22 +0000 (10:21 +1100)]
build: #ifdef LARGE_SMB_OFF_T as off_t is now always 64 bits

8 years agoRemove off64_t declarations
Andrew Bartlett [Tue, 27 Mar 2012 23:03:24 +0000 (10:03 +1100)]
Remove off64_t declarations

8 years agobuild: Fix configure test that was declaring an off64_t
Andrew Bartlett [Tue, 27 Mar 2012 23:01:52 +0000 (10:01 +1100)]
build: Fix configure test that was declaring an off64_t

8 years agobuild: do not use HAVE_EXPLICIT_LARGEFILE_SUPPORT and *64() fucntions any more
Andrew Bartlett [Tue, 27 Mar 2012 22:49:48 +0000 (09:49 +1100)]
build: do not use HAVE_EXPLICIT_LARGEFILE_SUPPORT and *64() fucntions any more

8 years agobuild: Remove configure tests for *64 functions and types
Andrew Bartlett [Tue, 27 Mar 2012 22:39:57 +0000 (09:39 +1100)]
build: Remove configure tests for *64 functions and types

We now use the standard types only.

Andrew Bartlett

8 years agobuild: Require 64-bit files support and do not define HAVE_EXPLICIT_LARGEFILE_SUPPORT
Andrew Bartlett [Tue, 27 Mar 2012 22:47:53 +0000 (09:47 +1100)]
build: Require 64-bit files support and do not define HAVE_EXPLICIT_LARGEFILE_SUPPORT

8 years agobuild: Add getconf LFS_CFLAGS support to waf build
Andrew Bartlett [Wed, 4 Apr 2012 22:25:13 +0000 (08:25 +1000)]
build: Add getconf LFS_CFLAGS support to waf build

8 years agobuild: use only standard _FILE_OFFSET_BITS=64 macro for large files
Andrew Bartlett [Tue, 27 Mar 2012 22:34:12 +0000 (09:34 +1100)]
build: use only standard _FILE_OFFSET_BITS=64 macro for large files

(We also already use any other macro as set by getconf LFS_CFLAGS, and
the standard AC_SYS_LARGEFILE macro in libreplace).

This is instead of using the transitional *64 posix largefile API

Andrew Bartlett

8 years agolib/replace: Add getconf LFS_CFLAGS support to autoconf build
Andrew Bartlett [Wed, 4 Apr 2012 22:25:32 +0000 (08:25 +1000)]
lib/replace: Add getconf LFS_CFLAGS support to autoconf build

8 years agoThird part of fix for bug #8837 - smbd crashes when deleting directory and veto files...
Jeremy Allison [Wed, 4 Apr 2012 21:57:12 +0000 (14:57 -0700)]
Third part of fix for bug #8837 - smbd crashes when deleting directory and veto files are enabled.

Use correct check to see if veto files has been enabled. Even if not
set lp_veto_files() returns a valid string address (to a '\0' character).

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Thu Apr  5 01:36:04 CEST 2012 on sn-devel-104

8 years agoSecond part of bugfix for bug #8837 - smbd crashes when deleting directory and veto...
Jeremy Allison [Wed, 4 Apr 2012 21:54:02 +0000 (14:54 -0700)]
Second part of bugfix for bug #8837 - smbd crashes when deleting directory and veto files are enabled.

Store the 'struct security_token' as well as the 'struct security_unix_token'
inside the locking db when setting a delete on close.

8 years agoFirst part of fix for bug 8837 - smbd crashes when deleting directory and veto files...
Jeremy Allison [Wed, 4 Apr 2012 21:53:10 +0000 (14:53 -0700)]
First part of fix for bug 8837 - smbd crashes when deleting directory and veto files are enabled.

Add some const to the sec_ctx code.

8 years agosystemd: Add samba service file.
Andreas Schneider [Mon, 2 Apr 2012 12:23:27 +0000 (14:23 +0200)]
systemd: Add samba service file.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Apr  4 18:04:09 CEST 2012 on sn-devel-104

8 years agos4:librpc/rpc: also parse ncacn_packet pdus with LIBNDR_FLAG_OBJECT_PRESENT
Stefan Metzmacher [Tue, 3 Apr 2012 17:57:03 +0000 (19:57 +0200)]
s4:librpc/rpc: also parse ncacn_packet pdus with LIBNDR_FLAG_OBJECT_PRESENT

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Apr  3 23:06:31 CEST 2012 on sn-devel-104

8 years agos4:librpc/rpc: don't mix up paylod ndr flags with the dcerpc layer
Stefan Metzmacher [Tue, 3 Apr 2012 17:55:42 +0000 (19:55 +0200)]
s4:librpc/rpc: don't mix up paylod ndr flags with the dcerpc layer

If the transfer syntax is NDR64, it's only for the payload not
for the dcerpc pdus.

metze

8 years agobuild: Remove checks for krb5_decode_ap_req, free_AP_REQ and KRB5_TICKET_HAS_KEYINFO
Andrew Bartlett [Mon, 12 Mar 2012 08:52:33 +0000 (19:52 +1100)]
build: Remove checks for krb5_decode_ap_req, free_AP_REQ and KRB5_TICKET_HAS_KEYINFO

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Apr  3 19:19:33 CEST 2012 on sn-devel-104

8 years agobuild: Remove unused check for HAVE_KRB5_TKT_ENC_PART2
Andrew Bartlett [Mon, 12 Mar 2012 08:26:16 +0000 (19:26 +1100)]
build: Remove unused check for HAVE_KRB5_TKT_ENC_PART2

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-krb5 Remove unused get_kvno_from_ap_req()
Andrew Bartlett [Mon, 12 Mar 2012 07:44:52 +0000 (18:44 +1100)]
s3-krb5 Remove unused get_kvno_from_ap_req()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-krb5 Remove unused get_enctype_from_ap_req
Andrew Bartlett [Mon, 12 Mar 2012 07:41:57 +0000 (18:41 +1100)]
s3-krb5 Remove unused get_enctype_from_ap_req

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-krb5: Remove unused smb_krb5_get_keyinfo_from_ap_req()
Andrew Bartlett [Mon, 12 Mar 2012 07:40:06 +0000 (18:40 +1100)]
s3-krb5: Remove unused smb_krb5_get_keyinfo_from_ap_req()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-krb5: Remove unused get_key_from_keytab
Andrew Bartlett [Mon, 12 Mar 2012 07:38:35 +0000 (18:38 +1100)]
s3-krb5: Remove unused get_key_from_keytab

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-krb5: remove unused unwrap_pac()
Andrew Bartlett [Mon, 12 Mar 2012 07:37:06 +0000 (18:37 +1100)]
s3-krb5: remove unused unwrap_pac()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-krb5: remove unused get_auth_data_from_tkt
Andrew Bartlett [Mon, 12 Mar 2012 07:33:12 +0000 (18:33 +1100)]
s3-krb5: remove unused get_auth_data_from_tkt

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-krb5: Remove unused get_authtime_from_tkt
Andrew Bartlett [Mon, 12 Mar 2012 07:31:42 +0000 (18:31 +1100)]
s3-krb5: Remove unused get_authtime_from_tkt

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-krb5: Remove unused krb5_rd_req_return_keyblock_from_keytab
Andrew Bartlett [Mon, 12 Mar 2012 07:29:57 +0000 (18:29 +1100)]
s3-krb5: Remove unused krb5_rd_req_return_keyblock_from_keytab

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-krb5: Remove unused get_principal_from_tkt
Andrew Bartlett [Mon, 12 Mar 2012 07:29:40 +0000 (18:29 +1100)]
s3-krb5: Remove unused get_principal_from_tkt

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-libads: Remove ads_verify_ticket() as it is now unused
Andrew Bartlett [Mon, 12 Mar 2012 07:24:25 +0000 (18:24 +1100)]
s3-libads: Remove ads_verify_ticket() as it is now unused

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-libads: Rework kerberos_return_pac() to use GENSEC for the server-side
Andrew Bartlett [Mon, 12 Mar 2012 07:21:10 +0000 (18:21 +1100)]
s3-libads: Rework kerberos_return_pac() to use GENSEC for the server-side

This removes the last user of ads_verify_ticket(), and means that we
only have one code path to verify an incoming krb5 (GSSAPI) ticket.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-libsmb: Remove unused spnego_parse_krb5_wrap()
Andrew Bartlett [Sun, 11 Mar 2012 01:30:22 +0000 (12:30 +1100)]
s3-libsmb: Remove unused spnego_parse_krb5_wrap()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agobuild: Reduce deps of ntlm_auth
Andrew Bartlett [Sat, 10 Mar 2012 21:11:36 +0000 (08:11 +1100)]
build: Reduce deps of ntlm_auth

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-ntlm_auth: use manage_gensec_request for squid-2.5-ntlmssp
Andrew Bartlett [Sat, 10 Mar 2012 21:10:16 +0000 (08:10 +1100)]
s3-ntlm_auth: use manage_gensec_request for squid-2.5-ntlmssp

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-auth: Order GENSEC mechs by priority, krb5 before NTLMSSP
Andrew Bartlett [Sat, 10 Mar 2012 20:04:38 +0000 (07:04 +1100)]
s3-auth: Order GENSEC mechs by priority, krb5 before NTLMSSP

Otherwise, really simple clients (such as the current ntlm_auth gss-spnego client)
will not select krb5.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-ntlm_auth: add ntlm_auth_generate_session_info_pac()
Andrew Bartlett [Sat, 10 Mar 2012 20:04:38 +0000 (07:04 +1100)]
s3-ntlm_auth: add ntlm_auth_generate_session_info_pac()

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos3-ntlm_auth Use GENSEC for gss-spnego server
Andrew Bartlett [Sat, 10 Mar 2012 19:45:39 +0000 (06:45 +1100)]
s3-ntlm_auth Use GENSEC for gss-spnego server

This imports the gensec handling code from the source4 ntlm_auth, which
will eventually be used for all the NTLMSSP and SPNEGO clients and servers
but which is only used for gss-spnego for now.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
8 years agos4:ldap_server: fix typo in DEBUG() message
Stefan Metzmacher [Tue, 3 Apr 2012 11:55:08 +0000 (13:55 +0200)]
s4:ldap_server: fix typo in DEBUG() message

metze

8 years agowafsamba: Avoid NameError when printing error about missing system deps.
Jelmer Vernooij [Tue, 3 Apr 2012 14:12:54 +0000 (16:12 +0200)]
wafsamba: Avoid NameError when printing error about missing system deps.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Tue Apr  3 17:46:42 CEST 2012 on sn-devel-104

8 years agos3: Enhance the dbwrap needed x attempts msg
Volker Lendecke [Tue, 3 Apr 2012 11:20:39 +0000 (13:20 +0200)]
s3: Enhance the dbwrap needed x attempts msg

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Tue Apr  3 15:17:11 CEST 2012 on sn-devel-104

8 years agolib/util: charset modules do not exist any more
Andrew Bartlett [Tue, 3 Apr 2012 04:18:09 +0000 (14:18 +1000)]
lib/util: charset modules do not exist any more

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Apr  3 08:07:42 CEST 2012 on sn-devel-104

8 years agofile_server: Move vfs objects initialisation into file_server.c smb.conf wrapper
Andrew Bartlett [Tue, 3 Apr 2012 03:31:15 +0000 (13:31 +1000)]
file_server: Move vfs objects initialisation into file_server.c smb.conf wrapper

8 years agos3-vfs: initial work on posix:eadb module
Andrew Bartlett [Mon, 2 Apr 2012 08:39:09 +0000 (18:39 +1000)]
s3-vfs: initial work on posix:eadb module

This is a module that, like vfs_xattr_tdb, stores extended attributes
in a DB on disk.  This uses the format needed to support the
posix:eadb smb.conf option.

Andrew Bartlett

8 years agos4-ntvfs: Rename xattr_tdb.c to posix_eadb.c and make more generally useful
Andrew Bartlett [Tue, 3 Apr 2012 03:35:39 +0000 (13:35 +1000)]
s4-ntvfs: Rename xattr_tdb.c to posix_eadb.c and make more generally useful

This is now a small library, to be called from ntvfs, python and
vfs_posix_eadb.  The rename makes it clear that this has a different
DB format to that used by vfs_xattr_tdb, and matches the posix:eadb
smb.conf parameter used to configure it.

Andrew Bartlett

8 years agos3-vfs: Use new smb_load_module for better diagnostics
Andrew Bartlett [Tue, 3 Apr 2012 03:23:43 +0000 (13:23 +1000)]
s3-vfs: Use new smb_load_module for better diagnostics

8 years agos3-smbd: Inline init_modules() into only caller
Andrew Bartlett [Tue, 3 Apr 2012 03:23:18 +0000 (13:23 +1000)]
s3-smbd: Inline init_modules() into only caller