samba.git
11 years agotevent: fix indentation in the wscript
Michael Adam [Fri, 11 May 2012 16:27:01 +0000 (18:27 +0200)]
tevent: fix indentation in the wscript

(accidentially commited in 5e8dee8d96a7522cdcde57dbbf93fbe9c614992e)

11 years agos3:smb2_sesssetup: make the top level code async using
Stefan Metzmacher [Sat, 12 May 2012 08:20:55 +0000 (10:20 +0200)]
s3:smb2_sesssetup: make the top level code async using

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun May 13 17:59:39 CEST 2012 on sn-devel-104

11 years agos3:smb2_sesssetup: add smbd_smb2_session_setup_send/recv as wrapper
Stefan Metzmacher [Sat, 12 May 2012 08:16:41 +0000 (10:16 +0200)]
s3:smb2_sesssetup: add smbd_smb2_session_setup_send/recv as wrapper

This just adds smbd_smb2_session_setup_send/recv as wrapper to
the sync smbd_smb2_session_setup function.

This will allow us to change to top level code to work async,
then we can have a 2nd step where we remove the sync
smbd_smb2_session_setup function.

metze

11 years agos3:smb2_sesssetup: pass down in_flags to smbd_smb2_session_setup()
Stefan Metzmacher [Sat, 12 May 2012 07:48:19 +0000 (09:48 +0200)]
s3:smb2_sesssetup: pass down in_flags to smbd_smb2_session_setup()

metze

11 years agos3:smb2_sesssetup: pass down in_previous_session_id to all layers
Stefan Metzmacher [Wed, 18 Apr 2012 13:00:06 +0000 (15:00 +0200)]
s3:smb2_sesssetup: pass down in_previous_session_id to all layers

metze

11 years agolib/socket_wrapper only enable python_socket and socket.py with socket_wrapper
Andrew Bartlett [Sun, 13 May 2012 06:02:22 +0000 (16:02 +1000)]
lib/socket_wrapper only enable python_socket and socket.py with socket_wrapper

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Sun May 13 10:41:27 CEST 2012 on sn-devel-104

11 years agolibreplace: Fix symbol names for snprintf/asprintf/vasprintf.
Jelmer Vernooij [Sun, 13 May 2012 01:21:34 +0000 (03:21 +0200)]
libreplace: Fix symbol names for snprintf/asprintf/vasprintf.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun May 13 05:16:28 CEST 2012 on sn-devel-104

11 years agos3:smb2_ioctl: implement FSCTL_VALIDATE_NEGOTIATE_INFO
Stefan Metzmacher [Fri, 11 May 2012 15:45:16 +0000 (17:45 +0200)]
s3:smb2_ioctl: implement FSCTL_VALIDATE_NEGOTIATE_INFO

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sat May 12 02:50:42 CEST 2012 on sn-devel-104

11 years agos3:smb2_ioctl: implement FSCTL_VALIDATE_NEGOTIATE_INFO_224
Stefan Metzmacher [Fri, 11 May 2012 15:45:16 +0000 (17:45 +0200)]
s3:smb2_ioctl: implement FSCTL_VALIDATE_NEGOTIATE_INFO_224

metze

11 years agos3:smbd: introduce struct smbXsrv_connection
Stefan Metzmacher [Thu, 15 Dec 2011 13:45:56 +0000 (14:45 +0100)]
s3:smbd: introduce struct smbXsrv_connection

This will represent a transport connection for SMB 1 or 2
in the server. smbd_server_connection will slowly be moved
to the SMB_VFS layer to satisfy the existing modules,
but it will hopefully be protocol independend in future.

metze

11 years agos3:smb2_negprot: setup the protocol at the end of the negprot with a real dialect
Stefan Metzmacher [Fri, 11 May 2012 13:19:20 +0000 (15:19 +0200)]
s3:smb2_negprot: setup the protocol at the end of the negprot with a real dialect

metze

11 years agos3/libsmb: Generalise cli_state in smb2 logoff calls
Luk Claes [Thu, 10 May 2012 16:39:11 +0000 (18:39 +0200)]
s3/libsmb: Generalise cli_state in smb2 logoff calls

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3/libsmb: Generalise cli_state in smb2 write calls
Luk Claes [Thu, 10 May 2012 16:40:56 +0000 (18:40 +0200)]
s3/libsmb: Generalise cli_state in smb2 write calls

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3/libsmb: Generalise cli_state in smb2 query_directory calls
Luk Claes [Thu, 10 May 2012 16:37:43 +0000 (18:37 +0200)]
s3/libsmb: Generalise cli_state in smb2 query_directory calls

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3/libsmb: Generalise cli_state in smb2 ioctl calls
Luk Claes [Thu, 10 May 2012 16:36:47 +0000 (18:36 +0200)]
s3/libsmb: Generalise cli_state in smb2 ioctl calls

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3/libsmb: Generalise cli_state in smb2 flush calls
Luk Claes [Thu, 10 May 2012 16:35:50 +0000 (18:35 +0200)]
s3/libsmb: Generalise cli_state in smb2 flush calls

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3/libsmb: Generalise cli_state in smb2 create calls
Luk Claes [Thu, 10 May 2012 16:34:40 +0000 (18:34 +0200)]
s3/libsmb: Generalise cli_state in smb2 create calls

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3/libsmb: Generalise cli_state in smb2 close calls
Luk Claes [Thu, 10 May 2012 16:32:49 +0000 (18:32 +0200)]
s3/libsmb: Generalise cli_state in smb2 close calls

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agos3-libsmb: Generalise cli_state in smb2 read calls
Luk Claes [Thu, 10 May 2012 16:30:25 +0000 (18:30 +0200)]
s3-libsmb: Generalise cli_state in smb2 read calls

Signed-off-by: Luk Claes <luk@debian.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
11 years agosmbconf: remove python shebang from wscript_build
Michael Adam [Fri, 11 May 2012 17:13:36 +0000 (19:13 +0200)]
smbconf: remove python shebang from wscript_build

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri May 11 22:05:32 CEST 2012 on sn-devel-104

11 years agos4:lib: remove unused wscript_build file
Michael Adam [Fri, 11 May 2012 16:05:36 +0000 (18:05 +0200)]
s4:lib: remove unused wscript_build file

This only contains a "GENCACHE" subsystem that is not
referenced anywhere.

11 years agoutil: use SMB_ASSERT with panic also in non-developer builds !!!
Michael Adam [Fri, 11 May 2012 14:42:33 +0000 (16:42 +0200)]
util: use SMB_ASSERT with panic also in non-developer builds !!!

This has been around since a long time: In non-developer builds,
we don't panic in SMB_ASSERT but happly continue with the error
condition, which is ridiculous and dangerous...

11 years agoutil: reformat the DEVELOPER definition of SMB_ASSERT
Michael Adam [Fri, 11 May 2012 14:41:18 +0000 (16:41 +0200)]
util: reformat the DEVELOPER definition of SMB_ASSERT

11 years agos3:smb2_ioctl: allow functions to disconnect the smb connection
Stefan Metzmacher [Thu, 10 May 2012 11:47:46 +0000 (13:47 +0200)]
s3:smb2_ioctl: allow functions to disconnect the smb connection

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri May 11 20:15:37 CEST 2012 on sn-devel-104

11 years agolibcli/smb/smb_constants: add FSCTL_VALIDATE_NEGOTIATE_INFO*
Stefan Metzmacher [Wed, 9 May 2012 19:32:33 +0000 (21:32 +0200)]
libcli/smb/smb_constants: add FSCTL_VALIDATE_NEGOTIATE_INFO*

metze

11 years agos3:smb2_ioctl: FSCTL_SRV_ENUMERATE_SNAPSHOTS is handles in SMB_VFS_FSCTL()
Stefan Metzmacher [Thu, 10 May 2012 16:33:12 +0000 (18:33 +0200)]
s3:smb2_ioctl: FSCTL_SRV_ENUMERATE_SNAPSHOTS is handles in SMB_VFS_FSCTL()

metze

11 years agos3:smb2_ioctl: call SMB_VFS_FSCTL() as fallback for non SMB2 specific functions
Stefan Metzmacher [Thu, 10 May 2012 15:43:36 +0000 (17:43 +0200)]
s3:smb2_ioctl: call SMB_VFS_FSCTL() as fallback for non SMB2 specific functions

metze

11 years agosamba4: When running samba_dnsupdate during tests, use the test
Jelmer Vernooij [Fri, 11 May 2012 14:01:33 +0000 (16:01 +0200)]
samba4: When running samba_dnsupdate during tests, use the test
smb.conf.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri May 11 18:18:53 CEST 2012 on sn-devel-104

11 years agoFix bug #8922.
Jeremy Allison [Fri, 11 May 2012 10:27:01 +0000 (03:27 -0700)]
Fix bug #8922.

Looking at the do_list status returns was historically
ignored, allowing tar to continue after NT_STATUS_ACCESS_DENIED.
Return to this state.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri May 11 14:55:53 CEST 2012 on sn-devel-104

11 years agos3-loadparm: Add synonym "private directory".
Karolin Seeger [Thu, 10 May 2012 14:48:04 +0000 (16:48 +0200)]
s3-loadparm: Add synonym "private directory".

Karolin

Autobuild-User: Karolin Seeger <kseeger@samba.org>
Autobuild-Date: Fri May 11 13:04:03 CEST 2012 on sn-devel-104

11 years agoFix bug 8920, null dereference
Steve Langasek [Wed, 9 May 2012 05:56:00 +0000 (07:56 +0200)]
Fix bug 8920, null dereference

Description: Avoid null dereference in initialize_password_db()
 When initialize_password_db() is called with reload=True, it's assumed that
 the free_private_data member of pdb_methods is non-null.  This is not
 necessarily the case, as the tdb backend has no private data and therefore
 no free function.  Check to see if we have private data that needs freed
 before calling.
Author: Steve Langasek <steve.langasek@ubuntu.com>
Bug-Ubuntu: https://bugs.launchpad.net/bugs/829221

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Thu May 10 11:07:27 CEST 2012 on sn-devel-104

11 years agos3: Fix Coverity ID 242714 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)]
s3: Fix Coverity ID 242714 Uninitialized scalar variable

In an error path we are closing domain_handle without opening it

11 years agos3: Fix Coverity ID 242715 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)]
s3: Fix Coverity ID 242715 Uninitialized scalar variable

In an error path we are closing hive_hnd without opening it

11 years agos3: Fix Coverity ID 242716 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)]
s3: Fix Coverity ID 242716 Uninitialized scalar variable

In an error path we are closing key_hnd without opening it

11 years agos3: Fix Coverity ID 242717 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)]
s3: Fix Coverity ID 242717 Uninitialized scalar variable

In an error path we are closing domain_pol without opening it

11 years agos3: Fix Coverity ID 242718 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)]
s3: Fix Coverity ID 242718 Uninitialized scalar variable

In an error path we are closing user_pol without opening it

11 years agos3: Fix Coverity ID 242719 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)]
s3: Fix Coverity ID 242719 Uninitialized scalar variable

In an error path we are closing domain_pol without opening it

11 years agos3: Fix Coverity ID 242720 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)]
s3: Fix Coverity ID 242720 Uninitialized scalar variable

In an error path we are closing domain_pol without opening it

11 years agos3: Fix Coverity ID 242721 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)]
s3: Fix Coverity ID 242721 Uninitialized scalar variable

In an error path we are closing domain_pol without opening it

11 years agos3: Fix Coverity ID 242722 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)]
s3: Fix Coverity ID 242722 Uninitialized scalar variable

In an error path we are closing domain_handle without opening it

11 years agos3: Fix Coverity ID 242723 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)]
s3: Fix Coverity ID 242723 Uninitialized scalar variable

In an error path we are closing hnd without opening it

11 years agos3: Fix Coverity ID 241961 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:59:49 +0000 (10:59 +0200)]
s3: Fix Coverity ID 241961 Uninitialized scalar variable

11 years agos3: Fix Coverity ID 242724 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:56:54 +0000 (10:56 +0200)]
s3: Fix Coverity ID 242724 Uninitialized scalar variable

In an error path we are closing pol without opening it

11 years agos3: Fix Coverity ID 242725 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:51:54 +0000 (10:51 +0200)]
s3: Fix Coverity ID 242725 Uninitialized scalar variable

Not a functional bug, but we copy all of the "key" structure inside
dcerpc_winreg_CreateKey.

11 years agos3: Fix Coverity ID 242726 Uninitialized scalar variable
Volker Lendecke [Wed, 9 May 2012 08:51:54 +0000 (10:51 +0200)]
s3: Fix Coverity ID 242726 Uninitialized scalar variable

Not a functional bug, but we copy all of the "key" structure inside
dcerpc_winreg_OpenKey.

11 years agos3: Fix Coverity ID 242754 Dereference null return value
Volker Lendecke [Wed, 9 May 2012 08:41:06 +0000 (10:41 +0200)]
s3: Fix Coverity ID 242754 Dereference null return value

11 years agos3: Fix Coverity ID 242184 Dereference after null check
Volker Lendecke [Wed, 9 May 2012 08:30:47 +0000 (10:30 +0200)]
s3: Fix Coverity ID 242184 Dereference after null check

rpc_query_user unconditionally dereferences user_info if successfull

11 years agos3: Fix Coverity ID 242691 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242691 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242692 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242692 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242693 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242693 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242694 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242694 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242695 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242695 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242696 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242696 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242697 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242697 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242698 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242698 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242699 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242699 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242700 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242700 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242701 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242701 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242702 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242702 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242703 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242703 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242704 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242704 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242705 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242705 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agos3: Fix Coverity ID 242706 Dereference before null check
Volker Lendecke [Wed, 9 May 2012 07:16:54 +0000 (09:16 +0200)]
s3: Fix Coverity ID 242706 Dereference before null check

winreg_printer_openkey above already dereferences winreg_handle

11 years agobuild: Avoid printing the ABI signature normalisation during the default build
Andrew Bartlett [Thu, 10 May 2012 05:07:32 +0000 (15:07 +1000)]
build: Avoid printing the ABI signature normalisation during the default build

This appears to have been accidentily left in acd63fdb86769ff4328ccb6a4096181e65e4d30f

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Thu May 10 09:00:20 CEST 2012 on sn-devel-104

11 years agoWhen listing group members allow fallback to cn attribute when samAccountName is...
Lukasz Zalewski [Wed, 9 May 2012 13:24:01 +0000 (14:24 +0100)]
When listing group members allow fallback to cn attribute when samAccountName is not available

11 years agobuild:ignore solaris _GLOBAL_OFFSET_TABLE_ in duplicate symbol checker
Andrew Bartlett [Mon, 23 Apr 2012 01:37:39 +0000 (11:37 +1000)]
build:ignore solaris _GLOBAL_OFFSET_TABLE_ in duplicate symbol checker

11 years agos3:auth/server_info: the primary rid should be in the groups rid array (bug #8798)
Alejandro Escanero Blanco [Wed, 9 May 2012 09:35:51 +0000 (11:35 +0200)]
s3:auth/server_info: the primary rid should be in the groups rid array (bug #8798)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May  9 19:36:01 CEST 2012 on sn-devel-104

11 years agoallow to use system iniparser library.
Günther Deschner [Wed, 9 May 2012 13:33:04 +0000 (15:33 +0200)]
allow to use system iniparser library.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed May  9 17:38:33 CEST 2012 on sn-devel-104

11 years agowaf: remove pointless WINBIND_KRB5_LOCATOR env.
Günther Deschner [Tue, 8 May 2012 12:45:02 +0000 (14:45 +0200)]
waf: remove pointless WINBIND_KRB5_LOCATOR env.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed May  9 15:16:34 CEST 2012 on sn-devel-104

11 years agos3-smbd: Fix the creation of duplicate SMB_ACL_GROUP entries
Andrew Bartlett [Wed, 9 May 2012 04:35:55 +0000 (14:35 +1000)]
s3-smbd: Fix the creation of duplicate SMB_ACL_GROUP entries

The issue was a simple copy and paste bug, which casued a duplicate SMB_ACL_GROUP
to be added when we already had one.

Andrew Bartlett

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed May  9 13:17:29 CEST 2012 on sn-devel-104

11 years agos3-spoolss: Set DWORD values correctly.
Andreas Schneider [Mon, 7 May 2012 07:36:35 +0000 (09:36 +0200)]
s3-spoolss: Set DWORD values correctly.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed May  9 11:13:00 CEST 2012 on sn-devel-104

11 years agos3-lib/sysacls: Do not include an embedded \0 between ACL entries in sys_acl_to_text()
Andrew Bartlett [Tue, 8 May 2012 13:39:35 +0000 (23:39 +1000)]
s3-lib/sysacls: Do not include an embedded \0 between ACL entries in sys_acl_to_text()

This makes it possible to print the entire string again.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed May  9 06:07:06 CEST 2012 on sn-devel-104

11 years agos3-lib: Add const to sys_acl_to_text
Andrew Bartlett [Tue, 8 May 2012 04:11:27 +0000 (14:11 +1000)]
s3-lib: Add const to sys_acl_to_text

11 years agos3-vfs: Show the invalid ACL when we say it is invalid for set
Andrew Bartlett [Tue, 8 May 2012 04:02:27 +0000 (14:02 +1000)]
s3-vfs: Show the invalid ACL when we say it is invalid for set

11 years agos3-lib: Fix indentation in sys_acl_to_text()
Andrew Bartlett [Tue, 8 May 2012 04:02:07 +0000 (14:02 +1000)]
s3-lib: Fix indentation in sys_acl_to_text()

11 years agoRevert "selftest: mark ^samba4.raw.context.session1 as flapping, the test was wrong"
Stefan Metzmacher [Mon, 7 May 2012 15:01:08 +0000 (17:01 +0200)]
Revert "selftest: mark ^samba4.raw.context.session1 as flapping, the test was wrong"

This reverts commit 794a9da38fbd88eb3d358d453cc5d21998604caa.

The test is fixed now.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed May  9 02:53:24 CEST 2012 on sn-devel-104

11 years agos4:smb_server/smb: only create a new session with vuid == 0
Stefan Metzmacher [Sun, 6 May 2012 19:09:47 +0000 (21:09 +0200)]
s4:smb_server/smb: only create a new session with vuid == 0

metze

11 years agos4:torture/raw/context: test a session setup with a given invalid vuid
Stefan Metzmacher [Tue, 1 May 2012 11:33:14 +0000 (13:33 +0200)]
s4:torture/raw/context: test a session setup with a given invalid vuid

On a session setup with EXTENDED_SECURITY we'll get ERRSRV:ERRbaduid,
while a session setup without EXTENDED_SECURITY ignores the given vuid.

Before this test was doing a reauth of a given vuid, which works for newer
Windows versions, but Windows 2000 gives INVALID_PARAMETER.

metze

11 years agoselftest: mark ^samba4.raw.context.session1 as flapping, the test was wrong
Stefan Metzmacher [Mon, 7 May 2012 10:32:28 +0000 (12:32 +0200)]
selftest: mark ^samba4.raw.context.session1 as flapping, the test was wrong

metze

11 years agos3:libsmb: remove unused var in smb2cli_set_info_done
Stefan Metzmacher [Mon, 7 May 2012 10:33:45 +0000 (12:33 +0200)]
s3:libsmb: remove unused var in smb2cli_set_info_done

11 years agos3:winbindd:autorid check that transaction start did work
Christian Ambach [Tue, 8 May 2012 15:16:49 +0000 (17:16 +0200)]
s3:winbindd:autorid check that transaction start did work

this fixes Coverity #700172 CHECKED_RETURN

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Wed May  9 00:27:08 CEST 2012 on sn-devel-104

11 years agos3:smbd fix some compiler warnings
Christian Ambach [Tue, 8 May 2012 14:03:13 +0000 (16:03 +0200)]
s3:smbd fix some compiler warnings

11 years agos3:vfs/gpfs: Have inherited deny ACE's show up in ACLs
Alexander Werth [Fri, 20 Jan 2012 18:17:21 +0000 (19:17 +0100)]
s3:vfs/gpfs: Have inherited deny ACE's show up in ACLs

Don't use the mode for the get_acl call that surpresses
inherited deny ACE's. This is now possible since
the inherited ACE flag exists now in GPFS and Samba.

11 years agos4:libcli:raw: fix a comment typo in smb_setfileinfo()
Michael Adam [Tue, 8 May 2012 14:46:03 +0000 (16:46 +0200)]
s4:libcli:raw: fix a comment typo in smb_setfileinfo()

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue May  8 20:45:16 CEST 2012 on sn-devel-104

11 years agos4:torture: add a new smb2.session.reauth5 test: rename after reauth to anon - fails
Michael Adam [Tue, 8 May 2012 14:45:10 +0000 (16:45 +0200)]
s4:torture: add a new smb2.session.reauth5 test: rename after reauth to anon - fails

11 years agos4:torture: add a new smb2.session.reauth4 test: setting security descriptor after...
Michael Adam [Tue, 8 May 2012 14:44:06 +0000 (16:44 +0200)]
s4:torture: add a new smb2.session.reauth4 test: setting security descriptor after reauth to anon - works

11 years agos3-docs: Fix bug #7930.
Karolin Seeger [Tue, 8 May 2012 14:33:07 +0000 (16:33 +0200)]
s3-docs: Fix bug #7930.

Add hint that setting "profile acls = yes" on normal shares can cause trouble.

Karolin

Autobuild-User: Karolin Seeger <kseeger@samba.org>
Autobuild-Date: Tue May  8 18:47:59 CEST 2012 on sn-devel-104

11 years agos3-po: Fix typo in comment.
Karolin Seeger [Tue, 8 May 2012 14:03:18 +0000 (16:03 +0200)]
s3-po: Fix typo in comment.

Karolin

11 years agos3-net: Fix typo in comment.
Karolin Seeger [Tue, 8 May 2012 14:01:14 +0000 (16:01 +0200)]
s3-net: Fix typo in comment.

Karolin

11 years agos4 dns: unify error handling when bailing out
Kai Blin [Wed, 28 Mar 2012 10:19:51 +0000 (12:19 +0200)]
s4 dns: unify error handling when bailing out

Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Tue May  8 15:48:25 CEST 2012 on sn-devel-104

11 years agos4 dns: Add TSIG and TKEY records to idl
Kai Blin [Tue, 13 Mar 2012 07:04:14 +0000 (08:04 +0100)]
s4 dns: Add TSIG and TKEY records to idl

11 years agos3-docs: Fix several typos.
Karolin Seeger [Tue, 8 May 2012 10:01:28 +0000 (12:01 +0200)]
s3-docs: Fix several typos.

Part of a fix for bug #7938. Based on a patch provided by John Bradshaw
<john@johnbradshaw.org>.

Karolin

Autobuild-User: Karolin Seeger <kseeger@samba.org>
Autobuild-Date: Tue May  8 13:56:32 CEST 2012 on sn-devel-104

11 years agos3-docs: overrided -> overridden
Karolin Seeger [Tue, 8 May 2012 09:05:37 +0000 (11:05 +0200)]
s3-docs: overrided -> overridden

Fix typo. Part of a fix for bug #7938. Based on a patch provided by John
Bradshaw <john@johnbradshaw.org>.

11 years agos3:vfs/shadow_copy2 fix some compiler warnings
Christian Ambach [Tue, 8 May 2012 07:15:12 +0000 (09:15 +0200)]
s3:vfs/shadow_copy2 fix some compiler warnings

about unused variables

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Tue May  8 11:15:07 CEST 2012 on sn-devel-104

11 years agos3:vfs/shadow_copy2 make descending sort order the default
Christian Ambach [Tue, 8 May 2012 07:11:36 +0000 (09:11 +0200)]
s3:vfs/shadow_copy2 make descending sort order the default

otherwise Explorer won't work correctly when trying to restore a folder

11 years agodocs:autorid document ignore builtin parameter
Christian Ambach [Mon, 7 May 2012 17:17:18 +0000 (19:17 +0200)]
docs:autorid document ignore builtin parameter

11 years agos3:winbindd/autorid add ignore builtin parameter
Christian Ambach [Mon, 7 May 2012 17:14:56 +0000 (19:14 +0200)]
s3:winbindd/autorid add ignore builtin parameter

BUILTIN should be handled by passdb, however if passdb does not know
about a SID, autorid creates a range for BUILTIN and does deterministic mapping

make it possible to turn off this behavior

11 years agodocs:autorid document read-only parameter
Christian Ambach [Mon, 7 May 2012 17:02:23 +0000 (19:02 +0200)]
docs:autorid document read-only parameter

11 years agos3:winbindd/autorid add support for read-only mode
Christian Ambach [Mon, 7 May 2012 12:19:26 +0000 (14:19 +0200)]
s3:winbindd/autorid add support for read-only mode

make it possible to set read-only = yes for the backend
so users can replicate an autorid.tdb to another server
to use the same mappings without risking that updates
are done on both sides

11 years agodocs:autorid document how well-known SIDs will be mapped
Christian Ambach [Mon, 7 May 2012 17:08:10 +0000 (19:08 +0200)]
docs:autorid document how well-known SIDs will be mapped

they consume space of the allocation pool and a list of most known well-known SIDs is
preallocated to create a deterministic mapping